[SOLVED] usb controller passthru

almiller

Member
Dec 1, 2020
21
0
21
58
I have a usb3 pcie card in a Dell R710 that I'd like to passthru to a Windows guest.

I can't passthru usb devices connected to the pcie card because the Dell isn't recognizing any devices plugged into the card's ports.
(assuming that is because the Dell doesnt support usb3?)

The iommugroup is uniq for the device I want to passthru

Code:
root@proxmox ~ # pvesh get /nodes/proxmox/hardware/pci
┌──────────┬────────┬──────────────┬────────────┬────────┬─────────────────────────────────────────────────────────────┬──────┬──────────────────┬──────
│ class    │ device │ id           │ iommugroup │ vendor │ device_name                                                 │ mdev │ subsystem_device │ subsy
╞══════════╪════════╪══════════════╪════════════╪════════╪═════════════════════════════════════════════════════════════╪══════╪══════════════════╪══════
│ 0x0c0330 │ 0x0014 │ 0000:04:00.0 │         18 │ 0x1912 │ uPD720201 USB 3.0 Host Controller                           │      │ 0x0014           │
└──────────┴────────┴──────────────┴────────────┴────────┴─────────────────────────────────────────────────────────────┴──────┴──────────────────┴──────

But I also see this:
Code:
root@proxmox ~ # dmesg -T | less
....
[Mon Nov 25 08:45:57 2024] DMAR-IR: This system BIOS has enabled interrupt remapping
                           on a chipset that contains an erratum making that
                           feature unstable.  To maintain system stability
                           interrupt remapping is being disabled.  Please
                           contact your BIOS vendor for an update


How do I assign the above USB 3.0 Host Controller to my guest? Would that be

Code:
qm set 112 --hostpci0 host=0000:04:00.0
 
Nevermind, I think I got it working. I also forgot to set the machine type to q35.
I was also able to get the Win10 guest updated to win11.

My pcie USB3 host controller is passed to my guest and I see the 2 usb cameras attached to it now.

Code:
root@proxmox / # qm config 112
bios: ovmf
boot: order=scsi0;ide0;ide2;net0
cores: 4
cpu: x86-64-v2-AES
efidisk0: vmdata:vm-112-disk-2,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:04:00
ide0: local:iso/virtio-win.iso,media=cdrom,size=707456K
ide2: local:iso/Win10_1903_V2_English_x64.iso,media=cdrom,size=5243474K
machine: pc-q35-9.0,viommu=intel
memory: 16384
meta: creation-qemu=9.0.2,ctime=1732548538
name: winbox
net0: virtio=BC:24:11:DB:14:43,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsi0: vmdata:vm-112-disk-0,cache=writeback,discard=on,iothread=1,size=200G
scsi1: vmdata:vm-112-disk-1,cache=writeback,size=100G
scsihw: virtio-scsi-single
smbios1: uuid=95415566-577e-477b-866f-b084b062da32
sockets: 2
tpmstate0: vmdata:vm-112-disk-3,size=4M,version=v2.0
usb0: host=32e4:4689
vmgenid: 1b41e17b-3cec-4546-8637-60f5756a37d1

Screen Shot 2024-11-26 at 19.50.02 PM.png