USB (that can turn off and on) Passthrough to VM


Recommended Posts

Hello, I've searched, but haven't been able to find anything to address the following issue:

  • I'm connecting an external device to my unraid server physically via USB.
  • This external device can be turned on and off.
  • As this device is turned on and off, I need it available again in the VM without rebooting the VM.

 

I have only been able to get it available after rebooting the VM. Eventually, this would apply to multiple external devices that can turn on and off.

Edited by ChrisTech
Link to comment
7 hours ago, ChrisTech said:

I have only been able to get it available after rebooting the VM. Eventually, this would apply to multiple external devices that can turn on and off.

You have 2 choices:

  • Pass through a USB controller (either onboard (Ryzen / TR4 mobo has at least 1 available) or a PCIe card) to your VM. Any USB devices plugged into a passed-through controller will automatically attach to the VM (that has the controller).
  • Install the libvirt hotplug USB plugin. You can manually attach USB devices to the VM after VM boot.

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.