Red Hat Bugzilla – Bug 861309
USB disks ignore configured address
Last modified: 2013-07-16 21:48:59 EDT
Description of problem:
If one has USB disks configured for domain with explicit <address/>, libvirtd ignores that node when building qemu command line. So, disk are connected to the first free USB port implicitly by qemu.
That breaks other USB devices which have explicit <address/> - ports they should be connected to may be already occupied by disks.
I attach patch (libvirt-0.10.2-qemu-usb-storage-address.patch) to fix that.
Then, with that patch applied, if one has USB disk connected to the USB hub, qemu fails to start, because it does not know anything about hubs yet (when parsing disks).
I attach patch to fix that (libvirt-0.10.2-qemu-early-usb-hub-append.patch) together with fixes to tests suite (libvirt-0.10.2-qemu-early-usb-hub-append-tests-fix.patch)
Version-Release number of selected component (if applicable):
Created attachment 618424 [details]
Honor <address/> node for USB disks with qemu
Created attachment 618425 [details]
Allow USB disks to be connected to USB hub (qemu)
Created attachment 618426 [details]
Allow USB disks to be connected to USB hub (qemu) (fix tests)
Patch is against 0.10.2
Awesome Vladislav, thanks for the patches! They look good to me but we do all our patch review on the upstream mailing list.
Can you send these to firstname.lastname@example.org ? Following the git workflow here is preferred:
Patches posted upstream:
libvirt-0.9.11.8-1.fc17 has been submitted as an update for Fedora 17.
libvirt-0.9.11.8-2.fc17 has been submitted as an update for Fedora 17.
libvirt-0.9.11.8-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.