GNOME Bugzilla – Bug 679646
Failed to boot from CD-ROM
Last modified: 2016-03-31 14:02:45 UTC
Created attachment 218358 [details] Generated libvirt xml config file When I try to run a Live CD, qemu can't boot from it: "Boot failed: could not read from CDROM (code 0003)" It works if I boot from an iso file, but not works if I boot from a phisical CD. It seems that the following line is missing from the generated libvirt config file (see the attached config): <source dev='/dev/sr0'/> System: Arch Linux Package versions: spice 0.10.1 qemu-kvm 1.1.0 spice-gtk 0.12 libosinfo 0.1.2 libvirt 0.9.13 libvirt-glib 0.0.9 gnome-boxes 3.4.3
Created attachment 218359 [details] Qemu log file
I am able to reproduce this on 3.5.x as well.
Created attachment 218696 [details] [review] Mark CDROM device as block-based/file-based early The type of the libvirt disk config object is needed to generate proper XML for the 'source' element, so we need to set it as early as possible.
We need at least this change. If this is not enough, knowing what 'device_file' is in this function would be useful in debugging this further.
Review of attachment 218696 [details] [review]: Yeah, it fixes the issue here. I think we should add a warning/g_return_if_fail to libvirt-gconfig since I imagine other apps easily falling for the same.
Attachment 218696 [details] pushed as b84e779 - Mark CDROM device as block-based/file-based early