Virtualbox - jonatello/lab-musing GitHub Wiki

Install the Virtualbox package via pkg

pkg install virtualbox-ose

Load the vboxdrv kernel module via /boot/loader.conf by adding the following line:

vboxdrv_load="YES"

For USB support follow the rest of these steps...

Add all users who will use Virtualbox to the vboxusers group (replace "testuser" appropriately):

pw groupmod vboxusers -m testuser

Add the following to /etc/devfs.rules:

[system=10]

add patch 'usb/*' mode 0660 group operator

Add the following to /etc/rc.conf:

devfs_system_ruleset="system"

Restart devfs to load the new rules:

/etc/rc.d/devfs restart

Reboot for the drivers to load

shutdown -r now