Difference between revisions of "HOWTO: Install VirtualBox"

From Sabayon Wiki
Jump to: navigation, search
m (Aposteeltje moved page HOWTO: Install VirtualBox (Proprietary) to HOWTO: Install VirtualBox (Portage): outdated. Cutting the Entropy part, making it Portage only.)
(No difference)

Revision as of 23:01, 24 November 2012

i18n: en ru


Run these two commands in order to install via Entropy, the fastest, simplest and safest method.

equo update
equo install virtualbox-bin virtualbox-modules
depmod -a
modprobe vboxdrv
modprobe vboxnetadp
modprobe vboxnetflt

to get virtualbox modules loaded automatically

nano /etc/conf.d/modules

add to it:

File: /etc/conf.d/modules


To install via Portage:

1. Edit /etc/make.conf

nano /etc/make.conf

and add the following line:

File: /etc/make.conf

2. Install VirtualBox

 eselect kernel list
 eselect kernel set kernel.number.you.want.here
 emerge --sync && layman -S
 emerge -av app-emulation/virtualbox-ose app-emulation/virtualbox-modules


1. Download the latest VirtualBox from [1]

 su -
 chmod +x VirtualBox-1.6.2-Linux_amd64.run

2. Unistall OSE (if installed)

 equo remove --deep --configfiles app-emulation/virtualbox-bin app-emulation/virtualbox-modules

3. Run the 1.6.2 Installer


4. Continue:

Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation........
VirtualBox Version 1.6.2 (Sat May 31 04:05:23 CEST 2008) installation
If you are upgrading from VirtualBox 1.5 or older and if some of your virtual
machines have saved states, then the saved state information will be lost
after the upgrade and will have to be discarded.  If you do not want this then
you can cancel the upgrade now.

Do you wish to continue? [yes or no]
Removing previous installation of VirtualBox  from /opt/VirtualBox
Installing VirtualBox to /opt/VirtualBox-1.6.2
Building the VirtualBox kernel module
Failed to build the kernel module.  Please check the log file /var/log/vbox-install.log for more information.
Failed to start networking on the guest.  Please check the log file /var/log/vbox-install.log for more information.
VirtualBox has been installed successfully, but the kernel module could not
be built.  When you have fixed the problems preventing this, execute
  /etc/init.d/vboxdrv setup
as administrator to build it.
You will find useful information about using VirtualBox in the user manual
and in the user FAQ

We hope that you enjoy using VirtualBox.

5. The kernel module fails? Oh well!

 cd /opt/VirtualBox-1.6.2/src

6. Run the make

 make && make install

7. Load the module

 modprobe vboxdrv

8. Load at module at start-up (reccomended but optional)

 echo '"modules_2_6="vboxdrv vboxnetflt"' >> /etc/conf.d/modules

9. Enjoy your improved USB support :D

v00d00 13:30, 14 April 2009 (UTC)