To install the current version of VirtualBox, you need to unmask it. I am a new comer of Gentoo/Pentoo, so my tutorial may not be 100% right.
Step 1 :
sudo eix virtualboxsudo nano /etc/portage/package.accept_keywordsAppend the following lines :
=app-emulation/virtualbox-bin-4.2.10 ~amd64
=app-emulation/virtualbox-modules-4.2.10 ~amd64
=app-emulation/virtualbox-guest-additions-4.2.10 ~amd64
=app-emulation/virtualbox-extpack-oracle-4.2.10 ~amd64
=app-emulation/virtualbox-additions-4.2.10 ~amd64
=app-emulation/virtualbox-4.2.10 ~amd64sudo eix-update
sudo eix virtualboxYou will then see the current version on the screen.
sudo nano /etc/portage/make.confAppend "
PUEL" at the end of the ACCEPT_LICENSE :ACCEPT_LICENSE="AdobeFlash-11.x Intel-SDP PUEL"Step 2 (Install from the binary) :
** This step is tested **
Then check if the installation of VirtualBox will be working or not. I am going to install the "
virtualbox-bin", the binary file, instead of compiling from source :sudo emerge -pa virtualbox-binIf everything is alright, you can install it :
sudo emerge -av virtualbox-binStep 3 :
After the installation, you need to add yourself (samiux here) to the group of "
vboxusers" on the host (Pentoo) :sudo gpasswd -a samiux vboxusers
sudo gpasswd -a vboxusers samiuxStep 4 :
Since the necessary modules of VirtualBox do not load properly, you need the following script to load and unload it when necessary.
Download it and save it at
/etc/init.d/virtualbox :sudo chmod +x /etc/init.d/virtualboxTo start it :
sudo /etc/init.d/virtualbox startTo stop it :
sudo /etc/init.d/virtualbox stopTo start it automatically when boot :
sudo rc-update add virtualbox defaultUpdate :
According to one of the developers, you have another way to load the modules automatically :
echo modules="vboxdrv vboxnetflt vboxnetadp" >> /etc/conf.d/modulesStep 5 (General Linux) :
Install Linux guest (when necessary). After the installation, you need to add yourself (samiux here) to the group of "
vboxsf" on the guest (Linux) :sudo gpasswd -a samiux vboxsf*** make sure it is vboxsf BUT NOT vboxfs.
Then, the share folder feature will be working properly.
Step 6 (Pentoo) :
Install the same version of virtualbox-guest-additions in your guest (Pentoo / Gentoo) as above mentioned method.
At the guest (Pentoo), you should do the following as the required module does not load properly and the mount does not work automatically.
sudo nano /etc/local.d/00-vboxsf.start
modprobe vboxsf
mount -t vboxsf vbox_share /media/sf_vbox_sharesudo chmod +x /etc/local.d/00-vboxsf.startsudo gpasswd -a samiux vboxsfReboot your guest.
That's all! See you.

