PCIe USB Controller card passthrough.

edd666999

New Member
Dec 21, 2023
2
0
1
System Hardware:

CPU: Epyc 7532
RAM: 128GB DDR4-3200 ECC
MOBO: SuperMicro H11ssl rev2
PCI-e Devices: RTX 2060, SAS2008 x2, Sonnet USB3-PRO-4P10-E USB 3.1 (4port Dual Controller), Hyper m.2 Gen4.

Proxmox 8.1.3
Ive got Truenas setup and functioning.

I'm attempting to setup a windows VM, managed to get GPU passthrough working perfectly following various forums posts, Thanks!

I'm struggling to get my Sonnet USB3-PRO-4P10-E USB 3.1 PCIe card to pass through and function. Windows sees it but Code 43's it.

Bare with me I'm at the beginning of my uphill journey to use Linux:D


86:00.0 USB controller: ASMedia Technology Inc. ASM2142/ASM3142 USB 3.1 Host Controller (prog-if 30 [XHCI])
Subsystem: Sonnet Technologies, Inc. ASM2142/ASM3142 USB 3.1 Host Controller
Flags: fast devsel, IRQ 159, IOMMU group 15
Memory at f1300000 (64-bit, non-prefetchable) [size=32K]
Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [68] MSI-X: Enable- Count=8 Masked-
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [200] Secondary PCI Express
Capabilities: [300] Latency Tolerance Reporting
Kernel driver in use: vfio-pci
Kernel modules: xhci_pci

87:00.0 USB controller: ASMedia Technology Inc. ASM2142/ASM3142 USB 3.1 Host Controller (prog-if 30 [XHCI])
Subsystem: Sonnet Technologies, Inc. ASM2142/ASM3142 USB 3.1 Host Controller
Flags: fast devsel, IRQ 160, IOMMU group 15
Memory at f1200000 (64-bit, non-prefetchable) [size=32K]
Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [68] MSI-X: Enable- Count=8 Masked-
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [200] Secondary PCI Express
Capabilities: [300] Latency Tolerance Reporting
Kernel driver in use: vfio-pci
Kernel modules: xhci_pci

I believe this is correct based of when passing my GPU though? Kernal driver as vfio-pci.

blacklist nouveau
blacklist nvidia
blacklist ASMedia

I added ASMedia to /etc/modprobe.d/blacklist.conf but not sure if that was correct, again just going from GPU passthrough.

I added options vfio-pci ids=1b21:2142 to /etc/modprobe.d/vfio.conf I believe this is so Proxmox doesn't grab it before the VM? I've read this should be needed?

/etc/pve/qemu-server/101.conf

bios: ovmf
boot: order=scsi0;ide0
cores: 16
cpu: host,hidden=1,flags=+pcid
efidisk0: local-zfs:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
hostpci0: 0000:81:00,pcie=1
hostpci1: 0000:86:00,pcie=1
machine: q35
memory: 32768
meta: creation-qemu=8.1.2,ctime=1702443988
name: Win10-1
net0: e1000=BC:24:11:8D:3E:B7,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local-zfs:vm-101-disk-1,iothread=1,size=256G
scsihw: virtio-scsi-single
smbios1: uuid=0f84fe4f-b812-4eb3-ad4c-3c26e2d5669f
sockets: 1
vga: none
vmgenid: 39df05dc-91a6-48af-b8a8-16463779bb1b



hostpci0: 0000:81:00,pcie=1 is the GPU
hostpci1: 0000:86:00,pcie=1 is one of the ASM2142/ASM3142 USB 3.1 Host Controllers

If it makes a difference, when I try to boot the machine with a usb drive in this PCIe card it attempts to boot from it.

Any advice would be most appreciated!
 
There are some USB controllers that are known to work but you have to make sure that the manufacturer did no change the hardware without notice. Search this forum and the level1techs VFIO forum for suggestions.
 
  • Like
Reactions: edd666999

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!