Installing VirtualBox 3.0 On An Ubuntu 9.04 Desktop
Author: Falko Timme
Follow me on Twitter
Last edited 07/07/2009
This tutorial shows how you can install Sun VirtualBox 3.0 (released on June 30, 2009) on an Ubuntu 9.04 desktop. With VirtualBox you can create and run guest operating systems ("virtual machines") such as Linux and Windows under a host operating system. There are two ways of installing VirtualBox: from precompiled binaries that are available for some distributions and come under the PUEL license, and from the sources that are released under the GPL. This article will show how to set up VirtualBox 3.0 from the precompiled binaries.
As of version 2.0 VirtualBox supports 32 and 64bit host and guest operating systems (if you want to install 64bit guests your processor must support hardware virtualization and, of course, the host operating system must be 64bit as well).
This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!
Installing VirtualBox From Precompiled Binaries
First open a terminal (Applications > Accessories > Terminal):
sudo gedit /etc/apt/sources.list
... and add the VirtualBox repository to it:
[...] deb http://download.virtualbox.org/virtualbox/debian jaunty non-free
Then add the public key of the VirtualBox repository to your system...
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
... and update the package database:
sudo aptitude update
Afterwards you can install VirtualBox 3.0 as follows:
sudo aptitude install virtualbox-3.0 dkms
(The dkms package ensures that the VirtualBox host kernel modules are properly updated if the Linux kernel version changes.)
During the installation, you will see the following screens:
Select <Yes> when you are asked Should the vboxdrv kernel module be compiled now?:
That's it! VirtualBox is installed now.
To start VirtualBox, go to Applications > System Tools > Sun VirtualBox (if you don't see the VirtualBox launcher, log out of the desktop and back in again):
When you start VirtualBox for the first time, you are prompted to accept its license:
Afterwards, you can register your VirtualBox installation. You can click on Cancel if you don't want to do this (VirtualBox will work nonetheless).
That's it! You can now use VirtualBox to create virtual machines: