Running Windows XP in Debian using QEMU
September 28, 2009
Posted by on
I’m using Debian for my work. Recently, I need to use a tool that will only run on a Windows XP. To setup a Windows XP using QEMU is the solution:
- Install and build the required packages.
# aptitude install qemuctl qemu-launcher
# aptitude install kqemu-common kqemu-source
# m-a prepare
# m-a auto-install kqemu
# modprobe kqemu
# echo kqemu >> /etc/modules
- Run the qemu-launcher.
- Check the “Use CD-ROM” checkbox and put your Windows XP installer CD into your CD-ROM drive.
- For the “Boot disk” drop-down-list, select “CD-ROM”.
- Create the “Hard disk 0” by clicking the “New” button.
- Change the “RAM (MB)” to what you want. I’m using “512”.
- Now, your virtual machine has one harddisk, boots from your CD-ROM and has 512 MB RAM.
- Click the “Launch” button to start your virtual machine. Usual Windows XP installation follows.
The installation process took a long time to complete (much longer than a usual XP installation), but it runs as fast as (if not faster than) a usual XP installation.
* I experience 2 crashes during the installations. Maybe I was just unlucky.
** You can also use an ISO image as your Windows XP installer CD. Just replace the “CD-ROM” setting from “/dev/cdrom” to “/some/directory/to/your/XP.iso”.
*** To enable widescreen support, select the “Standard VGA card with VESA Bochs extensions” under “Video card” section, in the “Hardware” tab.
**** ctrl+alt+f to go into fullscreen mode. ctrl+alt+f again to switch back to window mode.