VFIO Setup, since Kernel update to 6.8 not able to boot VM, bootable when blacklisting amdgpu?

Hey guys, this can be set to solve i solved it.

i wrote my findings in another post withsomeone who had the same issue: https://forums.linuxmint.com/viewtopic.php?p=2505517#p2505517

i found a guide that helped me out a ton:

what i did:

in terminal : sudo nano /etc/initramfs-tools/scripts/init-top/vfio.sh

#!/bin/sh

PREREQ=""

prereqs()
{
   echo "$PREREQ"
}

case $1 in
prereqs)
   prereqs
   exit 0
   ;;
esac

for dev in 0000:0c:00.0 0000:0c:00.1 
do 
 echo "vfio-pci" > /sys/bus/pci/devices/$dev/driver_override 
 echo "$dev" > /sys/bus/pci/drivers/vfio-pci/bind 
done

exit 0

change the “for dev in 0000:0c:00.0 0000:0c:00.1” for your own PCI Bus.

also what else i added:

mokura@pro-gamer:~$ cat /etc/modules-load.d/vfio-pci.conf
vfio-pci
mokura@pro-gamer:~$ cat /etc/modprobe.d/vfio.conf
options vfio-pci ids=1002:744c
softdep radeon pre: vfio-pci
softdep amdgpu pre: vfio-pci
softdep efifb pre: vfio-pci
softdep drm pre: vfio-pci


mokura@pro-gamer:~$ cat /etc/modules
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
mokura@pro-gamer:~$ 

your /etc/default/grub should have your IDs aswell:

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt vfio-pc.ids=1002:744c splash"
where 1002:744c is the ID for the gpu you want to passthrough.

2 Likes