Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VM USB Passthrough Multiple Devices with the same Vendor/Product

Featured Replies

 

 

In my case I need to connect a xbox controller to each virtual machine, (I have two virtual machines).

 

I imagine an option in UnRaid where I configure which usb ports I want to pass to which virtual machine (without having to buy additional hardware) and I don't care about VIDs or PIDs.

 

I think the solution to go through multiple devices with the same vendor / product is not to pass the USB port to the machine, nor to pass the device to the machine.

 

The solution should be similar to the Parsec application that passes devices through the Network, this requires installing a plug-in in the host VM and in the unraid a plugin should be installed where the configuration of the devices is carried out.

+1 I have a couple use cases like this.  For now I pass through an entire USB card to VM's to circumvent but seems a bit of a physical resource waste and I'm running out of ports due to this.  

  • 1 month later...

I have started writing a plugin for usbip support, and was looking for ways to identify if usb devices are allocated to other services to restrict people from adding to usbip. I have already disabled the boot flash drive. But there doesn't seem to be an easy way to see USB devices allocated or in use at a host level for VMs, but came across this thread whilst looking for solutions.

 

Within the plugin I have all the details about the USB devices including serial number if the device uses it as some do not like the keyboard and BMC(kb and mouse) on my system. So I have started to see if I can add VMs. 

 

Currently working on the processing of udev rules to support updates to my list if someone plugs in devices, but this could also be enhanced to include attaching to the VM if it is running. I will use dlandons libvirt-hot-plug plugin to assist with this so you will need to have it installed also. And likewise remove from VM if unplugged.

 

If I can find a way to be informed of a VM being started I may also be able to allocate devices after it has started.

 

My plugin is still in beta but I have added VMs to the screen so far but it is way off being ready for use.

 

image.thumb.png.28438658842f9bb3ccaec3935bf121c1.png

 

My current VMs defined on this system.

 

image.thumb.png.b87a4ffc657abe723279ffae4c6f0756.png

I am still working on this, but now have the option to connect multiple devices of the same vendor/product to a VM.

 

Currently it is still dependent on USBIP commands which I am planning to change. Also not released yet but its will auto connect to a VM when the usb is plugged in and the VM is running.

 

Whilst it is using USBIP commands it is limited to > 6.9.0-rc2 but hopefully soon I will release version that will run on 6.8.

 

 

image.thumb.png.407a251ad46266a048cec71fd7176fab.png

Version 08.02.2021 released today. This is still a beta release.

 

udev rules are in now place. If VM defined and Autoconnect is set USB device will be connected to the VM when plugged in. Minimum release level changed to 6.8.

 

  • 2 months later...
  • Author
On 2/8/2021 at 12:17 PM, SimonF said:

Version 08.02.2021 released today. This is still a beta release.

 

udev rules are in now place. If VM defined and Autoconnect is set USB device will be connected to the VM when plugged in. Minimum release level changed to 6.8.

 

thanks a lot, will this work for unraid 6.9?

5 minutes ago, JhonScript said:

thanks a lot, will this work for unraid 6.9?

Yes runs on 6.9, 6.8 is minimum release.

 

Screen from 6.9.1

 

image.thumb.png.b8c9ff49917a6f73ad807c81c9c9cbfd.png

Edited by SimonF

  • Author
49 minutes ago, SimonF said:

Yes runs on 6.9, 6.8 is minimum release.

 

Screen from 6.9.1

 

image.thumb.png.b8c9ff49917a6f73ad807c81c9c9cbfd.png

hooo excellent, thank you very much. have you been able to find something so you don't have to add the script manually? very good solution men. install unraid 6.9 but Dynamix Sleep is failing. as soon as that is solved I will install again and install the "USB MANAGER" plugin

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.