Инструменты пользователя

Инструменты сайта


wiki:freebsd:virtualbox

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
wiki:freebsd:virtualbox [2024/06/12 13:12] – [Установка VirtualBox и phpvirtualbox на FreeBSD] Dimanwiki:freebsd:virtualbox [2024/06/12 13:13] (текущий) – [PS Не работает в веб-интерфейсе выбор файла для монтирования] Diman
Строка 213: Строка 213:
 [Zend Modules] [Zend Modules]
 </code> </code>
 +
 +===== Предупреждение о возможных багах после установки 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 /tmp/.vbox-*-ipc file.
 +
 +If you experience "Network: write Failed: Cannot allocate memory" errors
 +try to increase net.graph.maxdata in /boot/loader.conf
 +
 +If you are using AIO, then increase these limits (https://bugs.freebsd.org/168298):
 +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:01:29.590192 AssertLogRel /usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.44
 +/src/VBox/VMM/VMMR3/PGMPhys.cpp(5148) int PGMR3PhysAllocateHandyPages(PVM): RT_SUCCESS(rc)
 +00:01:29.590221 87/128: idPage=0x3d400 HCPhysGCPhys=000000027eaed000 rc=VERR_NO_MEMORY
 +00:01:29.590247 Changing the VM state from 'RUNNING' to 'GURU_MEDITATION'
 +00:01:29.590261 Console: Machine state changed to 'GuruMeditation'
 +00:01:29.590695 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 +00:01:29.590696 !!
 +00:01:29.590697 !!         VCPU0: Guru Meditation -8 (VERR_NO_MEMORY)
 +"
 +and see a lot of free RAM, then increase sysctl vm.max_user_wired
 +(https://bugs.freebsd.org/252227).
 +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)*1024*1024*1024/4096 = 3932160  =>  15GB
 + 32: ( 32-max(1, 32/32)*1024*1024*1024/4096 = 8126464  =>  31GB
 + 48: ( 48-max(1, 48/32)*1024*1024*1024/4096 = 12189696 =>  46.5GB
 + 64: ( 64-max(1, 64/32)*1024*1024*1024/4096 = 16252928 =>  62GB
 +128: (128-max(1,128/32)*1024*1024*1024/4096 = 32505856 => 124GB
 +256: (256-max(1,256/32)*1024*1024*1024/4096 = 65011712 => 248GB
 +
 +When assigning IP addresses in host-only mode from ranges outside
 +of VirtualBox's defaults, the respective ranges need to be listed
 +in /usr/local/etc/vbox/networks.conf (https://bugs.freebsd.org/259399).
 +
 +Check the wiki page for known issues and troubleshooting:
 +https://wiki.freebsd.org/VirtualBox
 +
 +Please report any problems to emulation@. Thanks!
 +
 +</code>
 +
 +
wiki/freebsd/virtualbox.1718187167.txt.gz · Последнее изменение: 2024/06/12 13:12 — Diman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki