When starting VM with the iGPU the whole system crashes (AMD iGPU Passtrough)

Nic_

Member
Jan 5, 2022
35
1
13
17
Austria
PVE: 8.0.4

(from neofetch)
CPU: AMD Ryzen 9 7950X3D (32) @ 4.200GHz
GPU: AMD ATI 0b:00.0 Raphael

What I did:
1. Added quiet amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction to /etc/default/grub
2. Added these modules to /etc/modules
Code:
 vfio
 vfio_iommu_type1
 vfio_pci
 vfio_virqfd
3. Added these lines into a .conf file in /etc/modprobe.d:
Code:
blacklist amdgpu
blacklist radeon
options vfio_iommu_type1 allow_unsafe_interrupts=1
options vfio-pci ids=0000:0b:00.0
4. Added this PCI Device config to the VM:
1699045394617.png

This is the output for the iGPU when I do lspci -nnk:
Code:
0b:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c9)
        Subsystem: ASUSTeK Computer Inc. Raphael [1043:8877]
        Kernel modules: amdgpu

The VM is a Windows 10 VM and when I start it whole PVE crashes
If you need logs just tell me please

Thanks :)
 
Whats the output of pvesh get /nodes/{nodename}/hardware/pci --pci-class-blacklist ""? When your iGPU is sharing a IOMMU group with other devices and you start that VM all other devices will be removed from the host and passed through as well. If things like SATA controllers are in there it will then of cause crash the host.
 
Whats the output of pvesh get /nodes/{nodename}/hardware/pci --pci-class-blacklist ""? When your iGPU is sharing a IOMMU group with other devices and you start that VM all other devices will be removed from the host and passed through as well. If things like SATA controllers are in there it will then of cause crash the host.
No device shares the IOMMU group with the iGPU.
 

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!