Running WinXP using qemu-launcher under Debian Squeeze

Installing WinXP using qemu-laucher under Debian Lenny is simple but doing the same in Debian Squeeze is not so smooth.  Last night, I set up a new WinXP using qemu-launcher on my newly installed Debian Squeeze.  The installation went smoothly and I was booting into WinXP after less than 2 hours.  But then, I realize that the network card is not installed.  It seems like WinXP does not have the driver for it.  The whole reason for installing a WinXP is to run a proprietary networking software which runs on Windows only.  It seems like the qemu version shipped in Debian Squeeze has a different default NIC than the previous version in Lenny.  Thus, the solution is to launch the virtual machine directly from command line and specify a NIC explicitly.  To get a list of supported NIC model:

~$ /usr/bin/qemu  -net nic,model=\? winXP.qcow
qemu: Supported NIC models: ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio

I pick the first first model and successfully launch my WinXP installation with the following command:

~$ /usr/bin/qemu -boot c -m 512 -hda 'winXP.qcow' -localtime \
> -net nic,vlan=0 -net user,vlan=0 \
> -net nic,model=ne2k_pci &

This time, the network card is recognized and setup properly by WinXP.  Since I do not know how to tell qemu-launcher to use a different NIC, I’ll have to use the above command (I put it in a script) to launch my WinXP installation.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: