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

Latest response
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.

The client where I am accessing the VDI from is a RHEL 6.3 client.


Any suggestions to how to fix this?


Rgds,
Siggi



Nov 28 12:16:31 workstation kernel: usb 3-2: new full speed USB device number 4
using ohci_hcd
Nov 28 12:16:31 workstation kernel: usb 3-2: New USB device found, idVendor=076b,
idProduct=3021
Nov 28 12:16:31 workstation kernel: usb 3-2: New USB device strings: Mfr=1,
Product=2, SerialNumber=0
Nov 28 12:16:31 workstation kernel: usb 3-2: Product: Smart Card Reader USB
Nov 28 12:16:31 workstation kernel: usb 3-2: Manufacturer: OMNIKEY AG
Nov 28 12:16:31 workstation kernel: usb 3-2: configuration #1 chosen from 1 choice
Nov 28 12:16:31 workstation pcscd: hotplug_libhal.c:342:HPAddDevice() Adding USB
device: usb_device_76b_3021_noserial_if0
Nov 28 12:16:32 workstation pcscd: readerfactory.c:1024:RFInitializeReader()
Attempting startup of Generic CCID Reader 00 00 using
/usr/lib64/pcsc/drivers/openct-ifd.bundle/Contents/Linux/openct-ifd.so
Nov 28 12:16:32 workstation pcscd: readerfactory.c:846:RFBindFunctions() Loading IFD
Handler 2.0
Nov 28 12:16:32 workstation pcscd: readerfactory.c:249:RFAddReader() Using the pcscd
polling thread
Nov 28 12:16:42 workstation kernel: usb 3-2: reset full speed USB device number 4
using ohci_hcd
Nov 28 12:16:42 workstation spice: libusb:warning [op_reset_device] failed to
re-claim interface 0 after reset
Nov 28 12:16:42 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:16:43 workstation kernel: usb 3-2: reset full speed USB device number 4
using ohci_hcd
Nov 28 12:16:43 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:16:44 workstation spice: libusb:error [submit_bulk_transfer] submiturb
failed error -1 errno=16
Nov 28 12:16:44 workstation spice:
Nov 28 12:16:44 workstation spice: (remote-viewer:5630): GSpice-CRITICAL **:
usbredirhost error: submitting bulk transfer on ep 05: -1
Nov 28 12:16:44 workstation kernel: usb 3-2: usbfs: process 5630 (remote-viewer) did
not claim interface 0 before use
Nov 28 12:16:44 workstation spice: libusb:error [submit_bulk_transfer] submiturb
failed error -1 errno=16
Nov 28 12:16:44 workstation spice:
Nov 28 12:16:44 workstation spice: (remote-viewer:5630): GSpice-CRITICAL **:
usbredirhost error: submitting bulk transfer on ep 05: -1
Nov 28 12:16:44 workstation kernel: usb 3-2: usbfs: process 5630 (remote-viewer) did
not claim interface 0 before use
Nov 28 12:16:44 workstation spice: libusb:error [submit_bulk_transfer] submiturb
failed error -1 errno=16
Nov 28 12:16:44 workstation spice:
Nov 28 12:16:44 workstation spice: (remote-viewer:5630): GSpice-CRITICAL **:
usbredirhost error: submitting bulk transfer on ep 05: -1
Nov 28 12:16:44 workstation kernel: usb 3-2: usbfs: process 5630 (remote-viewer) did
not claim interface 0 before use
Nov 28 12:16:48 workstation kernel: usb 3-2: reset full speed USB device number 4
using ohci_hcd
Nov 28 12:16:48 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:16:48 workstation kernel: usb 3-2: reset full speed USB device number 4
using ohci_hcd
Nov 28 12:16:48 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:16:55 workstation pcscd: eventhandler.c:429:EHStatusHandlerThread() Card
inserted into Generic CCID Reader 00 00
Nov 28 12:16:55 workstation pcscd: eventhandler.c:443:EHStatusHandlerThread() Error
powering up card.
Nov 28 12:16:57 workstation spice:
Nov 28 12:16:57 workstation spice: (remote-viewer:5630): GSpice-CRITICAL **:
usbredirhost error: could not set active configuration to 0: -6
Nov 28 12:16:57 workstation kernel: usb 3-2: usbfs: interface 0 claimed by usbfs
while 'remote-viewer' sets config #0
Nov 28 12:16:57 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:16:57 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:16:57 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:16:58 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:16:58 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:16:58 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:16:59 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:16:59 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:16:59 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:00 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:00 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:00 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:01 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:01 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:01 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:02 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:02 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:02 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:03 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:03 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:03 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:04 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:04 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:04 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:05 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:05 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:05 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:06 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:06 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:06 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:07 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:07 workstation ifdhandler[5789]: ccid: begin capture: -5
Nov 28 12:17:07 workstation kernel: usb 3-2: usbfs: process 5789 (ifdhandler) did
not claim interface 0 before use
Nov 28 12:17:08 workstation ifdhandler[5789]: usb_submiturb failed: Device or
resource busy
Nov 28 12:17:08 workstation ifdhandler[5789]: ccid: begin capture: -5

Responses

Hi Sigbjorn,

 

I noticed you also posted this to the spice-devel mailing list and Hans suggested that you disable the pcscd process.  When you get a chance, can you let us know if that resolves the issue?

 

Thanks,

Tony

Hi,

 

Yes I did try to disable the pcscd process using chkconfig and reboot, however the issue remained the same.

 

Please see below for the log after I disabled pcscd.

 

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
 

For the record - I got a tip trough the spice-devel list to disable openct. This sorted out the issue.

 

However I am surprised that spice was unable to co-exist with pcscd and openct - we have been using VMware workstation with usb redirection without any issue. Perhaps a bug?

 

I would also like some feedback on sharing smart cards trough spice. I notice that the remote-viewer has some --smartcard options. What is the best way to share a smart card from RHEL 6 for smart card logon in a Win 7 VDI running in RHEV 3.1 beta?

 

 

Rgds,

Siggi

Siggi, I'm glad you sorted out the issue. It might be a good idea to start a new discussion for your question on sharing smart cards.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.