Skip to contentSkip to conversation

QEMU boot failed from harddisk: Could not read boot disk

Qemu-devel Peng Huang 3 participants 4 messages Jul 29, 2009

lore
Share & tools
lore

Peng Huang

author
#0 lore raw

Hi,

I just updated my qemu to git head version, and I found the qemu can not boot now, and the QEMU gives me message "Boot failed: could not read boot disk". And I also found if I put the line '-drive if=ide,index=0,media=disk,format=qcow2,file=winxp.qcow2' before 'drive if=ide,index=2,media=cdrom,file=$CDROM \', the boot will be OK.

Below is my qemu start script.
=====================
QEMU="/home/phuang/local/bin/qemu-system-x86_64 -enable-kvm" # QEMU="qemu-kvm"
CDROM=/dev/cdrom1

ARGS=" \
    -M pc -m 1G -smp 1 -name winxp \
    -localtime \
    -k en-us \
    -boot cda \
    -usbdevice tablet \
    -soundhw es1370 \
    -net nic,model=virtio,macaddr=54:52:00:14:35:9b,vlan=0 \
    -net tap,vlan=0,ifname=tap1,script=qemu-ifup \
    -drive if=ide,index=2,media=cdrom,file=$CDROM \
    -drive if=ide,index=0,media=disk,format=qcow2,file=winxp.qcow2 \
    $*"
#1 lore raw
Quoted 5 lines · On Tuesday 28 July 2009 20:14:38 Peng Huang wrote:

Hi,

I just updated my qemu to git head version, and I found the qemu can not boot now, and the QEMU gives me message "Boot failed: could not read boot disk".

Yeah, the current qemu -git was broken by this commit:

9dfd7c7a00dd700de36ca58005a7cb3934a62efb is first bad commit commit 9dfd7c7a00dd700de36ca58005a7cb3934a62efb

Author: Gerd Hoffmann <[email protected]>
Date:   Wed Jul 22 16:43:04 2009 +0200

switch -drive to QemuOpts.

Demo QemuOpts in action ;)

Implementing a alternative way to specify the filename should be just a few lines of code now once we decided how the cmd line syntax should look like.

I found this out by attempting to install a Fedora 11 image this morning, with:

qemu -m 512 -hda fedora-11.img -cdrom Fedora-11-i686-Live.iso -boot d

Current qemu can't do that. The one before the above commit could.

Rob

Signature · 1 line
Latency is more important than throughput. It's that simple. - Linus Torvalds
#2 lore raw
Quoted 25 lines · Rob Landley
Quoted 5 lines · On Tuesday 28 July 2009 20:14:38 Peng Huang wrote:

Hi,

I just updated my qemu to git head version, and I found the qemu can not boot now, and the QEMU gives me message "Boot failed: could not read boot disk".

Yeah, the current qemu -git was broken by this commit:

9dfd7c7a00dd700de36ca58005a7cb3934a62efb is first bad commit commit 9dfd7c7a00dd700de36ca58005a7cb3934a62efb
Author: Gerd Hoffmann <[email protected]>
Date:   Wed Jul 22 16:43:04 2009 +0200

   switch -drive to QemuOpts.

   Demo QemuOpts in action ;)

   Implementing a alternative way to specify the filename should be just a few lines of code now once we decided how the cmd line syntax should look like.

Quoted 7 lines

I found this out by attempting to install a Fedora 11 image this morning, with:

 qemu -m 512 -hda fedora-11.img -cdrom Fedora-11-i686-Live.iso -boot d

Current qemu can't do that.  The one before the above commit could.

Please check if the following patch fixes this issue:
http://lists.gnu.org/archive/html/qemu-devel/2009-07/msg02221.html

Signature · 2 lines
Kind regards,
Igor V. Kovalenko
#3 lore raw
Quoted 9 lines · On Wednesday 29 July 2009 03:16:58 Igor Kovalenko wrote:
Quoted 6 lines

I found this out by attempting to install a Fedora 11 image this morning, with:

qemu -m 512 -hda fedora-11.img -cdrom Fedora-11-i686-Live.iso -boot d

Current qemu can't do that. The one before the above commit could.

Please check if the following patch fixes this issue:
http://lists.gnu.org/archive/html/qemu-devel/2009-07/msg02221.html

Yup, that fixed it for me.

Rob

Signature · 1 line
Latency is more important than throughput. It's that simple. - Linus Torvalds