-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smart Card problem with RHEL 7.3 #129
Comments
What's your host OS? ESXi/Win/Fedora? |
I've tried RHEL7.3 on Win 8/Ubuntu 14/ESXi 6.5. All worked. Thanks, |
ESXi 6.5 has multiple issues with USB attached smartcard readers.
and disable the native USB driver to allow working passthrough via (on the ESXI console):
|
Thanks, |
Actually, the second issue is not specific for smartcard readers. From around 5-7 devices, which i'm operating using USB passthrough, not a single one worked correctly with the ESXi 6.5 native driver. These include mostly various smartcard reader and UPSes. I'm at home now, the devices i have here are for example: The problem is always the same, the connection to the devices gets resetted / interrupted. Thats espacially bad for smartcard readers as that might leave the smartcard (in our case secure access modules for cryptograhic operations) in an undefined state which is only been healed by reconnecting it. It seems to be common knowledge around the internet (e.g. reddit /r/homelab) that USB passthrough is broken in 6.5 (respectively in the native driver). So i assume VMware knows about this as well. |
Thanks for the info. I will take a look |
Hi, Could you help verify if those devices happen to have Intr. endpoints. The following are the steps lsusbThis shows all the USB devices on your host. For each device that does not work, please take a note on their bus number and device number cat /dev/usbdevices | moreIf the device in question is Bus 1, Dev 5 from lsusb, the record for it starts with the following line T: Bus=01 Lev=XX Prnt=XX Port=XX Cnt=XX Dev# = 5 <-- Bus 1, Dev 5 I'm suspecting the issue is specific to any device containing Intr. endpoint. Thanks, |
I cant post details of all devices at once but here is one that definitely does not work with the native VMware ESXi usb driver, but does so with the legacy linux driver: CSL - USB Chipkartenleser [cheap smartcard reader from Amazon.de]
|
Thanks for the help. I found the issue with smart cards. |
Happy to hear, looking forward for the fix in the next version ;) do you still need more information about other devices? |
Yes, please (if it's not inconvenient) |
This is the UPS i use at home, which is also misbehaving.
|
Thanks. Both of the devices contain Intr. endpoints. I think I know where the problem is. Thanks for the help again |
Sorry for the long delay from my original post. I have doing some more testing and I have determined that the smart card reader works when I use the USB pass-thru option, but it doesn't work when I share the smart card reader with the virtual machine. Here is the details of my setup: Here is the output from the lsusb command when I use the USB pass-thru option with the vSphere client: Here is the output from the lsusb command when I use the sharing option with the vSphere client: Here is the output from the dmesg command when I use the shared option with the vSphere client: |
Shared smart card is a different story. Shared mode and passthru are mutual exclusive in ESXi. Shared mode is enabled to support DCUI login with smart card. So far, only DoD card and JAVA card are supported officially. That's because smart cards require middleware to work and the required middleware for the two cards are installed in ESXi by default. Because of the above reason, smart card passthru is disabled by default unless you explicitly add 'usg.generic.allowCCID = "TRUE"' in the vmx file and stop pcsc service if it's already running. The typical usage would be connecting your smart card to your client machine on which you have vmrc installed and connect remotely. |
RHEL 7.3 doesn't see any smart cards when I attach an USB smart card reader to a virtual machine. I have installed both open-vm-tools-10.0.5-2.x86_64 and open-vm-tools-desktop-10.0.5-2.el7.x86_64 packages in RHEL 7.3. I installed an "EHCI+UHCI" USB controller to the virtual machine. I have tried to both directly attaching and sharing the smart card reader with the VM and RHEL 7.3 still doesn't see any smart cards. It does see the smart card reader, just not the smart cards. I have tried this with RHEL 6 and many different versions of Windows and it works, so I don't think it is my environment. I have also installed RHEL 7.3 on a physical workstation with the same smart card readers and smart cards, so I don't believe its a problem with RHEL either. I was wondering if its related to open-vm-tools ?
The text was updated successfully, but these errors were encountered: