Posted by: reformedmusings | December 10, 2008

Setting up Sun VirtualBox 2.0.6 under Ubuntu 8.10 Intrepid

I’ve been happily using VMWare’s VMWorkstation to test software setups in virtual machines for about a year. With my new Ubuntu 8.10 Intrepid test setup, I decided to try Sun’s VirtualBox virtualization system. I chose Sun’s distribution over the OSE version primarily because of its improved USB support. Both are free, but Sun’s version sports some proprietary code to improve USB and network performance.

The best way to install VirtualBox and keep it updated is to add its repository to the source list. On the Ubuntu menus, open System -> Administration -> Software Sources:

vbox-sources

Click on Add… and paste the following line into the dialog and click Add Source:

deb http://download.virtualbox.org/virtualbox/debian intrepid non-free

Close Software Sources, this time without letting it update the package list. Open Applications -> Terminal, then cut and paste the following lines individually into to the terminal:

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add –
sudo aptitude update

Leave the terminal open for now.

Open up System -> Administration -> Synatic Package Manager and type “virtualbox” in the Quick search box:

vbox-synaptic

Click the box next to virtualbox-2.0, select “Install package” from the popup, and you’ll see the following list of support packages required:

vbox-install-libsAdditional support packages are often required by programs. You should always review them to prevent surprises. Click on Mark, then click on Apply on the Synaptic toolbar. During the install, a handy dialog box will appear reminding you to add yourself to the “vboxusers” group:

vbox-users-warn1

Click Forward to continue the install. Meanwhile, you can access the user group assignments from System -> Administration -> Users and Groups:

vbox-user-settings

Click on Unlock and type in your root password. Then highlight your user name and click on Properties, then the User Privileges tab:

vbox-account-privilegesClick the box next to Use VirtualBox and then OK. Do the same for all users who will share VirtualBox. Meanwhile, the installation will progress to compiling the VirtualBox drivers for your running kernel:

vbox-compile

Simply click on Forward through the wizard and the installation will take care of the details. When it’s done, you’re almost done.

USB support requires a quick patch to a system file (many thanks to Sam Lesher for this patch). Go back to your terminal and type:

gksudo gedit /etc/fstab

This will open the file fstab in the Gnome editor. Create a new line after the last line of the file, then paste in the following line:

none /proc/bus/usb usbfs devgid=46,devmode=664 0 0

Click Save, then close the editor. Restart the system and you’re ready to rock!

VirtualBox will be a menu item under Applications -> System Tools. The first time that you execute VirtualBox, you will have to accept their user agreement. It will also bug you every time that you start the program until you register:

vbox-reg

It’s free, and Sun provides a checkbox to opt out of further contact. After these preliminaries, VirtualBox itself will appear:

vbox-open

The next post will feature the creation of an example PCLinuxOS virtual machine in VirtualBox.

Update 12/11/2008: It is important to install VirtualBox Guest Additions in your virtual machines. I post directions here.


Responses

  1. Thats good. Very good information there.

  2. […] a virtual machine under VirtualBox 6 In my last post, I installed Sun’s VirtualBox 6.06 into Ubuntu 8.10 Intrepid. In this post, we’ll […]

  3. […] Sun VirtualBox 6 Guest Additions in Linux guests In this post, I covered the basic installation of Sun’s VirtualBox 6 into Ubuntu 8.10 Intrepid. Then, we […]

  4. […] Reformed Musings Posted in Applications. […]

  5. […] 8.10 Intrepid to another hard drive, I merely intended to explore the workings of Compiz Fusion and Sun VirtualBox in it that I could not test in a virtual machine. During that process, I came to respect this new […]

  6. […] a Windows XP guest in VirtualBox for Linux In a previous post, I showed how to set up Sun’s VirtualBox in Ubuntu 8.10 Intrepid. Then, I went through setting up a PCLinuxOS virtual machine in VirtualBox, followed up with how to […]

  7. […] Erabiltzaileen baimena kudeatzeko programa System -> Administration -> Users and Groups da. (Hemendik […]

  8. Thanks for saving me hours of hair-pulling… I just re-installed Intrepid and was setting up VBox and couldn’t remember how to get the USB working in my WinXP machine. Long live Linux and Open Source programs!


Leave a comment

Categories