Attach USB device to Hyper-V guest machine

Omid Shojaee 121 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,812 questions
{count} votes

8 answers

Sort by: Most helpful
  1. Leon Laude 85,871 Reputation points
    2022-01-24T12:33:51.57+00:00

    Hi @Omid Shojaee ,

    It's not as straight forward, but you could follow along the guide over here:
    https://adamtheautomator.com/hyper-v-usb-passthrough

    Edit: If you want to add USB devices, you'll likely need a third-party solution.

    ----------

    If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

    Best regards,
    Leon


  2. 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.


  3. Fábio Vieira 0 Reputation points
    2024-12-24T20:42:04.74+00:00

    Hi folks!

    I believe I have a much simpler solution!

    Just attach a pendrive and share it to EVERYONE. Open the guest VM and map the previos share using "net use X: \\HOSTNAME\SOMESHARE /persistent:yes" or using Explorer. Depending on your scenario, you may need to use the Host's user credentials.
    After that I've noticed even the pendrive is not present, the share will persists in the guest machine! When the pendrive is attached, it will be available to the guest VM.

    Regards!

    Fábio Vieira


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.