Hi, On Fri, Mar 10, 2017 at 10:47:52AM +0100, Francesc Guasch wrote: > Hi. I have issues with the USB redirection. I hope this > is the right place to ask. Sure it is :) > 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. Cool > 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 Where do you see this message exactly? > 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 set 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. Cool, I just tried here with an Android phone, Lenovo. The only issue that I had is that when I plugged it into my client machine it does automount. I can't redirect while is mounted, I had to umount it before redirecting. Might be a silly suggestion but it does not hurt to ask: Some phones need to be unlocked and sometimes it also must have the MTP/Camera/Etc enabled in the android device. Have you checked those? If it connects to the client machine and you can access, the mobile phone is correctly configured.. Then you just need to be sure that it is umount. > I saw unanswered questions from 2014 like this one here: > https://lists.freedesktop.org/archives/spice-devel/2014-December/018473.html > > Please, let me know if there is something we can try. > I am willing to test development releases, try to dump > cores or whatever it takes. File a bug at our upstream bugzilla [0]. Between to Linux guests it should work fine so please attach at the bug: - If you created this with virt-manager, could attach the xml domain? You can get it by running virsh dumpxl <vm-name> - dmesg of the client after attaching the mobile phone (to see if everything is alright) - dmesg of the guest after trying to redirect (to see if the guest complained for some reason) - debug log from the client: You can have it by either using SPICE_DEBUG=1 environment or running virt/remote-viewer with --spice-debug. [0] https://bugs.freedesktop.org/enter_bug.cgi?product=Spice Cheers, toso > > Thank you for your time. > _______________________________________________ > Spice-devel mailing list > Spice-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/spice-devel
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel