** Description changed: The problem is described in this bug: https://bugzilla.redhat.com/show_bug.cgi?id=816560 "libvirt ignores address bus= device= when identicle vendor ID/product IDs usb devices attached with either virsh or virt-manager" That bug is closed, but the problem is present in 0.9.8-2ubuntu17.4 (ubuntu server precise lts) Can anyone confirm if there is a version that solves this in ubuntu and how to install it in last LTS? Thank you! ============================ SRU Justification: 1. Impact: starting a VM with two usb devices with same vendor/id causes one to be ignored. 2. Development fix: looks over a list of usb devices with vendor/id. 3. Stable fix: backported patches from development fix. - 4. Test case: (to be filled in). + 4. Test case: + ======== test case start ======== + Steps to Reproduce: + 1. Connect 2 USB to serial converters to the hypervisor + 2. Use virt-manager to attach them to the guest. The XML hostdev part should read similar to: + + <hostdev mode='subsystem' type='usb' managed='yes'> + <source> + <vendor id='0x067b'/> + <product id='0x2303'/> + </source> + </hostdev> + <hostdev mode='subsystem' type='usb' managed='yes'> + <source> + <vendor id='0x067b'/> + <product id='0x2303'/> + </source> + </hostdev> + + 3. Inside virsh edit XML description of the device specifying address + bus= device= for each device (virt-manager does not differentiate them) + The XML should end like this: + + <hostdev mode='subsystem' type='usb' managed='yes'> + <source> + <address bus='002' device='005'/> + </source> + </hostdev> + <hostdev mode='subsystem' type='usb' managed='yes'> + <source> + <address bus='002' device='006'/> + </source> + </hostdev> + + 4) use virsh dumpxml <domain-id> and see the hostdev tag + + Actual results: + + Both devices have same bus and device, and inside the guest only + /dev/ttyUSB0 is present. + + Expected results: + + Each device should respect the configured values in step 3 and in the + guest there should be two devices i.e. /dev/ttyUSB0 and /dev/ttyUSB1 + + ======== test case end ======== + 5. Regression potential: Only usb-related code should be affected, and all qa-regression-tests passed with this fix. ============================
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1082213 Title: libvirt: When installing two or more identical usb devices in a VM, only one works To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1082213/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs