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.

Passing USB devices to a VM

Featured Replies

Running ubuntu 22.04 on a Celeron N4020 mini-pc. I set up a VM using KVM virtual Machine Manager. I am having trouble attaching needed USB devices to it. there are 4 USB ports, two each USB2 and 3. I can attach 3 devices (002, 003, and 004 in attached file) but when I try to attach a 4th device Manager says "no free ports." Can I fix that? I need to attach the bluetooth, which is internal to the pc and the USB device listed under IMC Networks. Thanks for any help.

usb and pci.PNG

Solved by SimonF

This is an Unraid forum, suggest you look for an Ubuntu forum to have a better chance of getting some help.

  • Solution
12 hours ago, modernhistorian said:

Running ubuntu 22.04 on a Celeron N4020 mini-pc. I set up a VM using KVM virtual Machine Manager. I am having trouble attaching needed USB devices to it. there are 4 USB ports, two each USB2 and 3. I can attach 3 devices (002, 003, and 004 in attached file) but when I try to attach a 4th device Manager says "no free ports." Can I fix that? I need to attach the bluetooth, which is internal to the pc and the USB device listed under IMC Networks. Thanks for any help.

usb and pci.PNG

Standard USB has only 4 ports so you may need to change the driver and one is the root port so only 3 usable.

 

Change to use xhci driver to see if that helps.

 

-device '{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pcie.0","addr":"0x7"}' 

or Libvirt

<controller type='usb' index='0' model='qemu-xhci' ports='15'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</controller>

 

Edited by SimonF

  • Author
6 hours ago, SimonF said:

Standard USB has only 4 ports so you may need to change the driver and one is the root port so only 3 usable.

 

Change to use xhci driver to see if that helps.

 

-device '{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pcie.0","addr":"0x7"}' 

or Libvirt

<controller type='usb' index='0' model='qemu-xhci' ports='15'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</controller>

 

I went to Controller USB 0 (stopped the VM first) and changed the dropdown to USB3. Looking at the XML, it was as you wrote above. Restarted the VM and was able to add my bluetooth. Thank you very much, and Merry Christmas!

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.