[SOLVED] Full USB port passthrough not working

8192K

Member
Apr 12, 2024
36
1
8
Hi,

I have a monitor that has several built-in hubs (and a loudspeaker). I connect the monitor using a USB-B 3.0 cable to my Proxmox machine (latest version). I want to passthrough everything the monitor has to offer with regards to USB connectivity.

This is the lsusb -tvv output of the Proxmox machine:
Code:
/:  Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb10  /dev/bus/usb/010/001
/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb9  /dev/bus/usb/009/001
    |__ Port 5: Dev 2, If 0, Class=Wireless, Driver=usbfs, 12M
        ID 8087:0029 Intel Corp. AX200 Bluetooth
        /sys/bus/usb/devices/9-5  /dev/bus/usb/009/002
    |__ Port 5: Dev 2, If 1, Class=Wireless, Driver=usbfs, 12M
        ID 8087:0029 Intel Corp. AX200 Bluetooth
        /sys/bus/usb/devices/9-5  /dev/bus/usb/009/002
    |__ Port 6: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 05e3:0608 Genesys Logic, Inc. Hub
        /sys/bus/usb/devices/9-6  /dev/bus/usb/009/003
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb8  /dev/bus/usb/008/001
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb7  /dev/bus/usb/007/001
    |__ Port 6: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        ID 1462:7c60 Micro Star International
        /sys/bus/usb/devices/7-6  /dev/bus/usb/007/002
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 20000M/x2
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb6  /dev/bus/usb/006/001
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb5  /dev/bus/usb/005/001
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb4  /dev/bus/usb/004/001
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb3  /dev/bus/usb/003/001
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb2  /dev/bus/usb/002/001
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        ID 0bda:0411 Realtek Semiconductor Corp. Hub
        /sys/bus/usb/devices/2-2  /dev/bus/usb/002/002
        |__ Port 3: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
            ID 0bda:0411 Realtek Semiconductor Corp. Hub
            /sys/bus/usb/devices/2-2.3  /dev/bus/usb/002/003
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb1  /dev/bus/usb/001/001
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
        /sys/bus/usb/devices/1-2  /dev/bus/usb/001/002
        |__ Port 3: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
            ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
            /sys/bus/usb/devices/1-2.3  /dev/bus/usb/001/003
            |__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                ID 03f0:094a HP, Inc Optical Mouse [672662-001]
                /sys/bus/usb/devices/1-2.3.1  /dev/bus/usb/001/005
            |__ Port 2: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
                ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
                /sys/bus/usb/devices/1-2.3.2  /dev/bus/usb/001/006
        |__ Port 4: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
            ID 046d:08e5 Logitech, Inc. C920 PRO HD Webcam
            /sys/bus/usb/devices/1-2.4  /dev/bus/usb/001/004
        |__ Port 4: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
            ID 046d:08e5 Logitech, Inc. C920 PRO HD Webcam
            /sys/bus/usb/devices/1-2.4  /dev/bus/usb/001/004
        |__ Port 4: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 480M
            ID 046d:08e5 Logitech, Inc. C920 PRO HD Webcam
            /sys/bus/usb/devices/1-2.4  /dev/bus/usb/001/004
        |__ Port 4: Dev 4, If 3, Class=Audio, Driver=snd-usb-audio, 480M
            ID 046d:08e5 Logitech, Inc. C920 PRO HD Webcam
            /sys/bus/usb/devices/1-2.4  /dev/bus/usb/001/004
        |__ Port 5: Dev 7, If 0, Class=Billboard, Driver=, 480M
            ID 0bda:5418 Realtek Semiconductor Corp.
            /sys/bus/usb/devices/1-2.5  /dev/bus/usb/001/007

Everything regarding the monitor is under Bus2, port 1 and Bus 1, port 1 (why two ports if there is only one cable??). I also wish to forward the internal Bluetooth module (Bus 9, Port 1).

In my VM config I've added

Code:
usb0: host=1-2,usb3=1
usb1: host=2-2,usb3=1
usb2: host=9-5,usb3=1
usb3: host=9-6,usb3=1

However, in the web UI, under "Hardware" it lists those entries as "unplugged".

What's wrong?
 
Yeah, after some searching I found out that you can only either forward specific devices on a given port (no hubs) or use PCI passthrough for entire USB controllers. It's important to NOT check "all functions" or "pci express" in the UI or otherwise the entire system will crash madly.
I have 5 USB controllers, so finding out which one(s) I want to pass through took some trying around, too.
 

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!