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 Passthrough USB Ports or Devices in big IOMMU Group (-> KVM-Switch / USB-Hub)

Featured Replies

Hi Community! This is my first post - currently setting up unRAID on a self build machine with pc hardware

 

M/B: Gigabyte Technology Co., Ltd. B760M GAMING X AX Version x.x s/n Default string

BIOS: American Megatrends International, LLC. Version F11 Dated 09/27/2024

CPU: 13th Gen Intel® Core™ i5-13500 @ 2475 MHz

 

I am trying to set up a Win10 vm to run as my daily PC. I have another Laptop for work which shall share the peripheral devices

(Keyboard, Mouse, Monitor), which are set up via an KVM-Switch. The Keyboard Mouse Combo is connected Wireless via USB/BT via the KVM-Switch.

 

Here is my problem. - I don´t know how to pass through the Keyboard/Mouse to the VM.

I only have a big IOMMU group for any USB ports. They are all controlled via the Intel Raptor Lake controller.

 

grafik.thumb.png.ce5198cf26e7e215fc4fd4dc596ddfa4.png

 

The solution via USB Hotplug / assign to vm does also not work, because of the KVM-Switch? BT dongle has always power,

and is not recognized as a new device when switching peripherals...

 

Is it possible to divide the IOMMO group into ports or group of ports?

 

Any other ideas?

 

Thanks

Solved by fk2705

  • Community Expert
14 minutes ago, fk2705 said:

Hi Community! This is my first post - currently setting up unRAID on a self build machine with pc hardware

 

M/B: Gigabyte Technology Co., Ltd. B760M GAMING X AX Version x.x s/n Default string

BIOS: American Megatrends International, LLC. Version F11 Dated 09/27/2024

CPU: 13th Gen Intel® Core™ i5-13500 @ 2475 MHz

 

I am trying to set up a Win10 vm to run as my daily PC. I have another Laptop for work which shall share the peripheral devices

(Keyboard, Mouse, Monitor), which are set up via an KVM-Switch. The Keyboard Mouse Combo is connected Wireless via USB/BT via the KVM-Switch.

 

Here is my problem. - I don´t know how to pass through the Keyboard/Mouse to the VM.

I only have a big IOMMU group for any USB ports. They are all controlled via the Intel Raptor Lake controller.

 

grafik.thumb.png.ce5198cf26e7e215fc4fd4dc596ddfa4.png

 

The solution via USB Hotplug / assign to vm does also not work, because of the KVM-Switch? BT dongle has always power,

and is not recognized as a new device when switching peripherals...

 

Is it possible to divide the IOMMO group into ports or group of ports?

 

Any other ideas?

 

Thanks

Use my usb manager plugin and setup mappings for kB and mouse. Plugin supports hot plugin automatically.

  • Author
10 hours ago, SimonF said:

Use my usb manager plugin and setup mappings for kB and mouse. Plugin supports hot plugin automatically.

Hi Simon, thanks for the hint - I tried it with your plugin, but it is not working. When plugging in the BT dongle directly in the "unRAID PC" the Cherry KB+Mouse are recognized, but when plugged in the KVM Switch, the KB and Mouse are not seen. Any other idea?

 

Here´s a screenshot from the VM log.

grafik.thumb.png.16a58b112080fb5f64c405e64fd59f7d.png

 

Edited by fk2705

  • Community Expert
45 minutes ago, fk2705 said:

Hi Simon, thanks for the hint - I tried it with your plugin, but it is not working. When plugging in the BT dongle directly in the "unRAID PC" the Cherry KB+Mouse are recognized, but when plugged in the KVM Switch, the KB and Mouse are not seen. Any other idea?

 

Here´s a screenshot from the VM log.

grafik.thumb.png.16a58b112080fb5f64c405e64fd59f7d.png

 

Are you trying to pass thru the whole controller? 

 

 

Within the plugin you can setup for each USB device so you dont need to passthru the controller.

 

image.png

 

Then set the device or port to connect at device plugin which it would look like when you change the KVM.

image.png

 

IOMMU is not stand alone hence the error messages in the log.

  • Author

There was a IOMMU Group marked to pass through for the intel onboard audio but not the USB controller.

The only passthrough in "systemdevices" now is my graphic card.

 

grafik.thumb.png.06b12673055dc2099f469edc8c6623cd.png

 

I tried it with exactly the steps you mentioned and added the devices which I think are for the BT and KB/Mouse.

 

grafik.thumb.png.add622bc4d006fdfdb4846308d4718cc.png

 

After rebooting and starting the VM, I get this Error:

 

grafik.thumb.png.53767f5386ae31ba57e742f81d1102d9.png

 

What do you suggest?

 

Thanks!

 

  • Community Expert
11 hours ago, fk2705 said:

There was a IOMMU Group marked to pass through for the intel onboard audio but not the USB controller.

The only passthrough in "systemdevices" now is my graphic card.

 

grafik.thumb.png.06b12673055dc2099f469edc8c6623cd.png

 

I tried it with exactly the steps you mentioned and added the devices which I think are for the BT and KB/Mouse.

 

grafik.thumb.png.add622bc4d006fdfdb4846308d4718cc.png

 

After rebooting and starting the VM, I get this Error:

 

grafik.thumb.png.53767f5386ae31ba57e742f81d1102d9.png

 

What do you suggest?

 

Thanks!

 

Do you need any of the devices on 12 are you passing thru audio? As GPU will have audio also. You may want to set the USBs to connect at VM start also.

 

  • Author

Hi Simon, I disabled this group also and I also set USBs to connect at VM start - but also no recognition of KVM-Switch -> BT-Dongle -> KB/Mouse

grafik.thumb.png.623ace3d931901961a6e6c03ff22bfd7.png

  • Author
  • Solution

UPDATE:

 

When logging in unRaid WebGUI from another PC, while VM is running and KVM Switch is connected to my unraid setup, it is possible to attach the USB-Hub and Cherry KB/Mouse. -> The problem was, that the KVM USB Hub had to be active and connected to configure the devices in the USB manager plugin...

Edited by fk2705

  • Community Expert
14 minutes ago, fk2705 said:

UPDATE:

 

When logging in unRaid WebGUI from another PC, while VM is running and KVM Switch is connected to my unraid setup, it is possible to attach the USB-Hub and Cherry KB/Mouse. -> The problem was, that the KVM USB Hub had to be active and connected to configure the devices in the USB manager plugin...

So is it working as expected now?

  • Author

Yes, it is working. Thanks

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

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.