[Spice-devel] Native USB redirection does not work - (remote-viewer) did not claim interface 0 before use

Sigbjorn Lie sigbjorn at nixtra.com
Fri Nov 30 06:40:06 PST 2012


Hi,

I have disabled pcscd with chkconfig and rebooted. After the reboot I attempted to connect to the
VDI and share my smart card reader again. The same issue occured.

Please see below for the contents of /var/log/messages.



Regards,
Siggi



Nov 30 14:35:59 workstation kernel: usb 3-2: new full speed USB device number 4 using ohci_hcd
Nov 30 14:35:59 workstation kernel: usb 3-2: New USB device found, idVendor=076b, idProduct=3021
Nov 30 14:35:59 workstation kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Nov 30 14:35:59 workstation kernel: usb 3-2: Product: Smart Card Reader USB
Nov 30 14:35:59 workstation kernel: usb 3-2: Manufacturer: OMNIKEY AG
Nov 30 14:35:59 workstation kernel: usb 3-2: configuration #1 chosen from 1 choice
Nov 30 14:36:10 workstation kernel: usb 3-2: reset full speed USB device number 4 using ohci_hcd
Nov 30 14:36:10 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:10 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:10 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:11 workstation kernel: usb 3-2: reset full speed USB device number 4 using ohci_hcd
Nov 30 14:36:11 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:11 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:11 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:12 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:12 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:12 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:13 workstation pulseaudio[4859]: ratelimit.c: 19 events suppressed
Nov 30 14:36:13 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:13 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:13 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:14 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:14 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:14 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:15 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:15 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:15 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:16 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:16 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:16 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:17 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:17 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:17 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:18 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:18 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:18 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:19 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:19 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:19 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:20 workstation ifdhandler[5625]: usb_submiturb failed: Device or resource busy
Nov 30 14:36:20 workstation ifdhandler[5625]: ccid: begin capture: -5
Nov 30 14:36:20 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use
Nov 30 14:36:21 workstation kernel: usb 3-2: usbfs: process 5625 (ifdhandler) did not claim
interface 0 before use



On Thu, November 29, 2012 15:23, Hans de Goede wrote:
> Hi,
>
>
> On 11/29/2012 03:16 PM, Sigbjorn Lie wrote:
>
>> The error messages we're exactly the same, except that pcscd did not attempt to attach to the
>> device...
>
> Given that the error log was full with mostly pcscd message it
> would be useful to get a log with only the usbredir / remote-viewer messages.
>
> Thanks & Regards,
>
>
> Hans
>
>
>>
>> Rgds
>> Siggi
>>
>>
>> Hans de Goede <hdegoede at redhat.com> wrote:
>>
>>
>> Hi,
>>
>>
>> On 11/28/2012 09:56 PM, Sigbjorn Lie wrote:
>>
>>
>>
>>
>> On Wed, November 28, 2012 21:11, Hans de Goede wrote:
>>
>>
>> Hi,
>>
>>
>>
>> On 11/28/2012 09:06 PM, Sigbjorn Lie wrote:
>>
>>
>>
>>
>>
>> On Wed, November 28, 2012 20:50, Hans de Goede wrote:
>>
>>
>> Hi,
>>
>>
>>
>>
>> On 11/28/2012 12:45 PM, Sigbjorn Lie wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>>
>> I receive the following errors when I attempt to use native USB redirection in RHEV 3.1
>> beta. It's a smart card reader I am attempting to redirect into a virtual Windows 7 x64 machine.
>>
>> Is this a known error?
>>
>>
>>
>>
>>
>> It seems that pcscd is using the reader from userspace just like spice is, and the pcscd
>> driver is not properly claiming the interface, and therefor both are trying to talk to the device
>> at the same time!
>>
>> What might help here is to try and disable the pcscd service.
>>
>>
>>
>>
>> Regards,
>>
>>
>>
>>
>> Hans
>>
>>
>>
>>
>>
>>
>>
>>
>> Hi,
>>
>>
>>
>> Thanks for your reply.
>>
>>
>>
>> I did try to run "service pcscd stop", and reconnect the smardcard reader to a different USB
>> port, and then attempted to share the smartcard reader with the virtual machine. The same issue
>> occurred.
>>
>>
>> Including all the pcscd related error messages? Then I guess the pcscd process was not stopped
>> properly... Maybe try disabling the service then rebooting ?
>>
>>
>>
>>
>> All the messages from pcscd stopped appearing in the log after I stopped the service. I will
>> try to disable pcscd with chkconfig and reboot tomorrow when I'm back at work.
>>
>>
>> But usb-redirection for the ccid device still did not work? Were there any messages in dmesg /
>> on the terminal where you started remote-viewer for an attempt without pcscd running?
>>
>> Regards,
>>
>>
>> Hans
>>
>>
>>
>> --
>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>>
>




More information about the Spice-devel mailing list