Connecting a USB Device to an ESX hosted VM
Here’s some common scenarios where external USB devices might be needed in VMs:
Temporary USB Connections
- One time data transfers
- Print to a printer
- Scanning
Permanent USB Connections
- Application security keys
- Printing
- Scanning
- Card readers
These are just a few I could quickly think of.
In the rest of this post I discuss using RDP USB pass through for the temporary scenario, and then provide some links for permanent USB connection possibilities to a VM.
For a temporary USB connection take advantage of remote desktop client features. For example, using Microsoft’s Remote Desktop Connection (RDP) tool to a Windows VM you have options to allow the guest to see the USB devices connected to your desktop or notebook. By clicking the Options button from the main interface and then the Local Resources tab you can configure a pass through connection to USB devices.
For the permanent USB connection you will need to use an IP based software or hardware solution. Here’s some quick examples:
USBAnywhere
Some info from their web site:
“Our technology allows sharing any device easily, from scanner to hasp-key. Areas of practical use as wide as the range of supported devices. The advantages are obvious, now several users can share the same equipment despite their physical location. It is extremely important under the situation of shifting from outdated com- interface to promising USB standard. One can also save his costs as there is no need in purchasing new equipment or providing additional transactions with the old one.”
Remotescan
Remotely share a scanner connected to a physical computer with multiple servers. More info from their web site:
“With RemoteScan™ your TWAIN compatible device becomes available to any other computer on your network. Plug your scanner into just one computer, and access that scanner from any other computer on your network, or from around the world through the Internet.”
The USB/IP Project
For Linux based USB sharing, The USB/IP Project is an ip based usb sharing system. More from their web site:
“To share USB devices between computers with their full functionality, USB/IP encapsulates “USB I/O messages” into TCP/IP payloads and transmits them between computers. Original USB device drivers and applications can be also used for remote USB devices without any modification of them. A computer can use remote USB devices as if they were directly attached; for example, we can …
- USB storage devices: fdisk, mkfs, mount/umount, file operations, play a DVD movie and record a DVD-R media.
- USB keyboards and USB mice: use with linux console and X Window System.
- USB webcams and USB speakers: view webcam, capture image data and play some music.
- USB printers, USB scanners, USB serial converters and USB Ethernet interfaces: ok, use fine.”











Pingback: Using USB Devices in Virtual Machines on VMware ESX « Lewan Professional Services Blog