wiki:freebsd:virtualbox
Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| wiki:freebsd:virtualbox [2024/05/29 15:45] – Diman | wiki:freebsd:virtualbox [2024/06/12 13:13] (текущий) – [PS Не работает в веб-интерфейсе выбор файла для монтирования] Diman | ||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== Установка VirtualBox и phpvirtualbox на FreeBSD ====== | ====== Установка VirtualBox и phpvirtualbox на FreeBSD ====== | ||
| + | Виртуализация **KVM** (Kernel-based Virtual Machine) | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | # | ||
| + | # | ||
| + | |||
| + | pkg install virtualbox-ose | ||
| + | |||
| + | </ | ||
| ===== После установки ОСи обновляем устанавливаем порты и обновляем их. ===== | ===== После установки ОСи обновляем устанавливаем порты и обновляем их. ===== | ||
| <code bash> | <code bash> | ||
| Строка 32: | Строка 42: | ||
| cd / | cd / | ||
| - | make install clean BATCH=yes I_DONT_CARE_IF_MY_BUILDS_TARGET_THE_WRONG_RELEASE=yes | + | make install clean BATCH=yes I_DONT_CARE_IF_MY_BUILDS_TARGET_THE_WRONG_RELEASE=yes |
| cd / | cd / | ||
| - | make install clean BATCH=yes | + | make install clean BATCH=yes |
| Строка 203: | Строка 213: | ||
| [Zend Modules] | [Zend Modules] | ||
| </ | </ | ||
| + | |||
| + | ===== Предупреждение о возможных багах после установки virtualbox ===== | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | |||
| + | Troubleshooting: | ||
| + | ================ | ||
| + | |||
| + | Running VirtualBox as non-root user may fail with a fatal error | ||
| + | NS_ERROR_FACTORY_NOT_REGISTERED. In this case delete / | ||
| + | |||
| + | If you experience " | ||
| + | try to increase net.graph.maxdata in / | ||
| + | |||
| + | If you are using AIO, then increase these limits (https:// | ||
| + | vfs.aio.max_buf_aio=8192 | ||
| + | vfs.aio.max_aio_queue_per_proc=65536 | ||
| + | vfs.aio.max_aio_per_proc=8192 | ||
| + | vfs.aio.max_aio_queue=65536 | ||
| + | To check if AIO is used use: kldstat -v | grep aio | ||
| + | |||
| + | If you are experiencing VMs freezes with an error in VBox.log such as: | ||
| + | " | ||
| + | 00: | ||
| + | / | ||
| + | 00: | ||
| + | 00: | ||
| + | 00: | ||
| + | 00: | ||
| + | 00: | ||
| + | 00: | ||
| + | " | ||
| + | and see a lot of free RAM, then increase sysctl vm.max_user_wired | ||
| + | (https:// | ||
| + | For dedicated VM servers, a good start is: | ||
| + | ("RAM in GB" - max(1, "RAM in GB" / 32)) * 1024*1024*1024 / PAGE_SIZE | ||
| + | PAGE_SIZE on x86 is 4096. | ||
| + | Examples with different RAM sizes in GB: | ||
| + | 16: ( 16-max(1, 16/ | ||
| + | 32: ( 32-max(1, 32/ | ||
| + | 48: ( 48-max(1, 48/ | ||
| + | 64: ( 64-max(1, 64/ | ||
| + | 128: (128-max(1, | ||
| + | 256: (256-max(1, | ||
| + | |||
| + | When assigning IP addresses in host-only mode from ranges outside | ||
| + | of VirtualBox' | ||
| + | in / | ||
| + | |||
| + | Check the wiki page for known issues and troubleshooting: | ||
| + | https:// | ||
| + | |||
| + | Please report any problems to emulation@. Thanks! | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
wiki/freebsd/virtualbox.1716986749.txt.gz · Последнее изменение: — Diman
