(Create the image file by imageburn or else from the original Windows XP DVD, or DL it yourself)
qemu -m 1024 -boot d -cdrom Winxp.iso -hda XPhd.img
qemu -m 1024 -boot c -cdrom Winxp.iso -hda XPhd.img
Some important steps of windows xp installation
After initilization, the windows xp installer will do partition to your hard disk.
What actually is going on during this process is the installer simply calculate the values which will fit into an 4*16 bytes partitioins entry table.
Mix the table with the boot code into a sector.
Copy that sector to the first physical sector of your hard disk.
After the partitioning, you will be able to ask for how to format the partition.
During formatting, in case of NTFS, installer will create (?) the metafile ($MFT, $Volume, $BITMAP...) to the corresponding space in the hard disk.
The booting sequence of Windows XP
1. Under Construction