Search the VMware Knowledge Base (KB)
View by Article ID

Connecting a second mouse or keyboard directly to a hosted virtual machine (1033435)

  • 65 Ratings

Purpose

This article provides the steps to connect a second mouse and/or keyboard directly to a virtual machine.
 
If your mouse or keyboard is not working in your virtual machine, see Keyboard or mouse do not work in a hosted virtual machine (1008443).

Resolution

Mice and keyboards belong to a special class of USB devices known as Human Interface Devices (HID). By default, you cannot connect these devices to the virtual machine due to the risk of removing all human interface from the host computer. However, you can instruct the VMware product to allow these devices by modifying the virtual machine settings.

Caution: Before performing these steps, ensure that you have access to a second keyboard and/or mouse. Do not perform these steps if you only have one mouse and/or keyboard, as you will not be able to use the device(s) with your host computer while the virtual machine is running.

To connect an external keyboard and/or mouse directly to your virtual machine:

  1. Shut down the virtual machine that needs the mouse/keyboard.
  2. Plug the second mouse/keyboard into your host.
  3. Edit your virtual machine's .vmx file to include the lines below. For more information, see Locating a hosted virtual machine's files (1003880)

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

  4. Power on your virtual machine.
  5. Go to VM > Removable Devices.
  6. Find and select your keyboard/mouse.
  7. Click Connect (Disconnect from host).

Tags

how-to use-keyboard  use-mouse  use-mouse-keyboard

See Also

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 65 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 65 Ratings
Actions
KB: