Connecting a second mouse or keyboard directly to a hosted virtual machine
Cannot connect “XXXXXX usb device” to this virtual machine. The host requires this device for input. |
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:
- Shut down the virtual machine that needs the mouse/keyboard.
- Plug the second mouse/keyboard into your host.
- Edit your virtual machine’s
.vmx
file to include these lines:usb.generic.allowHID = "TRUE"
usb.generic.allowLastHID = "TRUE"
- Power on your virtual machine.
- Go to VM > Removable Devices.
- Find and select your keyboard/mouse.
- Click Connect (Disconnect from host).
Source: http://kb.vmware.com/kb/1033435
Rob McDiarmid
March 6, 2014 @ 11:35 pm
Thanks for the tip. Note that if already have one of those lines in your vmx file and you add it a second time VM player will tell you the file is corrupt.
Yhokz
July 20, 2015 @ 7:04 am
Hi Rob, thanks for your add on tip. It gives people a heads up. ๐
Anonymous
October 8, 2015 @ 12:38 am
VM player will tell you the file is corrupt.