The virtual machines provided by VirtualBox can be used to run a number of guest Operating Systems such as GNU/Linux, Windows, and others.
VirtualBox is available for Funtoo Linux on the arch profiles x86-32bit, x86-64bit and pure-64.
VirtualBox Homepage: https://www.virtualbox.org
Glossary of Terms
|Host OS||The Operating System on physical hardware that VirtualBox will be installed to and run from. i.e. Funtoo Linux|
|Guest OS||The Operating System that is run within a Virtual Machine provided by VirtualBox. Could be Funtoo Linux, another GNU/Linux distribution, Windows, etc.|
|Guest Additions||Guest Additions is a collection of applications, libraries and kernel modules/drivers that are installed in your Guest OS. These provide support for graphics, networking, file transfer, access to real physical devices (e.g. USB flash drive), and so on.|
VirtualBox is also available as a binary package. If you wish to use the binary version see:
The binary package contains extensions which are not available with the source package.
root # echo "app-emulation/virtualbox-extpack-oracle PUEL" >> /etc/portage/package.license/virtualbox root # emerge app-emulation/virtualbox
Make sure that user running X session belongs to
vboxguest group. Create group when it does not exist. Add user to the group. That will enable :
- Shared clipboard;
- Display resizing;
- Seamless mode;
- Drag & Drop.
root # groupadd vboxguest root # gpasswd -a ''user'' vboxguest
You must enable
additions USE flag when you intend to install Windows as a guest O/S. That will also install the ISO image containing all necessary Windows guest drivers.
If you want to run Funtoo GNU/Linux as a guest O/S, emerge
app-emulation/virtualbox-guest-additions in the Funtoo GNU/Linux guest O/S. For other GNU/Linux, please refer to VirtualBox documentation.
You will not be able to run and use VirtualBox as a regular user if you are not a member of the
root # gpasswd -a ''user'' vboxusers
You must re-log so changes take effect.
Required and optional modules must be loaded before launching VirtualBox. You can do that as root or upon boot.
vboxnetflt are optional.
root # modprobe vboxdrv root # modprobe vboxnetadp root # modprobe vboxnetflt
Upon boot OpenRC
modules="vboxdrv vboxnetadp vboxnetflt"
Each time a new kernel is installed,
vboxdrv kernel module must be recompiled. To ensure Portage knows about that, look at
/var/lib/module-rebuild/moduledb. The following record must be present.
emerge @module-rebuild will recompile VirtualBox driver after installation of new kernel.
latest releases of virtualbox have a volatile NVRAM and this makes an EFI guest boot troublesome. To workaround this following steps required:
- remove any CD images (like systemrescuecd) from the VM settings
- start the VM
- wait for the countdown or press Esc immediately to reach the EFI shell
edit startup.nshto open the full-screen editor
"fs0:\EFI\Funtoo Linux [GRUB]\grubx64.efi"(including the double quotes, since the path contains spaces)
CTRL-s(maybe twice) to save and confirm saving by pressing Enter
- quit editor by pressing
resetto reboot the machine (or kill the VM and boot it using the GUI)
- wait for the countdown or press Enter to immediately run the startup.nsh script