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
Issue with running the yubihsm connector on Linux VMs on VMWare ESXI #7
Comments
|
I had a similar issue with my VMWare ESXi 6 server and a CentOS 7 build. Have you installed the vmware tools? NOTE: My ESXi and CentOS are older versions from what you have. |
|
Yes, we did install the vmware tools. There was no change in the issue… |
|
@phaus Can you check the boot options for the VM and compare to the host BIOS? |
|
hmmm. That is actually a good catch. Unfortunetally, I don't know anymore. |
|
We've Also encountered the same issues on Vmware vsphere 6.7 latest updates. |
|
@SimplyVC we just went with the work-around above. The project is over now. It worked as intended. I am not sure, if it is a bug in libusb or VMWare :-). |
|
@phaus Thanks for your reply, I'm not sure it's a VMware / libusb bug, we had no issues using a ledger s, the issue only happened with the yubihsm |
|
We have the same problem on Linux (CentOS 7) but also on Windows Server 2016 guest. VMware ESXi, 6.5.0 |
|
This issue hasn't been updated for a while, I need to deploy a pair of YubuHSM's to vmware. We will be holding off purchasing until we get confirmation that this has been resolved. Can I get a status update on this bug? |
|
You can use our workaround. It seems to work fine for now. We did not test against any updated connector version. |
|
I realize this is 'a bit' late, but there is a new PR on the yubihsm-connector that you could try to see if it helps with this. I had the issue that each /connector/status request took 1 minute 6 seconds to execute on my Ubuntu VMs under ESXi 7 without this change. With it everything works great for me. It also provides a performance improvement on a physical Ubuntu machine, but there it goes from 250ms to a a few ms. You can try building from the no-reset-device branch if you'd like to give it a try. I had the same issue before I upgraded my ESXi from 6.7 to 7.0 so I don't think its specific to my ESXi version. See #19 |
|
PR #19 has now been updated to also avoid reopening the usb device, which seems to help with some guest OS:es under ESXi. |
|
Just tested the new patch. Unfortunately no change in our environment (VMware ESXi, 6.5.0, Cent OS 7 guest) |
|
We have discovered that the virtual USB controller in the VM must be a USB 3.0 controller for this to work well under many guest OS:es. Could you verify what you have ? For many guest OS:es the virtual USB controller will be USB 2 by default, and there seems to be some bug in ESXi with that. We are seeing intermittent functionality with USB2 controller. (Even though the YubiHSM is in fact a USB2 device) |
|
Thanks for the hint. We have used USB 2. After change to USB 3 it seems stable (no connection issues in the logs) BUT it is very very slow now. I double checked that we are using PR #19 |
|
We have not seen slowness with the code in PR #19, but we do see that with the code in master. In my case, Ubuntu Xenial up to Groovy, I see a time of 66s for the status request with the code in master. A couple of ms with the code in PR#19. What guest OS are you using ? I will see if I can reproduce. |
|
My bad! Now we really use PR #19 - and it works To summarize: In other environment (VMware ESXi, 6.5.0, Cent OS 7 guest) to solution was to use USB 3 controller and this fix. Thank you very much. Looking forward to see this in official release. |
|
Great news, thx for testing ! |
|
The libusb code has been merged to master, and will be in the next release. Winusb code is also being worked on along the same lines. See #21 |
|
Closing this issue now, if there are more problems please re-open a new issue. |
I am within a team that creates an Appliance VM that needs a Yubikey HSM for Security.
During the setup, we had some struggles with stabilizing the operation of the yubihsm-connector within this VM.
It might just be an issue with the underlying libusb version or the Linux Kernel itself, but nevertheless I would like to pointout the issue and mentioning the workaround, we did implement to have this issue fixed for the moment
Environment
Some Details about the environment:
The Host System is VMWare ESXI
6.7.0 Update 1 (Build 11675023).The HW is a NUC
NUC7i5BNH, we will switch to real server gear later this month, so it might also be a misbehaviour of the underlying HW :-).The Guest VM is a CentOS Linux release
7.6.1810 (Core)- Kernel Version3.10.0-957.12.1.el7.x86_64.The Yubikey HSM is setup as a passtrough device to the Linux VM:
What is the error?
In 50% of our tests, the setup just works as expected.
The rest of the tests fail with the Yubikey Connetor stating:
The Debug Log of the Connector shows then:
Workaround
Our first attempt was to disable the USB autosuspend via Kernel Parameters that did not work as expected, although the error description was similar to ours.
A working solution was finally to have a cron script running, that checks the connector status and resets all USB Devices if the status is not equals "OK"
Maybe an update of
go-libusb(as mentioned in #3) will solve the issue, but otherwise it might be nice to have the connector itself deal with these kind of issues (although resetting USB Device need root access rights :-/)The text was updated successfully, but these errors were encountered: