[Spice-devel] usb redirection

Damien Churchill damoxc at gmail.com
Thu Nov 3 06:46:41 PDT 2011


On 26 October 2011 14:32, Damien Churchill <damoxc at gmail.com> wrote:
> On 26 October 2011 13:23, Christophe Fergeau <cfergeau at redhat.com> wrote:
>> On Wed, Oct 26, 2011 at 12:34:15PM +0100, Damien Churchill wrote:
>>> I'm trying to test out usb redirection using a Windows guest. I have
>>> disabled automounting however when I plug in a usb stick, I see:
>>>
>>> (spicy:10401): GSpice-DEBUG: usb-device-manager.c:600 connecting
>>> device 0x1891430
>>> (spicy:10401): GSpice-DEBUG: channel-usbredir.c:133 connecting usb
>>> channel 0x16b4f20
>>> (spicy:10401): GSpice-DEBUG: channel-usbredir.c:171 disconnecting usb
>>> channel 0x16b4f20
>>> libusb:error [calculate_timeout] failed to read monotonic clock, errno=22
>>> (spicy:10401): GSpice-DEBUG: channel-usbredir.c:222 usbredirhost
>>> error: could not get active configuration: -99
>>> (spicy:10401): GSpice-DEBUG: channel-usbredir.c:234 usbredirhost:
>>> cancelled 0 transfers on device close
>>>
>>> (spicy:10401): GSpice-WARNING **: Could not auto-redirect USB device
>>> at 2-10: usbredirhost error: could not get active configuration: -99
>>>
>>> I'm guessing it's something down to the libusb error. I've tried
>>> running spicy with LIBUSB_DEBUG=1 but didn't get any output from that.
>>> I also tried compiling with --enable-debug-log and that also didn't
>>> seem to produce any additional output.
>>>
>>> Does anyone have any suggestions?
>>
>> Could that be a permission issue accessing the USB device nodes?
>>
>
> I don't think so, I'm running both qemu-kvm and spicy as root.
>

Finally got libusb to output the debug messages. It seems to be able
to open the usb device, but then something else fails. Any ideas
anyone?

libusb:debug [enumerate_device] busnum 2 devaddr 3 session_id 515
libusb:debug [enumerate_device] allocating new device for 2/3 (session 515)
libusb:debug [discovered_devs_append] need to increase capacity
libusb:debug [libusb_unref_device] destroy device 1.1
libusb:debug [libusb_unref_device] destroy device 2.1
libusb:debug [libusb_unref_device] destroy device 1.2
libusb:debug [libusb_unref_device] destroy device 2.2
libusb:debug [libusb_unref_device] destroy device 3.1
libusb:debug [libusb_unref_device] destroy device 4.1
libusb:debug [libusb_open] open 2.3
libusb:debug [op_open] opening /dev/bus/usb/002/003
libusb:debug [usbi_add_pollfd] add fd 16 events 4
libusb:error [calculate_timeout] failed to read monotonic clock, errno=22

(spicy:405): GSpice-WARNING **: Could not auto-redirect USB device at
2-3: usbredirhost error: could not get active configuration: -99


More information about the Spice-devel mailing list