How to virtualize XP on Ubuntu

James Bannan16 December 2008, 10:00 PM

Need to get Windows XP up and running on Ubuntu? Our step-by-step tutorial covers all you need to know.

Page 1 - Intro

Step 1 - Prepare Your System

In this tutorial we're going to virtualize Windows XP Professional SP3 on Ubuntu 8.04.1 x86 using Sun xVM VirtualBox 2.0.2.

Before starting the tutorial, you'll need to download the VirtualBox Debian installer for Ubuntu 8.04 (available here).

You'll need a system already running Ubuntu 8.04.1. You will also need the XP installation CD to hand.

This tutorial was tested on an Acer Extensa 5620 running Ubuntu 8.04.1.

Before going down the virtualization path, you should make sure that the system which will act as the host has sufficient resources to run both its own operating system as well as all the virtual machines you're planning to run.

Running virtualized desktop operating systems isn't particularly processor intensive, so really any relatively up-to-date CPU should be able to handle it. Obviously processors with more than one processing core is beneficial, as are CPUs which support Intel-VT or AMD-V.

RAM and disk performance and availability are the most essential components. You really want to be able to run both the host and guest OSes within physical memory. As soon as physical RAM is full and spills over to the page file, hard drive performance will decrease dramatically, adversely affecting both systems. Therefore, on a system running Windows Vista as the host you really need at least 2GB RAM to make virtualization worthwhile. Obviously the more RAM the better, but if you've got 4GB available then you will really need to install a 64-bit version operating system to get the most out of it.

For this reason, Ubuntu makes a very good virtualization host, as the amount of memory it needs to run effectively is quite low, leaving more resources available for the VMs.

Hard drive performance is also a major factor, as the virtual guest will be completely dependent on it. You shouldn't attempt to host the virtual hard drive of the guest system on a hard drive slower than 7200rpm, so laptop users should verify their hardware first. You can use an external USB 2.0 or Firewire hard drive, but certain intensive disk operations like creating the virtual disk, formatting it or copying large amounts of files around will chew up the available bus bandwidth and performance will be affected. Finally, if you host the entire virtual guest on the primary partition of the host, fragmentation will occur and affect both systems. So keep the partition defragged and reap the performance benefits.

The last word of warning is that it's important to remember that your system will be running two operating systems, so resource management becomes very important. For example, it's not a good idea to encode video while running a live VM unless you have some serious processing power to hand. It's worthwhile to fire up the System Monitor in GNOME to see under what sort of load your system is running. To access the System Monitor, go to System, Administration, System Monitor, and then the Resources tab. You want to keep your eye on the CPU and Memory graphs.

Continue to page 2: Install VirtualBox
Page 1 Intro
Page 2 Install VirtualBox
Page 3 Create New XP VM
Page 4 Install Windows XP
Page 5 Install Guest Additions
Page 6 More VirtualBox Options

Post your comment



anonymous user Anonymous user

Jun 2013 magazine issue

June 
APC
out now!

Tags