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):

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

2 Comment(s)

Add comment

Comments

By: Esa Häkkinen

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.

By: Anonymous

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

[email protected]:/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)

[email protected]:/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

[email protected]:/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).