paint-brush
How To Redirect USB Dongle: Hyper-V USB passthroughby@garry-tribbiani
3,710 reads
3,710 reads

How To Redirect USB Dongle: Hyper-V USB passthrough

by Garry TribbianiJune 16th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Donglify is a lightweight application that employs advanced port virtualization technology to enable USB security dongles to be redirected to a virtual machine over a wired or wireless network. When servers are virtualized, any references to connected USB buses and devices are deleted. The most recent versions of VMware address this shortcoming and provide the means to connect USB devices and virtual servers. When using earlier versions of. other virtualization platforms, successfully connecting to. USB devices can still pose problems when using. earlier versions.
featured image - How To Redirect USB Dongle: Hyper-V USB passthrough
Garry Tribbiani HackerNoon profile picture

Many commercial software applications require the user to verify authorization to run the program using a physical USB dongle. This can result in connectivity issues when working in a virtual environment. There is no reliable, native method of connecting virtual machines to USB devices in Hyper-V. When servers are virtualized, any references to connected USB buses and devices are deleted. 

The most recent versions of VMware address this shortcoming and provide the means to connect USB devices and virtual servers. When using earlier versions of VMware or other virtualization platforms, successfully connecting to USB devices can still pose problems.

Donglify offers users a simple and efficient method of connecting a physical USB security key to virtualized servers in VMware and other virtualization solutions. Donglify is a lightweight application that employs advanced port virtualization technology to enable USB security dongles to be redirected to a virtual machine over a wired or wireless network.

Using Donglify requires a two-step process that touches the computer hosting the physical dongle and the virtual machine that needs to access the device.

On the host machine:

  1. Create a Donglify account on the software’s website.

  1. Download and install the app on your computer.
  2. Launch the program and log into the Donglify account.
  3. Click the plus icon in the displayed window to list the local USB dongles that can be shared.

  1. Check the radio button next to the selected USB security key and click “Share”

Note: If a “Multi-connect” icon is displayed with a USB dongle, it indicates the device can be shared simultaneously with multiple network-connected machines. Dongles that can only be used by one machine at a time will display a “Single-connect” icon.

On the virtual machine:

  1. Download and install Donglify on the VM that will connect to the shared USB dongle.
  2. Start the program and use the same credentials used when sharing the device to log into your Donglify account. 
  3. A list will be displayed showing the remote dongles available for a connection.
  4. Click the “Connect” button below the selected key to complete the connection.
  5. Another option to redirect a USB Dongle

There is no full-blown mechanism for connecting USB devices to virtual machine in Hyper-V, so when server is virtualized, all references with USB bus and USB devices connected to it are gone.

In the latest versions of VMware there is a mechanism to connect USB devices to virtual servers, but for the users of earlier versions the task of redirecting USB devices in virtual sessions is still strong. Other virtual machines may be having the same problem.

With USB Network Gate you can use any computer connected to the network as a server for sharing devices: Windows, Mac or Linux.

Steps

1. Install USB Network Gate (server side enabled) on the computer with USB devices connected. No need of additional hardware - it is just USB Network Gate for all redirecting.

Note: that sometimes you may be required to change firewall settings to allow such services as UsbService.exe and UsbConfig.exe.

2. Install USB Network Gate on the client machines (this time as a client of course). This way you'll be able to access and work with USB devices shared on the server machine. Perform the search for available (shared) device and connect to it.

After successful connection, USB dongle will appear in a virtual session as if it was connected there physically.

Tips

How to customize Windows firewall

USB Network Gate and configurator need to communicate with each other. Customize firewall to let them do so by adding UsbService.exe and UsbConfig.exe to the list of allowed processes.

For more details on this visit: https://electronicassist.freshdesk.com/a/solutions/articles/44001312428

USB dongles support

USB Network Gate was successfully tested with various models of USB dongles. However it is impossible to test all existing models, so in case you are experiencing issues we'll be glad to help you.

Redirecting USB device from host OS to guest OS

USB Network Gate brilliantly solves the task of redirecting a device connected to a host OS for usage on a guest OS on the same computer. Simply install USB Network Gate on host OS and on guest OS, and USB devices will be redirected to virtual machine just as if they were present there physically.

Things you'll need

You'll only need USB Network Gate and of course USB dongle you're going to share. No need of any additional hardware or software. Download free trial version of USB Network Gate here.