Attach USB device to Hyper-V guest machine

Omid Shojaee 116 Reputation points
2022-01-24T12:21:15.937+00:00

Hello,

We have a software installed on one of our Hyper-V guest machines running Windows 2022 Datacenter edition. This software requires a hardware lock which is a USB device. The device is inserted into the USB port of the server, and the host machine sees it as an Input Device.

I need to somehow "attach" that USB device to the guest machine permanently and make it visible to the guest OS otherwise that software won't work. What is the solution?

The host machine is Windows 2022 Datacenter edition.

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,546 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Dion McGovern-Allen 6 Reputation points
    2023-10-12T20:45:02.4766667+00:00

    Technically if you ignore the USB portion of the drive @Tom-9560
    Then its storage passthrough and nothing at all to do with USB.

    That being said, I don't believe the process is anywhere near "nightmare process" and 20 steps.

    Plug drive in, offline to host, edit VM settings and done it now has a extra hard drive ready to go (formatting not included)

    Course it would be nice to be able to do USB device passthrough.


  2. Net Runner 505 Reputation points
    2024-03-07T09:50:56.0466667+00:00

    What is the solution?

    The only solution I know to work reliably in this particular use case is either using a different hypervisor (VMware ESXi or Linux KVM) or USB-over-Ethernet software, like this one https://www.eltima.com/de/products/usb-over-ethernet/.

    Another alternative is to purchase a dedicated PCIe USB controller (they are cheap) and pass it to your virtual machine entirely with the USB key plugged into it. That works most of the time.

    You may also ask your software vendor for options other than a USB key. Usually, they offer some network- or online-based alternatives.

    0 comments No comments