Installing Windows XP As A KVM Guest On Ubuntu 8.10 Desktop - Page 2

6 Using Virt-Manager To Complete The Installation

Now open the virt-manager (Applications > System Tools > Virtual Machine Manager)...

... and connect to localhost. Mark localhost and click on the New button:

The wizard for creating new virtual machines comes up. Click on Forward:

Provide a name for the virtual machine (e.g. vm8):

Select Fully Virtualized as well as x86_64 and kvm:

Select Local install media (ISO image or CDROM) as well as Windows and Microsoft Windows XP on the next screen:

Now mark ISO Image Location and fill in the path to the Windows XP ISO image (/home/winxp.iso):

Now we come to the storage space - select Simple File and fill in the path to the image we've created before (/home/administrator/vm8.img):

Specify the memory for the Windows XP guest:

Here's a summary of your settings - click on Finish to start the installation:

The Windows XP installer comes up again:

Follow the wizard until you come to the partitioning - select the partition you've previously formatted...

... and then make sure you don't format it again! Select Leave the current file system intact (no changes):

Share this page:

5 Comment(s)

Add comment


From: at: 2009-02-13 17:30:09

Is there a specific reason why you close the QEMU window after the formatting is complete?

From: Anonymous at: 2009-11-06 03:30:50

Contrary to the note in section 1, you CAN run virt-manager on a headless server.

On my Mac, I ran "xhost +my.server.ip".  Then "ssh -X my.server.ip".  Once there, "sudo apt-get install virt-manager".  This will install a bunch of stuff, including GTK libs and some supporting X apps, but it DOESNT actually require X, a Window Manager, or all the other X bloat you don't need if you aren't using the local monitor. 

Then make sure the DISPLAY variable is set: "echo $DISPLAY".  If not, set it: "export DISPLAY='my.mac.ip:0' ".  Then by just typing "sudo virt-manager" on the server (via the ssh session), virt-manager will RUN on the headless server, but DISPLAY on your Mac.

 This assumes you have X11 installed on the Mac.  If not, install it from the Leopard DVD.

 This should also work equally well on a PC, just use something like Putty and XMing to provide the SSH connection and an X Window (display) server on your PC.

Hope that tip helps someone out--managing KVM via command line was driving me nuts! 

From: Esa Häkkinen at: 2009-03-27 11:59:52

It's quite short window of time to close QEMU window after 1st formatting, just when You see that format bar filled 100% and when it disappears, click X on that exact moment!

 For me, it was inside about 1 second before "Setup is checking..." appears and install was doomed.

 I'm using LVM block devices & "<features><acpi/></features>" in domain xml config.

 This behavior is only seen in 32bit WinXP, not in Win2000 nor 64bit, at least not for me.

From: Anonymous at: 2010-02-25 20:07:44

I kept getting formatting errors when installing XP.  I ended up using:

anon@Whitney:/home/vm1$ qemu-img create -f qcow2 winxp.qcow2.img 9G 

to create a 9G disk image that was in the qcow2 format.

XP+KVM seemed to like this much better, and the added benefit is that it only uses the space it needs on the Linux filesystem.

(ls done after the install)

anon@Whitney:/home/vm1$ ls -alh
total 269M

-rw-r--r-- 1 anon anon 2.3G 2010-02-25 06:53 winxp.qcow2.img

Then I used the

anon@Whitney:/home/vm1$ qemu -localtime -no-acpi -cdrom /home/anon/Windows_XP_pro.iso  -m 512 -boot d /home/vm1/winxp.qcow2.img

To boot the VM with the image file, and my XP.iso (and use 512 MB of mem).


From: Nathan Kidd at: 2009-03-06 21:42:57

1. Reason to use

dd if=/dev/zero ...

is because it lets you easily compress the image later if wanted.

2. kvm won't boot a qcow2 image (but you should be able to convert afterward with

qemu-img convert ...