Passthrough:

kobold81

New Member
Jan 9, 2025
7
0
1
Funny thing, I got passthrough working on pve 9 with win11 by providing a rom file and a file for audio as well as the additional 2 pci devices (number 2 + 3). For Ubuntu and batocera, hostpci 0 + 1 was enough, only windows needed also 2 +3:
Code:
hostpci0: 0000:c7:00.0,pcie=1,romfile=vbios_7xxx.bin,x-vga=1
hostpci1: 0000:c7:00.1,pcie=1,romfile=AMDGopDriver.rom
hostpci2: 0000:c7:00.5,pcie=1
hostpci3: 0000:c7:00.6,pcie=1

I added a second nvme to have a raid 1 and did a reinstall of proxmox and imported the vm backup and recreated the config file changes.
But now, when I start the vm, I get the warning that hostcpi 2 +3 also need to access to more iommu groups. I added these but I fail to have
vfio replace xhci_hcd and xhci_pci:

/etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=1002:1900,1002:1640,1022:15c7,1022:15b9,1022:15ba,1022:15ba,1022:15e2,1022:15e3
softdep radeon pre: vfio-pci
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci
softdep xhci_hcd pre: vfio-pci
softdep xhci_pci pre: vfio-pci
softdep ccp pre: vfio

I fail to replace the drivers for the usb controller c7:00.3 & c7:00.4:
c7:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c7:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ba]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Kernel driver in use: xhci_hcd

I do not understand what changed so that I have to add these hostcpi devices and how I have the machne load & use the vfio-pci driver befpore the xhci_* drivers
 
Last edited:
All the changes made on the host to get the passthrough to work, were lost when you re-installed Proxmox. That includes the rom files which were stored on the host and therefore not backed up as a part o the VM.

You need to follow all the steps which you carried out previously, apart from the changes made to the VM config.