First you create a disk image for your Windows (the disk image will be used to store data for the virtual hard drive in qemu). For example, to create a disk image (named winxp.img) of size 3GB:

Have your Windows cdrom ready (either an iso or a physical cdrom disc). The following command boots up your Windows CD-ROM so that you can install on to your just created disk image winxp.img (-no-acpi is a must if you plan on using an accelerator with full acceleration (-kernel-kqemu option)):

or if you have physical cds you want to install from:

(windows host)

where D in //./D: is the drive letter of the host cdrom with the Windows install disc in it.

(*nix host)

where /dev/cdrom is the node in /dev/ representing your host's cdrom device

You might need to put in -L bios. This is to indicate to QEMU where the folder the bios/rom images are. Besides, your disk image (winxp.img) is passed to QEMU by -hda winxp.img . If you want to put in more than 2 disk images, use -hdb diskd.img ,...).

Now you can install your windows version. Please consider formatting your drive with FAT(32) instead of NTFS if you got an error message (such as "cannot format") during the first step of the install.

After finishing the installation, you can start booting from your disk image:

Notes:

(qemu) eject cdrom
when working with iso images
(qemu) change cdrom filename.iso
when working with physical cdrom drive on Linux host
(qemu) change cdrom /dev/cdrom
when working with physical cdrom drive on Windows host (drive letter)
(qemu) change cdrom //./D:

WindowsOnQemu (last edited 2007-09-26 11:15:31 by BenjaminSonntag)