How to install Virtualbox & run Windows XP / Office 2007 in Ubuntu

Virtualbox is a virtualisation package for Linux originally developed by Sun Microsystems. It’s an incredibly powerful and easy way of being able to run Windows XP or Vista from Ubuntu. This guide will talk you through the process of installing Virtualbox, after which we’ll look at installing Windows XP. Running XP inside Ubuntu has so many benefits, like file compatibility, using active-x in internet explorer and lots more.

Here’s a few shots of my PC running Ubuntu and Windows XP, BBC Iplayer and Microsoft Office 2007. Click the images for a full size view:

Ubuntu running Windows XP

virtualbox running Windows XP and BBC iplayer

Run Office 2007 from Ubuntu using Virtualbox

I took the screenshots while Compiz cube was in mid-rotate. Looks good doesn’t it? (If you haven’t done so already, I recommend you install compiz fusion!) Performance wise, Windows XP starts up just as quickly if not slightly quicker than a standard installation if you have a powerful machine. Just goes to show what a great operating system Linux can be. -)

How is it done?

Installing Virtualbox is quite straightforward. There’s a simple process to follow to get up and running with your XP virtual machine. That process looks like this:

1) Install Virtualbox using Synaptic package manager

2) Add your user profile to the vboxusrs group so Virtualbox will work

3) Create a virtual machine in Virtualbox

4) Install Windows XP (from CD in this post) on your new virtual machine

5) Booting your virtual machine from the Windows XP installation CD

Installing Virtualbox using Synaptic Package Manager

Open Synaptic (System>Administration) – search for “virtualbox-ose” and install.

Add your user profile to the vboxusrs group

Once Virtualbox is installed, you’ll have to add your user profile to a group created by the install process called vboxusrs. Time to start using Terminal – here’s the command:

sudo adduser [your username] vboxusers

Create a virtual machine in Virtualbox

You’re now ready to start the application (Applications>System Tools>InnoTek VirtualBox) – here’s how it looks:

Virtualbox in Ubuntu

We’re going to create a new virtual machine called WinXP-2 so you can see the process from start to finish. There are about 8 steps to follow, begin by clicking the “New” button.

The virtual machine wizard dialogue. Click next to get started, give the new machine a name and select the type of OS you’re going to install.

Give the new machine a name and select the type of OS you’re going to install.

Create a “dynamically expanding image” – if you use up all the available space the disk image you’re creating will expand.

Now select the actual size of the image. This is how much virtual hard disk space you’ll have to play with when you first boot the machine. When you click next you’ll be given a summary of what’s happening so far.

You’re now taken to the Virtual hard disk dialogue and your new hard disk has been created and should display in the drop down. Click next. You’re given one final confirmation and that’s it, click finish.

Booting your virtual machine from the Windows XP installation CD

Clicking finish will take you back to the virtualbox user interface. Clicking “start” will initiate the first run wizard. There’s no need to use the wizard, actually it’s quite important to get used to the settings dialogue.

To be able to get your virtual machine booting from an XP install cd, we need to mount the CD/DVD drive. Click the settings button and you will see this window – click the CD/DVD-ROM tab.

Virtualbox settings

Make sure you select the “Mount CD/DVD Drive” checkbox.

While you’re in the settings window, familiarise yourself with the different tabs. Particulary, “Network” – it’s worth taking a look and making sure that the “cable connected” check box is selected – which enables your new virtual machine to get an internet connection. When you’re done, click OK.

Finally, with the Windows XP installation CD in your drive, click the start button. With any luck you’ll see a new installation happening right in front of you!

XP installing in Ubuntu

Once you’ve got XP completely installed, you might want to install the guest additions ISO, which will allow you a full screen resolution and a lot of compatibility between Ubuntu and XP. I’ve just published a post about doing this here. Enjoy!


Enable USB Support in Virtualbox

1. Enabling USB support

a. Open up the terminal and issue this command:

sudo gedit /etc/init.d/

b. Find this lines of codes:

# Magic to make /proc/bus/usb work
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700, devmode=0600, listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount –rbind /dev/bus/usb /proc/bus/usb

c. Uncomment the code block to look like this:

# Magic to make /proc/bus/usb work
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb

d. Save the file

2. Lets mount ourselves

a. Open again the terminal and issue this command:

grep vbox /etc/group

– you’ll get something like: vboxusers:x:<gid>:david, where <gid> may vary on your end

b. Enable the usb interface:

sudo gedit /etc/init.d/

– Add the following line somewhere after /proc is mounted:

domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev,devgid=<gid>,devmode=664

– where <gid> is the one in the previous step

c. Save.

3. fstab the usb

a. Go to terminal again and type in:

sudo gedit /etc/fstab

b. Enter this in your fstab under all of the rest of the lines, make sure you do not edit anything BESIDES adding this new line.

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

c. Reboot your computer.

4. Plug in your USB thing

5. Run Virtualbox

a. Go to Settings
b. Find ang click USB somewhere on the left side
c. Enable Enable USB Controller and Enable USB 2.0 Controller
d. Add your USB device (with that USB icon with a plus).
e. Click Ok and start it off!

Additional Help:



  1.   BowenEddie says :

    If you want to buy a house, you would have to receive the business loans. Moreover, my sister all the time utilizes a small business loan, which is really reliable.

  2.   essaysempire firm says :

    Also students may find information about different review essays types on their Internet site, as well as find college writing guidelines.

Leave a Reply

See also:

Skip to toolbar