Monday, 26 July 2010

How to install VirtualBox on Ubuntu Server 10.04 LTS

VirtualBox is virtualisation app that enables you to virtually run any guest OS.

First make sure you have the latest updates:

sudo apt-get update
sudo apt-get upgrade


In order to install VirtualBox on Ubuntu Server you first have to make sure that correct kernel is visible. First check current system version with command

uname -r

Then make sure that system headers match this version. If that is not the case, simply run

sudo apt-get install linux-headers-[version]

replacing [version] with your system version (previous command output)

After making sure kernel headers are correct, install VirtualBox using apt-get with

sudo apt-get install virtualbox-ose

Alternatively, you can download and install appropriate .deb package (for example virtualbox-3.2.deb). After you download .deb installation file you can simply install it using command

sudo dpkg -i

That’s it!

No comments: