vgaromimage: file=VGABIOS-lgpl-latest vga: extension=vbe
Run Bochs with:
bochs -f xp_bochsrc.txt
The emulator will boot from the CD-ROM ISO and launch the Windows XP setup. Important: When setup asks for the disk, you will see an empty, unpartitioned drive of ~2 GB. Create a partition, format it as NTFS (quick), and proceed as if installing on real hardware.
Open a terminal (Linux/Mac) or Command Prompt (Windows – use Git Bash or WSL).
qemu-img create -f raw winxp.img 4G