Running Ubuntu 12.04 x86_64
libvirt0 and libvirt-bin 0.9.8-2ubuntu17.8 causes a regression.
I am using QEMU/KVM virtual machines.
To reproduce:
use virsh to create/start a vm
use virsh to attach-device a host usb device
use virsh to stop/destroy the vm
use virsh to create vm again
use virsh to attach the usb device again
I get:
virsh attach-device vm1 /var/lib/libvirt/hotplug/usb-serial.xml
error: Failed to attach device from /var/lib/libvirt/hotplug/usb-serial.xml
error: Requested operation is not valid: USB device 002:005 is in use by domain ..
Note the ".." characters. That is literal. It is printing garbage characters.
The failure is not 100% of the time but is pretty high (50% ?)
Running Ubuntu 12.04 x86_64
libvirt0 and libvirt-bin 0.9.8-2ubuntu17.8 causes a regression.
I am using QEMU/KVM virtual machines.
To reproduce:
use virsh to create/start a vm
use virsh to attach-device a host usb device
use virsh to stop/destroy the vm
use virsh to create vm again
use virsh to attach the usb device again
I get: libvirt/ hotplug/ usb-serial. xml libvirt/ hotplug/ usb-serial. xml
virsh attach-device vm1 /var/lib/
error: Failed to attach device from /var/lib/
error: Requested operation is not valid: USB device 002:005 is in use by domain ..
Note the ".." characters. That is literal. It is printing garbage characters.
The failure is not 100% of the time but is pretty high (50% ?)
usb-serial.xml:
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x067b'/>
<product id='0x2303'/>
</source>
</hostdev>
backing up libvirt0 and libvirt-bin to 0.9.8-2ubuntu17.7 makes this problem go away.
While looking at this I found a Fedora bug that looks similar. The upstream patches they identified may be of interest. /bugzilla. redhat. com/show_ bug.cgi? id=814866
https:/