Skip to content

Instantly share code, notes, and snippets.

@startergo
Created July 5, 2025 22:56
Show Gist options
  • Save startergo/fbdd7fd2132813f5706310b6004989b4 to your computer and use it in GitHub Desktop.
Save startergo/fbdd7fd2132813f5706310b6004989b4 to your computer and use it in GitHub Desktop.
QEMU Windows XP SP3 VM
./qemu-img create -f qcow2 wxp.qcw 6G

Boot from Windows XP SP3 ISO into OS installation with

RedHat VirtIO Windows Installation floppy that provides drivers for VIOSTOR, NetKVM and optional WINNT.SIF for unattended install.Press F5 to select Windows XP HAL. Press F6 to install VIOSTOR driver

./qemu-system-i386 -nodefaults -rtc base=localtime \
-L ./qemu-7.2.0/pc-bios \
-M pc, accel-whpx, kernel-irqchip=off -m 512 -display sdl
-device VGA -device virtio-blk-pci,drive=boot0 -device lsi -device ac97 \
-netdev user, id=net0 -device virtio-net-pci,rombar=0, netdev=net0 \
-drive if=floppy, file=virtio_vfd.qcw \
-drive id=boot0, if=none,file=wxp.qcw \
-device scsi-cd,drive=xpcd -drive id=xpcd,if=none,media=cdrom, file=winxp.iso \
-boot d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment