Installing VirtualBox 2.0 On An Ubuntu 8.10 Desktop

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2008-12-09 18:05. :: Ubuntu | VirtualBox | Desktop | Virtualization

Installing VirtualBox 2.0 On An Ubuntu 8.10 Desktop

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Last edited 11/12/2008

This tutorial shows how you can install Sun xVM VirtualBox on an Ubuntu 8.10 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 2.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

Open Firefox and go to http://www.virtualbox.org/wiki/Linux_Downloads. For Ubuntu 8.10, click on the i386 or AMD64 link (depending on if you have a 32 or 64 bit host operating system) right of Ubuntu 8.10 ("Intrepid Ibex"):

In the Firefox download dialogue, select Open with GDebi Package Installer (default):

After the VirtualBox has been downloaded, a Package Installer window opens. Click on Install Package:

If you see this message during the installation, click on Forward. I will address this issue later on (the message says that the user that runs VirtualBox - that's the user you're logged in as on your desktop - must be a member of the vboxusers group):

Click on Close afterwards to finish the installation and leave the Package Installer:

Now to add the desktop user (falko in this example) to the vboxusers group, we must open a terminal (Applications > Accessories > Terminal):

To add the user falko to the vboxusers group, we run

sudo usermod -G vboxusers -a falko

in the terminal and close it afterwards.

To start VirtualBox, go to Applications > System Tools > Sun xVM 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, type in your name and email address to register your VirtualBox installation:

The registration confirmation window might be hidden behind the window with the registration form. If you have filled out the registration form and wonder why nothing happens, move the window with the registration form. Click on OK in the registration confirmation window:

That's it! You can now use VirtualBox to create virtual machines:

 

Links


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Jarno (not registered) on Wed, 2008-12-10 22:33.

Why not:

sudo apt-get install virtualbox

Submitted by Leow (registered user) on Tue, 2009-01-06 06:52.
Hi Jarno, I was using the command line like you have said. However, sometimes the newer version of Virtualbox has not yet got the full package for the command line installation. I am not sure what is that called but this problem can be solved by reinstalling directly as mentioned in this tutorial.
Submitted by &rés (not registered) on Wed, 2008-12-10 17:47.

You can install VirtualBox from repositories just in one line. The following line first add the repositories, then update the repositories and finally install VirtualBox and adds your current user to vboxusers' group. Don't forget to replace intrepid with your Ubuntu name.

Here you have the line:

echo deb http://download.virtualbox.org/virtualbox/debian intrepid non-free | sudo tee /etc/apt/sources.list.d/virtualbox.list && wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install virtualbox-2.0 && sudo adduser $(whoami) vboxusers

You can also read a better explanation is Spanish in http://sliceoflinux.wordpress.com.

Submitted by Anonymous (not registered) on Sun, 2009-01-11 08:42.
Thanks. Your terminal one liner works very well. Most importantly it adds the vbox apt respository so that vbox will receive updates.
Submitted by Anonymous (not registered) on Tue, 2008-12-09 22:40.

Thanks for the step by step, I was  able to follow you instructions VirtualBox is now installed on my Linux box.

Thanks, again!