Home arrow Latest Tutorials arrow Installing VirtualBox under FreeBSD
Installing VirtualBox under FreeBSD PDF
Thursday, 15 October 2009

VirtualBox is an open source virtualized sollution from Sun. It now works under FreeBSD which is a great news for FreeBSD community. It's fast (faster than qmem), it's stable and it is probably the best virtualized sollution on FreeBSD, well except jails which have other purposes (we can't compare those two). All this for free.

Now, installing Virtual Box from ports is an easy task but are some things you must know, so you will not waste time with installation.

So here are Virtual Box installation steps:

Step 1. Build and install Virtual Box from ports

  cd /usr/ports/emulators/virtualbox
  make install clean

If your FreeBSD version is >= 8.x, you will install virtualbox-ose instead:

  cd /usr/ports/emulators/virtualbox-ose
  make install clean

Step 2. Make some necessary configurations to your system

After you've installed Virtual Box you must do the following configs, in order for your VirtualBox app to start:

Mount /proc

  mount -t procfs proc /proc

Load virtual box kernel modules:

  kldload vboxdrv
  kldload vboxnetflt

(vboxnetflt will help you to be able to configure VirtualBox hosts network cards in bridged mode)

Add your user to vboxusers group:

  pw groupmod vboxusers -m root

(root is in my case, if you run VirtualBox from other account replace root with that account name).

To make your changes permanent load kernel modules at boot by adding to /boot/loader.conf the following lines:


To mount automaticaly /proc, add the following line to /etc/fstab

  proc /proc procfs rw 0 0

Step 3. Test VirtualBox

Run from command line:


- if you use FreeBSD AMD64 you must compile your kernel with: option COMPAT_IA32

Last Updated ( Saturday, 22 October 2011 )
< Prev   Next >

Other BSD Systems





Best BSD firewall?