Installing virtualbox on Ubuntu

Virtual Box will allow you to run other operating systems inside of you Ubuntu installation.

You can run xp, other windows distro’s, solaris, freebsd, …

Installation is pretty easy, but there are some steps that might confuse new users.

There are two version, the open source one (in the Ubuntu repos) and a non open source one (available from their website).

In this guide I’m presuming you’ll install the one from the Ubuntu repositories (steps should be the same when installing the one from their site, or newer versions).

1. Installation

Open up a terminal and copy/paste this command

sudo apt-get install virtualbox-ose virtualbox-ose-source virtualbox-ose-modules-generic

If this won’t work for you or virtualbox complains that a module isn’t installed, open up synaptic and install virtualbox-ose-modules-2.6.24-19-generic (if 2.6.24-19 is the kernel you are running, for the moment in hardy that is the correct one).

2. Adding yourself to the group

Use this command in a terminal.

sudo adduser username vboxusers

Replace “username” with your own username.

3. Log out and back in

Do it.

4. Done

That should it.

If you have question, you would best ask them in the or the forums of your linux distro. You can ask them here, but my reply might take a few hours.

    • opensciinfo
    • August 23rd, 2008

    VirtualBox OSE can also be installed through Applications -> Add / Remove, as well as System -> Administration -> Synaptic Package Manager, which can also install virtualbox-ose-modules-generic.
    Of course when the command line is so easy, then it hardly matters which method to use, since they will all work okay 🙂

    • linuxowns
    • August 23rd, 2008


    Correct, everything you can install from the terminal using apt or aptitude you can install using synaptic, or visa verse.

    I just think the copy/paste instructions for the terminal are better for this site as all Ubuntu derived distros (and some other) can use them.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: