[Spice-devel] usbredir doesn't work

Rozen Lin rozen.lin at sinobot.com.cn
Tue Jan 29 16:30:13 PST 2013


Hi,
  Could you use them successfully when you start VM/libvirt/qemu as root
and use the virtviewer as root? If yes, it's the just the device
permission issue in Linux, you may write new udev-rules to enable the
use of usbdevices for normal user.

On Tue, 2013-01-29 at 23:41 +0800, javaon wrote:
> 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 
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel




More information about the Spice-devel mailing list