How do I add an entire USB controller to a VM?

kryptys100

New Member
Jul 26, 2022
7
0
1
Hi everyone! I'm having trouble figuring out how to bind an entire usb controller to a VM, rather than being limited to just 5 usb ports per VM. Any thoughts? If you need any information about my kernel version and such, I'd be more than happy to supply that info, although I don't know how to give it out at the moment. I'm fairly new to this. Thanks a bunch in advance!
 
Hi everyone! I'm having trouble figuring out how to bind an entire usb controller to a VM, rather than being limited to just 5 usb ports per VM. Any thoughts? If you need any information about my kernel version and such, I'd be more than happy to supply that info, although I don't know how to give it out at the moment. I'm fairly new to this. Thanks a bunch in advance!
as Den mentioned IOMMU groups likely limit this.

Can view your groups with shell script :
Bash:
#!/bin/bash
shopt -s nullglob
for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
    echo "IOMMU Group ${g##*/}:"
    for d in $g/devices/*; do
        echo -e "\t$(lspci -nns ${d##*/})"
    done;
done;

^ in my case motherboard lan controller shares group with usb controller - so full passthrough was not possible.

you can however, edit the VMs .conf file to explicitly add additional usb (up to 12 total, despite GUIs limit of 4) as xhci devices.
this thread should help >> https://forum.proxmox.com/threads/increase-maximum-usb-devices-in-vm-conf.26551/page-2
 
as Den mentioned IOMMU groups likely limit this.

Can view your groups with shell script :
Bash:
#!/bin/bash
shopt -s nullglob
for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do
    echo "IOMMU Group ${g##*/}:"
    for d in $g/devices/*; do
        echo -e "\t$(lspci -nns ${d##*/})"
    done;
done;

^ in my case motherboard lan controller shares group with usb controller - so full passthrough was not possible.

you can however, edit the VMs .conf file to explicitly add additional usb (up to 12 total, despite GUIs limit of 4) as xhci devices.
this thread should help >> https://forum.proxmox.com/threads/increase-maximum-usb-devices-in-vm-conf.26551/page-2
Oh ok thank you! I’ll probably try the second one first because that seems easier to me personally. I’ll try those out tomorrow! I’ll get back to you!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!