HOWTO: Using VirtualBox to run Sabayon Linux

From Sabayon Wiki
Jump to: navigation, search

It is possible to run Sabayon Linux through VirtualBox (that is, with Sabayon as the guest OS). This may be done by downloading a live CD/DVD ISO for Sabayon Linux (from the download page or Sabayon torrents page), starting VirtualBox, creating a new virtual machine (by clicking the "New" option in the toolbar), adding your Sabayon Linux ISO to the VM and going through the Sabayon Linux installation process within the VM.

Installing guest additions

To install VirtualBox guest additions on a guest system running Sabayon Linux (note this is after Sabayon has been installed on the Virtual machine) first install the Oracle VM VirtualBox Extension Pack (which can be downloaded from the official Downloads page), then add a blank disk to your Sabayon Linux VM (by going to "Settings→Storage" and adding a new optical disk and leaving the disk empty) and once the machine is started go to the "Devices" menu and select "Insert Guest Additions CD Image". After this run the following commands from within the VM:

# mkdir /media/VBox
# mount -r /dev/cdrom /media/VBox
# equo i make bzip2 perl gcc base-gcc
# export KERN_DIR=/usr/src/kernels/`uname -r`
# cd /media/VBox
# ./VBoxLinuxAdditions.run
# gpasswd -a USERNAME vboxusers # replace USERNAME with your username
# reboot

Alternatively, one can install VirtualBox guest additions from the Entropy Store with:

# equo i virtualbox-guest-additions