VMware ESXi and vSphere Cluster Management

Connect USB Human Interface Devices to a VMware Workstation Player Virtual Machine

Learn how to pass USB keyboards, mice, gamepads, joysticks, and other HIDs through to a VMware Workstation Player guest safely.

A USB Human Interface Device, or USB HID, is a peripheral designed for human input or control. Common examples include keyboards, mice, gamepads, joysticks, and similar controllers.

In VMware Workstation Player, a device physically attached to the host system—the physical computer running VMware—is not automatically controlled by the guest operating system inside the virtual machine. USB passthrough assigns the device to the guest so that the guest can control it directly.

This differs from normal host input integration. With normal integration, VMware may make keyboard and mouse input convenient for the virtual machine while the host still owns the physical device. With an exclusive connection, the selected USB device is assigned to the guest and is no longer normally available to the host at the same time.

How VMware handles USB input devices

VMware Workstation Player can omit USB input devices from the virtual machine's Removable Devices list by default. This means a keyboard, mouse, game controller, or joystick may be attached to the physical computer but unavailable for selection in the guest connection menu.

Non-HID USB devices may already appear in the removable-device interface, so this behavior does not mean that every USB device is hidden. The relevant USB Controller setting specifically changes whether USB input devices are displayed as eligible devices for guest connection.

Before you begin

  • Know which virtual machine should receive the device.
  • Confirm that the host detects the physical keyboard, mouse, controller, or other HID.
  • Use a secondary keyboard, mouse, or controller when possible.
  • Save work in both the host and guest before transferring an active input device.
  • Be prepared for the guest to require a compatible driver or application.

The target virtual machine must be powered off. Powered off means the guest has been shut down completely; it does not mean running or suspended. Hardware configuration changes may be unavailable or may not take effect while the virtual machine is active or suspended.

Enable visibility for USB input devices

  1. Open VMware Workstation Player and select the target virtual machine in the library.
  2. Make sure the virtual machine is fully powered off, not suspended.
  3. Open Player > Manage > Virtual Machine Settings.
  4. On the Hardware tab, select USB Controller.
  5. Enable the option that shows all USB input devices in the removable-device interface. Depending on the release, the wording may be similar to Show all USB input devices.
  6. Save the setting with OK or the equivalent confirmation button.

This setting does not immediately transfer a device. It changes which USB input devices can be selected later from the virtual machine's removable-device controls.

Start the guest and connect the HID

  1. Power on the virtual machine.
  2. After the guest starts, open Player > Removable Devices.
  3. Locate the attached keyboard, mouse, gamepad, joystick, or other eligible HID.
  4. Select the device and choose the action to connect it to the virtual machine. The wording may be Connect or similar.
  5. Wait for the guest operating system to detect the newly attached USB device.

To verify the connection, inspect the guest's device-management or input settings. For example, a Windows guest may show a game controller in its game-controller settings, while a Linux guest may show a keyboard, mouse, or controller through its input-device tools. Test the device with an application that supports its device class.

StageUser actionWhere to perform itExpected result
Power off the VMShut down the guest completelyGuest operating system and VMware libraryThe VM is powered off, not suspended
Open virtual machine settingsSelect the VM and open its settingsPlayer > Manage > Virtual Machine SettingsThe hardware configuration dialog opens
Select USB ControllerOpen the USB controller configurationHardware tabUSB options are visible
Enable USB input-device visibilityEnable the option to show all USB input devicesUSB ControllerEligible HIDs can appear in removable devices
Start the VMPower on the guestVMware Workstation PlayerThe guest is running
Connect the HID from removable devicesSelect the device and connect it to the VMPlayer > Removable DevicesThe guest receives the USB device
Verify the device in the guestCheck device settings and test an applicationGuest operating systemThe guest recognizes and can use the HID

Host and guest device ownership

When the HID is physically connected but not assigned to the guest, the host normally retains control. When VMware connects it exclusively to the guest, the guest receives control and the host cannot use that device normally at the same time. Disconnecting it from the guest returns it to the host.

Device stateUsable by hostUsable by guestNotes
Physically connected to host but not assigned to guestYesNo, not as an exclusively attached USB deviceThe device may still provide normal host input
Connected exclusively to guestNo, not normallyYesThe guest controls the USB device
Disconnected from guestYesNoThe device returns to host use

Example: USB game controller in a Windows guest

A controller may be visible to the host but absent from the guest's removable-device list. Power off the virtual machine, enable USB input-device visibility under USB Controller, start the guest, and connect the controller through Player > Removable Devices. Then verify it in the Windows guest's device or game-controller settings.

Example: Dedicated keyboard for a Linux guest

Attach a second keyboard to the host before beginning. Pass the dedicated keyboard to the Linux guest after enabling the visibility setting. Typing from that keyboard is then handled by the guest until you disconnect it from the virtual machine.

Verification and recovery

Use these checks after attempting passthrough:

  • Confirm the HID is listed under Player > Removable Devices.
  • Confirm the menu identifies it as connected to the intended virtual machine rather than retained by the host.
  • Check the guest's device-management or input settings.
  • Test it in a guest application that supports the device.
  • If the wrong guest received it, use VMware's removable-device controls to disconnect it, then connect it to the intended guest.

If a mouse or keyboard becomes unusable on the host, use a secondary input device or another available recovery method to open VMware's removable-device controls. Disconnect the HID from the virtual machine. Host access should return after the exclusive assignment is released.

Troubleshooting

SymptomLikely causeCorrective action
Input device is missing from the removable-device listUSB input-device visibility is still using the default behavior, the setting was changed while the VM was active, or the host does not detect the devicePower off the VM, enable visibility for all USB input devices under USB Controller, restart the VM, and confirm host detection
USB Controller setting cannot be changedThe VM is powered on or suspended, or a different VM is selectedPower off the intended VM rather than suspending it, select the correct library entry, and reopen its settings
Device appears but does not work in the guestThe guest lacks a suitable driver, the guest application does not support the device, or the connection was not completedCheck guest device settings, install or update the required driver, disconnect and reconnect the device, and test a compatible guest application
Host loses access to an assigned keyboard or mouseThe HID is connected exclusively to the guestUse another host input method and disconnect the HID from the virtual machine; use dedicated secondary hardware for future tests

Operational considerations

  • Transfer input devices only after saving work. A device may stop controlling the host immediately when ownership changes.
  • Keep a secondary keyboard or mouse available when testing passthrough.
  • The guest operating system must support the device class and may need a driver.
  • The application running inside the guest must also support the controller, joystick, or other HID.
  • VMware menu wording can vary slightly between Workstation Player releases and guest operating systems.
  • If the visibility option is missing or disabled, power off the VM and revisit Virtual Machine Settings > Hardware > USB Controller.

For the related procedure, see connecting USB HIDs to a virtual machine.