error on USB redirect: LIBUSB_ERROR_NOT_FOUND
Submitted by fra..@..pc.edu
Assigned to Hans de Goede @jwrdegoede
Link to original bug (#100149)
Description
Created attachment 130155 domain xml, dmesg , remote viewer debug
We are trying to switch a PC classroom in the University to use virtual PCs with Spice. There is a course that requires the students work with cell phones.
The USB redirection works for pen drives but it won't recognize the phones. When I set the device to redirect it won't work and sometimes it shows this message:
Could not redirect: Samsung Electronics Co.,
Ltd Galaxy (MTP): error resetting device :
LIBUSB_ERROR_NOT_FOUND
I see it in the remote-viewer doing File -> USB Device Selection. Clicking on the "Android Samsung" device. But it won't always show the error, most of the times it just will flickr a little the device dialog and then unselect the option.
The server is Ubuntu, I tried 16.10 and 17.04 ( devel ). It has qemu-kvm 2.6.1 and 2.8.
We tried different guests with Windows7, Windows 10 and Ubuntu. In Windows we installed latest USB and Samsung Android drivers. We also tried setting the USB driver in the Virtual Machine to USB 2 or USB 3 with the same results.
We tried virt-viewer 4.0-1 and virt-manager 1.3.2 as clients.
My own phone works, but the ones that use in the course fail. May be it is an issue with older models. We were carefull about the client not mounting the device and the phone is in MTP mode. The phone works with nautilus in the client PC without the remote viewer.
I attach the XML domain definition, a dmesg log from the client and a debug output from launching remote-viewer with --spice-debug.
Attachment 130155, "domain xml, dmesg , remote viewer debug":
bug_cellphone.tgz