wiki:freebsd:virtualbox
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
wiki:freebsd:virtualbox [2024/06/12 12:48] – [Установка VirtualBox и phpvirtualbox на FreeBSD] Diman | wiki:freebsd:virtualbox [2024/06/12 13:13] (текущий) – [PS Не работает в веб-интерфейсе выбор файла для монтирования] Diman | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
====== Установка VirtualBox и phpvirtualbox на FreeBSD ====== | ====== Установка VirtualBox и phpvirtualbox на FreeBSD ====== | ||
- | Виртуализация **KVM** на самой открытой и быстрой операционной системе FreeBSD - что может быть лучше? Для теста здесь используется ОС freebsd 13.2 | + | Виртуализация **KVM** |
+ | |||
+ | <code bash> | ||
+ | |||
+ | # | ||
+ | # | ||
+ | |||
+ | pkg install virtualbox-ose | ||
+ | |||
+ | </ | ||
===== После установки ОСи обновляем устанавливаем порты и обновляем их. ===== | ===== После установки ОСи обновляем устанавливаем порты и обновляем их. ===== | ||
<code bash> | <code bash> | ||
Строка 204: | Строка 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.1718185695.txt.gz · Последнее изменение: 2024/06/12 12:48 — Diman