Bug 518965 - CDROM boot failure code : 0003
Summary: CDROM boot failure code : 0003
Status: CLOSED DUPLICATE of bug 517151
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-08-24 12:11 UTC by Tim Waugh
Modified: 2009-08-26 15:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-08-26 15:30:42 UTC

Attachments (Terms of Use)
F11.log (602 bytes, text/plain)
2009-08-26 15:22 UTC, Tim Waugh
no flags Details
F11.xml (1.70 KB, text/plain)
2009-08-26 15:22 UTC, Tim Waugh
no flags Details

Description Tim Waugh 2009-08-24 12:11:05 UTC
Description of problem:
I cannot get a virtual guest to boot from a CD-ROM ISO image.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Clean install of packages (yum install virt-manager)
2.Run virt-manager
3.Set up a new Fedora 11 guest from qemu:qemu-owned Fedora-11-x86_64-DVD.iso

i.e. click New, fill in name as F11, select Local install media, click Forward
Select Use ISO image, Browse, Browse Local, select Fedora-11-x86_64-DVD.iso
OS Type: Linux, Version: Fedora 11, Forward
Memory (RAM): 1024Mb, Forward
Enable storage for this virtual machine
Create a disk image on the computer's hard driver
1Gb, don't allocate now, Forward, Finish

Actual results:
Guest BIOS reports:

Booting from CD-Rom...
CDROM boot failure code : 0003
Boot failed: could not read the boot disk

FATAL: No bootable device.

Expected results:
Boots normally.

Additional info:
# rpm -V libvirt
missing     /var/cache/libvirt/qemu
# ls -ld /tmp
drwxrwxrwt. 95 root root 86016 2009-08-24 12:38 /tmp
# ls -ld /tmp/tim
drwxrwxr-x. 2 twaugh twaugh 4096 2009-08-21 17:17 /tmp/tim
# ls -l /tmp/tim/Fedora-11-x86_64-DVD.iso
-rw-rw-r--. 1 qemu qemu 4268124160 2009-08-15 11:09 /tmp/tim/Fedora-11-x86_64-DVD.iso
# ls -Z /tmp/tim/Fedora-11-x86_64-DVD.iso
-rw-rw-r--. qemu qemu system_u:object_r:virt_content_t:s0 /tmp/tim/Fedora-11-x86_64-DVD.iso
# sha256sum /tmp/tim/Fedora-11-x86_64-DVD.iso 
9f733ef43d470217a08dd3f4214deecccfc9e6d5041dc8eef47d990c419a6884  /tmp/tim/Fedora-11-x86_64-DVD.iso

Comment 1 Daniel Berrangé 2009-08-26 15:02:57 UTC
Can you provide the /var/log/libvirt/qemu/$GUEST.log  from the time this error happens ?    Also the 'virsh dumpxml $GUEST'  output from the time it is running and showing this errror

At least QEMU has started up, so its unlikely to be selinux / file permissions problem at this point. There must be some guest config / setup problem instead i reckon

Comment 2 Tim Waugh 2009-08-26 15:22:10 UTC
Created attachment 358731 [details]

Comment 3 Tim Waugh 2009-08-26 15:22:32 UTC
Created attachment 358732 [details]

Comment 4 Daniel Berrangé 2009-08-26 15:30:42 UTC
Ah ha, the guest XML has the CDROM device configured to use VirtIO !

    <disk type='file' device='cdrom'>
      <driver name='qemu'/>
      <source file='/tmp/tim/Fedora-11-x86_64-DVD.iso'/>
      <target dev='vdb' bus='virtio'/>

This is a bug in virtinst library   - bug 517151

To workaround, you can use  'virsh edit $GUEST' and change

      <target dev='vdb' bus='virtio'/>


      <target dev='hdc' bus='ide'/>

*** This bug has been marked as a duplicate of bug 517151 ***

Note You need to log in before you can comment on or make changes to this bug.