I run also into these problems When installing XP an a blank raw harddisc image the first step of installing works fine, until the first reboot after initial XP setup. It seems that the bootlader in MBR couldn't start the NTLDR on the XP partition bootsector.
A run of testdisk on the raw image file detects a difference between the disc geometry mentioned in the MBR and in the NTFS partitions start sector. MBR says that there should be 255 heads and NTFS partition boot sector assumes 16 heads. I edidet the NTFS partition bootsector manual, and the problem went away. When i do the setup with the plain qemu emulator there is also no problem. For me it seems, that the it must be a problem between seabios und the kvm. may be the kvm handels the bios information in a different way? However, i've posted the way to manually correct the number of heads in the upstream bug report. https://bugs.launchpad.net/qemu/+bug/586175?comments=all I think it may be a good idea to post it also here: Asume: A raw complete harddisc image within a bootable NTFS partition with XP or 2k3 on it Incident: when using these image with kvm based qemu, the system wan't boot anymore solution: 1) set up the whole discimage as a loop device - losetup /dev/loop0 /path/to/my/diskimage.raw 2) let kpartx create drive mappings for all partitions within the loop device - kpartx -a /dev/loop0 3) you need to know on which partition your NTFS partition resides - fdisk -l /dev/loop0 4) use the right partition mapping with hex-edit (eg. partition 1) - hexedit /dev/mapper/loop0p1 5) look on hex position 0x1a, for the count of heads NTFS asumes - in hexedit type enter and then 1A 6) change the value to 0xFF - in hexedit type FF 7) save and exit hexedit - press Ctrl+X to end 8) remove the partition mappings - kpartx -d /dev/loop0 9) remove loop device - losetup -d /dev/loop0 qemu-kvm 0.12.4+dfsg-1 qemu 0.12.5+dfsg-1 kqemu-modules-2.6.32-5-amd64 1.4.0~pre1-3+2.6.32-18 kqemu-common 1.4.0~pre1-3 seabios 0.5.1-3 Cheers Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org