Received: from [140.186.70.92] (port=44167 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSCwd-0002Dc-8Z for qemu-devel@nongnu.org; Fri, 25 Jun 2010 13:44:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSBKn-0007tY-JD for qemu-devel@nongnu.org; Fri, 25 Jun 2010 12:00:54 -0400 Received: from adelie.canonical.com ([91.189.90.139]:58298) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSBKn-0007tS-CU for qemu-devel@nongnu.org; Fri, 25 Jun 2010 12:00:53 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OSBKj-0007N3-Ro for ; Fri, 25 Jun 2010 17:00:50 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 4DC122E8217 for ; Fri, 25 Jun 2010 17:00:47 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 25 Jun 2010 15:55:06 -0000 From: Cole Robinson Sender: bounces@canonical.com References: <20100527023758.1600.77688.malonedeb@soybean.canonical.com> Message-Id: <20100625155506.24259.20859.malone@palladium.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 586175] Re: Windows XP/2003 doesn't boot Reply-To: Bug 586175 <586175@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I can reproduce with qemu-kvm 0.12.4 like the original reporter. I cannot reproduce with qemu-kvm upstream, qemu stable, or qemu upstream. So boot=3Don could be the culprit. Libvirt generated command line: LC_ALL=3DC PATH=3D/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=3Dnone /usr/= bin /qemu-system-x86_64 -S -M pc-0.12 -no-kvm -m 512 -smp 1,sockets=3D1,cores=3D1,threads=3D1 -name winxp_test -uuid 634dff56-8c5a-fd= bb- b5fc-091bcf78e586 -nodefaults -chardev socket,id=3Dmonitor,path=3D/var/lib/libvirt/qemu/winxp_test.monitor,server,= nowait -mon chardev=3Dmonitor,mode=3Dreadline -rtc base=3Dlocaltime -boot c -drive file=3D/var/lib/libvirt/images/winxp_test.img,if=3Dnone,id=3Ddrive- ide0-0-0,boot=3Don,format=3Draw -device ide-drive,bus=3Dide.0,unit=3D0,drive =3Ddrive-ide0-0-0,id=3Dide0-0-0 -drive file=3D/mnt/data/media/win_xp_sp3_32.iso,if=3Dnone,media=3Dcdrom,id=3Ddrive- ide0-1-0,readonly=3Don,format=3Draw -device ide-drive,bus=3Dide.1,unit=3D0,= drive =3Ddrive-ide0-1-0,id=3Dide0-1-0 -device rtl8139,vlan=3D0,id=3Dnet0,mac=3D52:54:00:ac:e8:ca,bus=3Dpci.0,addr=3D0x4 -= net tap,fd=3D20,vlan=3D0,name=3Dhostnet0 -chardev pty,id=3Dserial0 -device isa- serial,chardev=3Dserial0 -usb -device usb-tablet,id=3Dinput0 -vnc 127.0.0.1:1 -k en-us -vga std -device virtio-balloon- pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x3 Markus has a patch internally against an older qemu-kvm release that apparently fixes the issue, however the upstream code is different so it doesn't cleanly apply. Maybe this will give someone a hint for a proper upstream solution: hw/pc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index d142282..c60a79a 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -271,12 +271,16 @@ static void cmos_init(ram_addr_t ram_size, ram_addr_t= above_4g_mem_size, */ for (i =3D 0; i < 4; i++) { char id[32]; + int cylinders, heads, secs; = if (hd_table[i]) continue; snprintf(id, sizeof(id), "drive-ide0-%d-%d", i / MAX_IDE_DEVS, i % MAX_IDE_DEVS); hd_table[i] =3D drive_get_by_id(id); + if (hd_table[i]) { + bdrv_guess_geometry(hd_table[i]->bdrv, &cylinders, &heads, &se= cs); + } } = /* various important CMOS locations needed by PC/Bochs bios */ -- = Windows XP/2003 doesn't boot https://bugs.launchpad.net/bugs/586175 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Incomplete Status in Debian GNU/Linux: New Status in Fedora: Unknown Bug description: Hello everyone, my qemu doesn't boot any Windows XP/2003 installations if I try to boot the= image. If I boot the install cd first, it's boot manager counts down and triggers = the boot on it's own. That's kinda stupid. I'm using libvirt, but even by a simple > qemu-kvm -drive file=3Dimage.img,media=3Ddisk,if=3Dide,boot=3Don it won't boot. Qemu hangs at the message "Booting from Hard Disk..." I'm using qemu-kvm-0.12.4 with SeaBIOS 0.5.1 on Gentoo (No-Multilib and AMD= 64). It's a server, that means I'm using VNC as the primary graphic output = but i don't think it should be an issue.