[Spice-devel] usbredir doesn't work

javaon javaon at gmail.com
Tue Jan 29 07:41:05 PST 2013


I tried a USB thumb drive, it can be redirected successfully. The device (SanDisk) is marked in blue below.

# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 007: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
Bus 001 Device 005: ID 04f2:b221 Chicony Electronics Co., Ltd integrated camera
Bus 002 Device 003: ID 17ef:1003 Lenovo Integrated Smart Card Reader
Bus 002 Device 004: ID 1483:c007

The device failed to be redirected (ID 1483:c007) is in red above. This device is USB key containing a bank certificate. But it's can be attached as a device to guest on my host machine.

And attached is the output of "lsusb -v"

Thanks,


On 01/29/2013 07:35 PM, Hans de Goede wrote:
> Hi,
>
> On 01/29/2013 10:26 AM, javaon wrote:
>> My environment:
>>
>>   * Ubuntu 12.04 64bit
>>   * qemu 1.3.0
>>   * libvirt 1.0.1
>>   * spice 0.12.2
>>   * spice-gtk 0.15
>>   * virt-viewer 0.5.4
>>
>>
>> When I connected to the VM (a windows 7) as a normal user, I received an error - access denied. (See the attached screenshot) Below is the screen message on client end:
>>
>> $ remote-viewer spice://192.168.7.4:5901
>>
>> (remote-viewer:7597): GSpice-WARNING **: Warning no automount-inhibiting implementation available
>> libusb: 0.000000 error [op_open] libusb couldn't open USB device /dev/bus/usb/001/006: Permission denied.
>> libusb: 0.000179 error [op_open] libusb requires write access to USB device nodes.
>>
>>
>> Then I changed to root user, I received an error - libusb_error_io. (See the attached screenshot) Below is the screen message on client end:
>>
>> # remote-viewer spice://192.168.7.4:5901
>>
>> (remote-viewer:7836): GSpice-WARNING **: Warning no automount-inhibiting implementation available
>> libusb: 0.000000 error [sysfs_get_active_config_descriptor] short read 21/28
>
> Hmm, it seems that this is something specific to the device you're trying to use, can you please:
> 1) do "lsusb -v > lsusb.log" with the device plugged into a linux machine, and send me the lsusb.log file generated
> 2) try with another device, ie a simple usb thumb drive ?
>
> Thanks,
>
> Hans

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130129/6fc86bd4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lsusb.log
Type: text/x-log
Size: 65927 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130129/6fc86bd4/attachment-0001.bin>


More information about the Spice-devel mailing list