Configure VirtualBox

From gr0x0rd
Revision as of 00:50, 6 December 2010 by Gr0x0rd (talk | contribs) (Created page with "== Virtualization - Configure VirtualBox == Virtualization is one of the most powerful tools of modern computing. It allows you to emulate just about any other computing environ…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Virtualization - Configure VirtualBox

Virtualization is one of the most powerful tools of modern computing. It allows you to emulate just about any other computing environment on your own hardware, among other things. In a nutshell, it allows you to run Windows where it belongs- in a Window. There are many virtualization tools out there. This guide focuses on one that is user-friendly and easy to set up, VirtualBox. VirtualBox was started by a German company that was purchased by Sun Microsystems, which has recently been purchased by Oracle. Let's hope using VirtualBox remains free. VirtualBox has both a source and binary distribution. The advantage of the binary distribution is USB support, so that is what this guide focuses on.

Before you begin, you'll need to add the directive

app-emulation/virtualbox-bin PUEL

to your /etc/portage/package.license in order to emerge the software. Once you are ready,

$ sudo emerge -av virtualbox-bin virtualbox-modules

Once the emerge has completed, you'll need to add yourself or any other users wanting to run VirtualBox to the vboxusers group. Substitute your username in the place of username below.

$ sudo usermod -a -G vboxusers username

Before starting virtualbox, you'll need to initialize the virtualbox modules.

$ sudo modprobe vboxdrv
$ sudo modprobe vboxnetflt
$ sudo modprobe vboxnetadp

To set these modules to automatically load when your system starts you'll need to add them to /etc/modules.autoload.d/kernel-2.6.

$ sudo nano -w /etc/modules.autoload.d/kernel-2.6

Make sure the file contains the following directives:

vboxdrv
vboxnetflt
vboxnetadp

Also remember, whenever you update your kernel, you will also need to reinstall the app-emulation/virtualbox-modules package.