|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
.vmxfile 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).