In this how to I will go through creating a virtual machine, “a self-contained operating enviorment that behaves as if it is a separate computer”. This is really handy if you want to test out different Operating Systems, run Windows in Linux or generally muck about without messing with your actual system!
$ sudo apt-get install virtualbox-ose
You'll be prompted for your sudo password.
$ uname -r
2.6.24-16-generic
You can see that your current kernel is 2.6.24-16-generic. I find its easier to open up Synaptic Package Manger here, search for virtualbox and then scan down for the virtualbox-ose module that matches the kernel. Be careful not to select the guest module. Mark it for installation and apply.
$ sudo usermod -G vboxusers -a <username>
- VirtualBox can be installed using YaST (YaST –> Software –> Software Management and search for 'virtualbox') or through the command line:
sudo zypper install virtualbox-ose virtualbox-ose-guest-tools virtualbox-ose-kmp-debug virtualbox-ose-kmp-pae xorg-x11-driver-virtualbox-ose
This will take some time. When the packages have installed, reboot your system. You will need to boot the new PAE kernel. This should now automatically be the default in your boot loader.
After installing Ubuntu server you will frustratingly not be able to boot it up, getting a error like
The kernel requeres the following features not present on the CPU: 0:6
There's a good explanation of the cause and fix here.
$ apt-get update;apt-get install linux-386;apt-get remove linux-server
Now restart and voila!
In order to save precious precious time, I've created a fresh image of Ubuntu 8.04 Server Edition.

- Preparatory work. VirtualBox may throw an error because of permissions when you try to launch the virtual machine. You will need to add yourself to the vboxusers group. To do this, open Konsole (the KDE terminal). It is located under Applications –> System –> Terminal –> Terminal. Execute this command as the root user:
sudo groupmod --add-user <your_username> vboxusers
(where <your_username> is the name of your account under /home, such as 'bob'). You will need to log out and log back in again for this change to come into effect.
- Now, open VirtualBox. In the Kicker panel, click on the Gecko icon, change to the Applications tab, click on System and launch VirtualBox OSE.
- Click on New to create a new virtual machine. Follow the instructions as per installing VirtualBox on Ubuntu Linux. You may use the CompSoc virtual hard drive image (vdi) file. This negates the need to create a virtual hard disk and install Linux on it. The username for this image is compsoc and the password is letmein. This can be easily changed but is fine for casual use. You will need to add this drive by clicking on Existing and locating the hard disk image instead of creating a new (virtual one).
- If, upon launching your virtual machine, you get the error message about not having the VirtualBox kernel module installed, revert to your terminal and execute this command to load it:
sudo /etc/init.d/vboxdrv setup
- To ensure this module is loaded every time you boot your machine, open YaST and enter your password. Click on System and launch the /etc/sysconfig Editor. Expand the System section, then Kernel. Click on MODULES_LOADED_ON_BOOT and enter vboxdrv in the text field. Click Finish to apply your changes.
- Launching the virtual machine should now work. Be sure to select the correct keyboard layout. If you experience errors booting from the ISO or VDI files, tap F6 and delete the words 'quiet splash' for verbose details during boot-up to get an idea of what is going wrong.
- If you're using the Ubuntu CD or ISO, proceed with installation. You will need (at minimum) at swap partition (~512 MB) and a root partition (/).