Networking HowTos
Networking HowTos

Pass through USB device access to VMware Guest OS

February 16, 2012 Virtualization, VMWare

As of VMWare ESX/ESXi/vSphere version 4.1 and above, you can now pass through USB devices to the guest virtual machine, as though it was directly connected to that machine. This is great for passing through USB HDD’s, USB tape drives, printers, etc.
The following steps outline how to set up ESXi to pass through a USB device to a virtual machine.
This is a two stage process the first time you set this up. You need to add a USB controller to the virtual machine before you can add USB devices. After this initial setup, you can just add more USB devices as needed.
Start by loading up the vSphere client, and connect to your VMWare ESX/ESXi/vSphere server.
Find the virtual machine that you want to configure USB pass-through on, right click it, and select “Edit Settings”.
You should now see the virtual machine properties window, as shown in the screenshot below.

Click the “Add” button at the top.

Select “USB Controller” and hit “Next”.

Select “EHCI+UHCI” if you only need USB 2.0 or 1.1 support, or if your operating system doesnt support the USB3 controller.

Select “xHCI” from the drop down list to allow USB 3.0, 2.0 and 1.1 support.
I will be using xHCI for this example.

Hit “Next” after selecting the controller type.

Verify the selection configuration, and hit “Finish”.
Now you have a USB controller added to the virtual machine, you can go ahead and actually add the physical USB device to the virtual machine.
Make sure your USB device is plugged in now, before proceeding.
Press “Add” again on the virtual machine properties screen.

This time you will need to select “”USB Device”.

Press the “Next” button.
Select your USB device to add to the virtual machine.
In this example, I have a Samsung external USB HDD plugged in.

Hit the “Next” button.

Confirm your configuration options, and hit the “Finish” button.

You will now have a USB controller, and a USB device added to the virtual machine.
Press the “OK” button to save, and apply the changes.
When you boot up the virtual machine, you should now have access to the USB device just like it had been plugged directly into that virtual machine.

You Might Also Like

  • Phil May 23, 2012 at 10:14 am

    Thanks for the article – very informative.
    I tried this with a USB 3.0 hard drive (go flex 4tb) but it does not show up in the “”USB Device” listing.
    Have you tried this with a USB 3.0 hard drive?
    Thanks, Phil

    • admin May 28, 2012 at 12:41 am

      Thanks for the comment.
      Unfortunately I haven’t tested this with USB 3.0 yet, as I don’t have USB 3.0 in any of my PC’s yet, or any USB 3.0 devices.
      I would expect that if you could get as far as you got, USB 3.0 would be supported with the version you are using.
      This link outlines some limitations in regards to ESX versions USB versions, and what is support: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1022290 . This may help assist with identifying any compatibility issues.
      Would be interested to see how USB 3.0 speeds go with ESX pass through.
      Cheers.

  • Phil May 30, 2012 at 9:26 am

    Futher delving into this, seems I am not able to use my USB3 drive in the configuration I have.
    1) my machine (Microserver N40L) does not support passthrough
    2) esxi5 does not support connection of USB3 devices to the host PC (from my reading of the vmware link you posted.)
    My option is to use a USB3 connection on a client PC running Vsphere and use the client connect. Hopefully the GB ethernet I have will allow decent file transfer speeds with the Esxi. My desktop PC is of an age where I don’t think it support PCI-E, I will have to find a PCI USB3 card.
    Cheers, Phil