In this article, we will consider two different ways of forwarding USB devices from a host PC to a Hyper-V virtual machine and compare the pros and cons of each method. If you are not ready for a long read, just start sharing USB in Hyper-V in a few clicks with USB Network Gate. Otherwise, read on to know more.
USB Network Gate is a USB software designed as a client-server software. This tool allows a server machine to share access to USB devices (like printers) with other machines on the same network (or via a Virtual Machine.) When sharing is successful, the USB software allows client machines to access, control, and manage the USB devices as if they were plugged physically into their own computer.
Note: Any machine connected with a network can act as a server computer
Now we’ll cover how to use USB Network Gate to access Hyper-V USB devices. The following Hyper-V USB passthrough server method can be completed in 4 simple steps:
Using USB Network Gate to mount and access Hyper-V USB devices to a Virtual Machine is easy, fast, and convenient.
Users will find their USB peripherals in the Virtual Machine’s Device Manager window, allowing them to access the devices with the same level of control they would experience if the device was physically connected to the computer they’re physically working from.
In this section, we’ll cover how to enable Windows 10 Hyper-V client for Hyper-V USB passthrough. Users can virtualize their local resources (such as USB ports and hard drives) when connecting their Hyper-V virtual machine, and a host computer using Remote Desktop Protocol(RDP).
Users can also permit device access to guest operating systems as well.
The RDP option is a great method for anyone using a Windows OS configuration. Users can find their Windows 10 Hyper-V USB passthrough feature within Remote Desktop Connection—under the “Client options”.
When operating the host machine:
Step 1: Hit Win+R to open the “Run” window.
Step 2: Type “gpedit.msc” within the window—which will open the computer’s group policy settings.
Step 3: Navigate as follows:
Computer configuration > Administrative templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client > RemoteFX USB Device Redirection.
Step 4: Choose the available GPO (there should only be one) and enable it—this alters the access right to “Administrators and Users”.
When operating the Virtual Machine(VM):
Step 1: Hit “Win+R”.
Step 2: Type “gpedit.msc” and hit “Enter”—users can follow the same process via PowerShell (poweshell.exe).
Step 3: Navigate as follows:
Computer configuration > Administrative templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Device and Resource Redirection.
Step 4: Choose GPO "Do not allow supported Plug and Play device redirection" and disable it to use PnP devices on a Virtual Machine.
Step 5: Reboot both computers.
From here, users can easily redirect any device to their Virtual Machine(VM). Once the user connects, a third icon will appear beside the Connection icon. Hit the icon to choose any local device for redirection to a VM.
A user cannot access USB peripherals attached to a local PC while working in Hyper-V virtual machine. To resolve this challenge, you need to either resort to the help of some dedicated third-party tools or look for a workaround among features of your host OS.
SCSI (Small Computer System Interface) controllers give virtual machines access to SCSI disks. From a virtual SCSI controller a maximum of 64 devices can be supported. Multiple disks attached to a single controller will provide optimal performance. Here we will let you know how to how to install a USB drive as a virtual hard drive:
If ‘My Computer’ does not show it as a removable storage, it might be because the drive is offline. To check it, go to your VM, right-click Computer, choose ‘Manage’ or ‘Administrative Tools’ and go to Computer Management.
Expand Storage and select Disk Management. Red arrow icon means that the disk is offline, right-click the disk and in the context menu displayed select Online. Once your disk gets Online status, a drive letter will be assigned to it.
There are certain drawbacks to this method: you will have to reproduce the entire actions sequence for each USB drive connected to your Hyper-V virtual environment. As we already mentioned, creating a vhd file might consume some time, it directly depends on the size of your USB disk.
An Enhanced session is a special mode that allows users to link their VMConnect.exe app with a VMBus component on a host computer. In its most simplistic terms, enabling Enhanced Session mode allows the “guest” OS to instantaneously access all local devices (such as SCSI controllers, USB dongles, and so on.)
This is also possible via USB redirection using an Ethernet connection. Users can access both the devices attached to the host, as well as devices connected to other machines sharing the same network.
Enhanced Sessions are integral in numerous situations where VMs must communicate with local resources without having access to network connectivity.
Below are a series of examples where Enhanced Sessions are beneficial:
Additionally, software and hardware developers love using Hyper-V USB passthrough—especially with Windows-compatible products. Enhanced Session mode even improves the speed and ease of USB app testing and debugging while using a VM.
Like VMware workstations, enabling Hyper-V Enhanced Session Mode doesn’t force users to download extra libraries/components when using Hyper-V on Windows. The only necessity is for users who want to enable Hyper-V 2012 r2 USB passthrough, is that they must tweak their Hyper-V configuration.
Step 1: Open the Hyper-V Manager (frequently located in
Step 2: Select the Hyper-V server that will have Enhanced Session Mode enabled
Step 3: Click “Hyper-V Settings”
Step 4: Enable server settings within the Enhanced Session Mode Policy, click the checkbox beside “Allow enhanced session mode”.
Please note: The above setting configuration will be applied to any and all VMs operating under the Hyper-V host machine.
Please note: Enabling the ‘Allow enhanced session mode’ setting dictates whether guest VMs can use enhanced session mode.
Step 5: Once enabled, Hyper-V permits Enhanced Session Mode — but only under specific conditions
For those seeking to establish a USB passthrough on a Linux OS, enabling Enhanced Session Mode — or utilizing a USB software like USB Network Gate — are two suitable solutions.
But what sets USB Network Gate apart from the traditional native passthrough method, is its exceptional flexibility. UNG isn’t held back by device limitations (like brand, type, form, or shape.)
Users don’t need to struggle with constant lag from redirected PnP devices, allowing them to pass through a USB hub more easily and quickly than the standard features that come with MS Hyper-V.
Users implement Enhanced Session Mode to configure their user settings. Enabling the ESM setting lets the Virtual Machine Connection tool utilize Enhanced Session Mode (when available via the guest VM.)
This means that users automatically get access to local USB peripherals without the need for extra USB redirection tools.
Follow the below conditions to use Enhanced Session Mode with your setup:
Please note: Disabling Enhanced Setting Mode makes the Virtual Machine Connection tool enact the methods previously seen in pre-R2 Hyper-V versions.
As you can see, there are different ways to add USB device to Hyper-V virtual machine. Considering the ease of use and the range of devices supported, it’s easy to see that the software tool, USB Network Gate, is a more convenient and efficient solution.
USB Network Gate