Troubleshooting VMWare Workstation Device Passthrough

Applicable Products

This article applies to all YubiKey and Security Key devices.


This guide covers the common issues with using a YubiKey or Security Key in a virtual machine (VM) with VMWare Workstation.

Selecting the Correct Device

If you select the Shared device to passthrough, it will not work correctly. For example, when selecting the device to passthrough be sure to select the YubiKey 4 device and not the Shared YubiKey 4 device. If you are only shown Shared devices, you may need to update your virtual machine's .vmx configuration file as described below.

Updating the Virtual Machine's Configuration

  1. Shut down the virtual machine.
  2. Locate the VM's .vmx configuration file. For more information, see VMWare's KB article on this.
  3. Open the configuration file with a text editor.
  4. Add the two lines below to the file and save it.

usb.generic.allowHID = "TRUE"
usb.generic.allowLastHID = "TRUE"

At this point, a non-shared YubiKey or Security Key should be available for passthrough. If not, you may need to manually specify the USB vendor ID and product ID in the configuration file as well. The example below is for a YubiKey 4.

usb.quirks.device0 = "0x1050:0x0407 allow"

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.