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

Afterwards, some files are being copied to the partition...

... before the system gets rebooted:

In fact, it doesn't reboot, but shuts down. Go to View > Details:

Go to the Hardware tab and select Disk hdc (that's the Windows CD drive). Click on the Connect button:

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

Close the Virtual Machine Details window afterwards and then click on the Run button to start the guest again:

After a few moments, the Windows XP installation should continue. Just follow the wizard:

And finally, here's your Windows XP guest:


7 Links

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 ...