Smart card reader doesn't appear in Arch Linux guest

Discussions about using Linux guests in VirtualBox.
Post Reply
shaugh
Posts: 4
Joined: 20. Dec 2017, 21:16

Smart card reader doesn't appear in Arch Linux guest

Post by shaugh »

I'm using the latest VirtualBox 5.2.4, extension pack installed from GUI, guest additions 5.2.4 installed from CD (not Arch repositories as they're still on 5.2.2).

First, my VBoxManage list usbhost:

Code: Select all

C:\Program Files\Oracle\VirtualBox>.\VBoxManage.exe list usbhost
Host USB Devices:

UUID:               63da426c-42f9-4717-a0c7-c91a43ae482a
VendorId:           0x8087 (8087)
ProductId:          0x0a2a (0A2A)
Revision:           0.1 (0001)
Port:               3
USB version/speed:  2/High
Manufacturer:       Intel Corp.
Address:            {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}\0000
Current State:      Busy

UUID:               b481bd02-e16b-42b8-8825-93460d5eb96b
VendorId:           0x1bcf (1BCF)
ProductId:          0x2b8d (2B8D)
Revision:           70.22 (7022)
Port:               6
USB version/speed:  2/High
Manufacturer:       Sunplus Innovation Technology Inc.
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0005
Current State:      Busy

UUID:               a929dc8f-cbf5-4f75-8aa4-90dfa4be3073
VendorId:           0x0a5c (0A5C)
ProductId:          0x5804 (5804)
Revision:           1.1 (0101)
Port:               7
USB version/speed:  1/Full
Manufacturer:       Broadcom Corp
Product:            5880
SerialNumber:       0123456789ABCD
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0007
Current State:      Busy

UUID:               7678cf5d-e1e9-4eea-9632-798e8796d584
VendorId:           0x08e6 (08E6)
ProductId:          0x3437 (3437)
Revision:           1.0 (0100)
Port:               2
USB version/speed:  1/Full
Manufacturer:       Gemplus
Product:            USB SmartCard Reader
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0053
Current State:      Captured

UUID:               9f91c51b-7b9d-4a54-aebb-3d78f42532f0
VendorId:           0x04d9 (04D9)
ProductId:          0x0169 (0169)
Revision:           2.9 (0209)
Port:               3
USB version/speed:  1/Full
Manufacturer:       Holtek Semiconductor, Inc.
Product:            USB Keyboard
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0022
Current State:      Busy

UUID:               3b5be12f-fb46-4272-b27a-660ced369a72
VendorId:           0x046d (046D)
ProductId:          0xc016 (C016)
Revision:           3.64 (0364)
Port:               1
USB version/speed:  2/High
Manufacturer:       Logitech
Product:            Optical USB Mouse
Address:            {745a17a0-74d3-11d0-b6fe-00a0c90f57da}\0024
Current State:      Busy

So I have a filter configured with VendorId=08e6 and ProductId=3437, with all other fields aside from the name left empty.

I have libccid installed on the guest, which supports my device according to Gemalto:

Code: Select all

$ pacaur -Ql ccid-git                            
ccid-git /etc/
ccid-git /etc/libccid_Info.plist
ccid-git /etc/reader.conf.d/
ccid-git /etc/reader.conf.d/libccidtwin
ccid-git /usr/
ccid-git /usr/lib/
ccid-git /usr/lib/pcsc/
ccid-git /usr/lib/pcsc/drivers/
ccid-git /usr/lib/pcsc/drivers/ifd-ccid.bundle/
ccid-git /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/
ccid-git /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
ccid-git /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/
ccid-git /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so
ccid-git /usr/lib/pcsc/drivers/serial/
ccid-git /usr/lib/pcsc/drivers/serial/libccidtwin.so
ccid-git /usr/lib/udev/
ccid-git /usr/lib/udev/rules.d/
ccid-git /usr/lib/udev/rules.d/92_pcscd_ccid.rules
VirtualBox tells me that the device is captured, yet I see nothing in udevadm monitor, it never shows up in the output of lsusb, and of course pcsc_scan doesn't display anything either.

The VirtualBox USB device is "working properly" according to Windows, the reader shows up in Device Manager when the guest is inactive and disappears when the guest is booted... What am I missing?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Smart card reader doesn't appear in Arch Linux guest

Post by socratis »

I just recently started toying with an option I hadn't worked with in the past; the "usbcardreader". Since I don't want to re-post the information, take a look at a yesterday's post of mine in the thread "[WorksForMe] USB 3.0 SD Card Reader Unmounted Randomly" and see if using that option helps or not. You should probably read the whole thread, plus the USB basics and troubleshooting, although I have a feeling that you already have read it...

In the other thread I said I was going to reboot my MBPr to test it under a Win10 host. Haven't done it, most probably tonight. I'll post my findings here, since the other thread was resolved (hardware failure)...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
shaugh
Posts: 4
Joined: 20. Dec 2017, 21:16

Re: Smart card reader doesn't appear in Arch Linux guest

Post by shaugh »

Code: Select all

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 002: ID 04e6:5115 SCM Microsystems, Inc. SCR335 SmartCard Reader
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Salutations to you, sir! :0
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Smart card reader doesn't appear in Arch Linux guest

Post by socratis »

OK, fine it shows as a device. But can you actually read the SD card? That's the important question...

You got me when I was about to install a Manjaro 17.06 x64 to test it.
I will be rebooting finally tonight as a Win10 computer, I promise... ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
shaugh
Posts: 4
Joined: 20. Dec 2017, 21:16

Re: Smart card reader doesn't appear in Arch Linux guest

Post by shaugh »

Actually, that's not my device... I'm not sure where it came from. Even with no filters and nothing plugged in, it still appears. :oops:
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Smart card reader doesn't appear in Arch Linux guest

Post by socratis »

shaugh wrote:Actually, that's not my device... I'm not sure where it came from.
It's a virtual one, like your GPU, your hard drive, keyboard, tablet and pretty much everything else. "Those are not the peripherals you're looking for..."
shaugh wrote:Even with no filters and nothing plugged in, it still appears.
Yes, because you enabled a card reader, by using the usbcardreader command. The one has absolutely nothing to do with the other. Even on a host with no USB card reader, you'll see a card reader in the VM. You have to remember; you're inside a virtual computer.

Anyway, I tried a Manjaro 17.06 on an OSX 10.11.6 host. I had to use the filter and plug the card after having started the VM. That's the only way I could make it show up in Manjaro. Next target: a Win10 host...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
shaugh
Posts: 4
Joined: 20. Dec 2017, 21:16

Re: Smart card reader doesn't appear in Arch Linux guest

Post by shaugh »

The filter I need to add is for the smartcard itself, then? But it doesn't appear in list usbhost.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Smart card reader doesn't appear in Arch Linux guest

Post by socratis »

shaugh wrote:But it doesn't appear in list usbhost.
But from you first post your "VBoxManage list usbhost" came out with:
UUID:               7678cf5d-e1e9-4eea-9632-798e8796d584
VendorId:           0x08e6 (08E6)
ProductId:          0x3437 (3437)
Revision:           1.0 (0100)
Port:               2
USB version/speed:  1/Full
Manufacturer:       Gemplus
Product:            USB SmartCard Reader
Address:            {36fc9e60-c465-11cf-8056-444553540000}\0053
Current State:      Captured
... and you've created a filter, so what exactly are you talking about?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply