HOWTO: Install Windows XP in Debian using QEMU

This is more or less a reminder for me, most of you will probably already know how to do it...

  1. Install QEMU:
    apt-get install qemu
  2. Create a (resizable) image which will hold Windows XP. The installer chokes if the image is smaller than 1.2 GB or so, but that's not too much of a problem; the "qcow" image format will only take up as much space as is really needed, so the image will be very small in the beginning (not 1.2 GB big!).
    qemu-img create -f qcow /path/to/xp.cow 1300M
  3. Insert the install CD, and install Windows in the QEMU image:
    qemu -hda /path/to/xp.cow -boot d -cdrom /dev/cdrom -m 384 -localtime
  4. Wait.
  5. After the install has finished, shut down the QEMU/Windows; from now on you can boot it (without having to insert the CD anymore) with:
    qemu -hda /path/to/xp.cow -boot c -m 384 -localtime -k de -usb

Type "qemu -h" for more options.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

keyboard

Hi!

I tried the instruction above, and it worked out fine until the windows setup started. The first interaction is to press "Enter" for continuing the installation, but my keyboard wont work anymore during this process. My mouse does strange things,too as an image of the cursor stays where I pressed it.

If anybody has an idea, I would be grateful!

Cheers
chris

Doubts regarding QEMU emulator

Hello Hermann,
I've installed QEMU and it works properly in Kubuntu. But there are problems with the dvd drivers,I am unable to access the dvd device.Is there any solution for this , if yes please reply.

I tried to install both,

I tried to install both, WinXP Professional and WinXP Professional SP2. Both install and boot just fine. I didn't notice such a problem. I didn't try Win XP Home Edition (lack of install CD).

upgrade driver

did you try upgrading to the latest driver?

ML

Please ask on the QEMU mailing list.

Thanks a lot!

Thanks a lot!

Gr8 work!

I was looking for this trick and finally found this one, I wil try it later.
I've installed Parallels Workstation and VirtualBox but they both failed to install.

Thanks man..

Qemu may be also faster

Qemu may be also faster - if you use a kqemu kernel module.

And if you have a modern CPU which is capable of hardware virtualization, using KVM (kernel virtual machine) will make your guests even faster.

Hi Thanks a lot! Works

Hi

Thanks a lot! Works great, except, is it normal for the part of the install where Windows detects and installs all your hardware to take a REALLY long time?

Bye

____________________
Submited by : Dietas

Installation of win xp is

Installation of win xp is kinda slow and it slows linux too, its weird, my processor is running slowly (its not because its hot i checked it, 48ºc), and the memory is not satured (46% of 256MB). At slow cpu usage and not full memory linux at least has to work faster.

Slow

Possible yes, installing in QEMU is not too fast.

Uwe.

Is the problem with SP2 and

Is the problem with SP2 and the missing/loosing
Registration number solved?

f.i.:
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12641

I was looking for this trick

I was looking for this trick and finally found this one, I wil try it later.
I've installed Parallels Workstation and VirtualBox but they both failed to install.

Thanks man..
-------------------------------------
Submited by famous quotes

It's important this

Thanks, Uwe, for this mini-howto. My teacher, always.

I think it's important the previous question, could you say us about it?

Have you installed SP2 without problems?

Qemu + WinXP works

Hi,

I tried to install both, WinXP Professional and WinXP Professional SP2. Both install and boot just fine. I didn't notice such a problem. I didn't try Win XP Home Edition (lack of install CD).

I use QEMU 0.8.1 (no kqemu, no qvm86)...

HTH, Uwe.

Installation of win xp is

Installation of win xp is kinda slow and it slows linux too, its weird, my processor is running slowly (its not because its hot i checked it, 48ºc), and the memory is not satured (46% of 256MB). At slow cpu usage and not full memory linux at least has to work faster.

Anyone has had this problem?

of course it's slow you

of course it's slow. it's an EMULATOR!

8========D ~o ~o ~o ~o

QEMU slowness

Well, sure, it's not exactly very fast, but it's enough for me usually. Did you check CPU load (usually near 100% for me when QEMU is running)? Maybe the hard disk is used a lot in your scenario?

Uwe.

Reply

My cpu load is barely 6% on an average, while installing xp sp2 in qemu!!!