Fedora Account System
Red Hat Associate
Red Hat Customer
Trying to virsh define a qemu guest with no <source> tag for a cdrom device fails. It wants to receive <source file=''/>. Xen is actually fine with both these options, but in the virtinst and virt-manager we are only using the no source tag method. libvir: Xen Daemon error : XML description for failed to parse domain description is not well formed or invalid error: Failed to define domain from cdtest-qemu-fail
This is breaking cdrom connect disconnect for virt-manager and qemu guests. The strange thing though is that in userland we changed from <source file=''> to no source tag after it was blocking xen installs (bug 260891). Maybe there's been a libvirt change since then, attachdevice and define have different xml parsing code paths. I haven't tested it enough.
Just to clarify: using virsh define: qemu w/ no source tag : FAIL qemu w/ source file='': SUCCEED xen w/ no source tag : SUCCEED xen w/ source file='': SUCCEED
I don't believe that xen w/ source file='': SUCCEED will neccessarily succeed on all versions of Xen, which IIRC, is the reason we switched to the alternate syntax with no source tag. The fact that QEMU works with file="" is an accident. We should make QEMU driver in libvirt explicitly support no source tag.
This fix for this is now upstream: http://git.et.redhat.com/?p=libvirt.git;a=commit;h=570fd656d1b67e5d02f52e107946930257e811a7
Fixed in rawhide in libvirt-0.4.1-4.fc9