How to enable Hyper-V USB passthrough and access USB in Hyper-V

Last updated

What we gained with the development of virtualization technology is the much-desired ability to create a virtual version of computer hardware, including computing, storage, and networking resources. However, connecting to such physical resources as USB devices can still be a real challenge for users of virtual machines.

In this guide, we’ll consider several simple methods to enable Hyper-V USB passthrough so that your VM can work with any USB devices attached to the host computer.

What is Hyper-V USB passthrough?

Hyper-V USB passthrough functionality allows you to access the USB device from within a virtual machine. There is a way to enable USB passthrough on Hyper-V for a memory stick, but you’ll have to use Windows storage subsystem.

But what if you need to get access to a USB device plugged into your local PC but find out that the Hyper-V environment doesn’t natively support USB passthrough? Well, as you may know, Hyper-V is a type-1 hypervisor, which means one operating system instance locks a USB port from all other OS instances. Therefore, it may not assign a USB port to a particular guest. Thankfully, there are several popular ways to enable Hyper-V USB support and now we’ll take a closer look at each of them.

How to access USB in Hyper-V - a software method

FlexiHub

Windows, macOS, Linux, Android
4.8 Rank based on 78+ users
FlexiHub helps you to implement Hyper-V USB passthrough capabilities. It’s an easy way to connect a USB device to a Hyper-V virtual machine.
FlexiHub

USB over IP is a powerful software designed to make USB devices accessible from any remote computer, be it a PC working in the next room or a virtual machine running on a computer located miles away. This program can be your indispensable tool to enable Hyper-V USB passthrough on Windows 10, 7, 8, and others.

If you don’t know how to connect to USB in Hyper-V, here is a How-to video guide:

Or use the simple instructions to follow:

blank
1
First, create an account on the FlexiHub website.
 create an account to connect USB device to Hyper-V
2
Then, choose the required number of connections you’ll be able to establish at a time and start your free trial. Download the app and install FlexiHub on the host and guest machines.
 Choose the platform (Windows, Linux, macOS, and Android) to download FlexiHub build
3
Start the app on both systems and log in to your FlexiHub account using the same credentials. Find the required USB device press Connect
 Click “Connect” to access USB in Hyper-V VM
5
Now, in your Hyper-V VM, you will be able to locate the required USB device in the software interface. Once done, you can get full access to the device’s functionality and contents as though it were connected directly to your virtual machine.

It’s also worth mentioning that FlexiHub allows creating cross-platform connections. It can enable Hyper-V USB passthrough from Linux to Windows, from Windows to Mac and in many other combinations.

Known issues with Hyper-V USB device passthrough organized with native methods

Here is what you have to keep in mind before opting for native methods of USB passthrough to Hyper-V:

  1. Platform restrictions: said methods rely upon Windows storage subsystem so using them to set up Hyper-V USB passthrough on Linux (or any other OS that’s not Windows) is out of question, sadly.
  2. An extremely limited list of supported devices: for the native methods to work, your USB peripheral must be recognized as a “Mass Storage Device”. No exceptions.
  3. No sharing: once your device is set in passthrough mode, you can access it only from the guest OS. That’s why using these methods to permanently connect a USB to Hyper-V is definitely not the best idea.
  4. Poor choice for a cloud: with these methods, the USB device is always locked to a specific host PC while there's no way to anchor a cloud-based Hyper-V guest system or preestimate where it’s going to run for your next session.

It all adds up to a conclusion: native methods of adding USB support for Hyper-V are by no means all-purpose. In case they don’t work for your specific scenario (that is highly likely), consider getting a dedicated software tool.

Access USB in Hyper-V
7-day trial subscription

How to access USB from Hyper-V over a Remote Desktop Connection

In order to connect a USB device within a remote desktop session to VM Hyper-V, just take the following steps:

  1. To begin, you should allow Remote Desktop Connections on your guest system. To do this, connect to your virtual machine and find “System and Security” settings in the Control Panel. Select “Allow remote access”. connect usb hyperv
  2. You will see the System Properties window. In the “Remote” tab, check the “Allow remote assistance connections to this computer” box. Also, make sure that the “Allow remote connections to this computer” option is selected. Hit OK. hyperv remote access
  3. Now, if you want to access a Hyper-V USB device, you should initiate a Remote Desktop session.
  4. To do this, execute the mstsc.exe command, click “Show options” in the Remote Desktop Connection window and go to the “Local Resources” tab. Click “More” in the section “Local devices and resources”. redirect usb hyperv
  5. Check the “Other supported plug-and-play devices” box in the menu that will open. Hit OK. enable usb passthrough hyperv
  6. Click “Connect” to start your Remote Desktop session.

It’s also worth mentioning that in this scenario it’s required that the host and guest machines are connected to the same network.

Benefits and pitfalls of using RDP for Hyper-V USB passthrough:

🗹 Works for literally any hypervisor you can name;
🗹 Instant access to USB devices, once RDP connection is up;
🗹 Group Policy feature for overall control;
🗹 All USB devices plugged into your host PC are accessible from a virtual machine.

✖ The instant RDP session is over, the USB device will be disconnected;
✖ Most probably, you’ll have to install some extra drivers on your VM;
✖ Very limited range of supported devices, since this used to be a printer-oriented feature;
✖ Utterly low bit rate, more often than not;
✖ Won’t work on any OS other than MS Windows;
✖ A solid network link between your guest OS and a host PC (the one that has your USB device plugged into) is an absolute must-have;
✖ You’ll have to keep your TCP port 3389 open, whether or not you have a firewall;

Basically, USB over RDP performance is similar to the remote connectivity through Terminal Services (or the like). It is most efficient when used to access peripherals attached to end-user machines.

Access USB in Hyper-V
7-day trial subscription

How to enable USB device in Hyper-V with the Enhanced Session Mode

The Enhanced Session Mode makes it possible to redirect USB device to Hyper-V on Windows 10 and 8.1 (available by default), Windows Server 2012 R2 and Windows Server 2016 (can be enabled manually). This mode allows you to forward local resources to your Hyper-V VM using the Virtual Machine Connection tool. What’s important is that this method requires only the host computer to be connected to the network and doesn’t need network connectivity to the guest OS.

Here’s how it works:

  1. On a host computer, you go to the Hyper-V Manager, right-click the name of the host and choose Hyper-V Settings. configure usb passthrough hyperv
  2. In the Setting window, you will see the Server and User sections. Select Enhanced Session Mode Policy in the Server section and allow the enhanced session mode by checking the corresponding box.  hyperv usb passthrough
  3. Now, choose “Enhanced Session Mode” in the User section and check the “Use enhanced session mode” box. hyperv usb support
  4. Click OK and the changes will be saved.

What you should do next is select a local resource to connect to. These can be printers, smart cards, USB drives, etc.

To allow Hyper-V access to attached USB devices, take the following steps:

  1. Start the Hyper-V Manager and double-click the name of your virtual machine.
  2. In the pop-up window, click “Show Options” to configure your VM’s future connections.
  3. After that, go to the tab “Local resources” and click “More” in the section “Local devices and resources”.
  4. Then, check the boxes “Other supported Plug and Play devices” and “Devices that I plug in later”. Hit OK.
  5. If you want this configuration to be saved for all future connections, check the corresponding box in the “Display” tab. Click “Connect” to implement the changes.

FlexiHub

Requirements: Windows 7/8/10, Server 2012/2016/2019
Size: 6.97MB
Version: 4.1.12932 ()
User rating: (4.8 based on 78+ users)