iGPU PCI passthrough with PVE 7.3 (actually working with kernel 6.1)

HeikoGr

New Member
Mar 5, 2023
1
0
1
after realizing my problems with pci passthrough came from the pve kernel i gave the kernel v6.1 a try and got pci passthrough my iGPU working!

i was heavily guided by
in /etc/default/grub replace
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
with
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on i915.enable_gvt=1 iommu=pt pcie_acs_override=downstream,multifunction video=efifb:off video=vesa:off vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 modprobe.blacklist=radeon,nouveau,nvidia,nvidiafb,nvidia-gpu"
  1. install kernel 6.1
    Code:
     sudo apt install pve-kernel-6.1
  2. black list i915 on host, in any conf file below /etc/modprobe.d
    blacklist i915 install i915 /usr/bin/false
  3. in /etc/modules add (yes, i needed kvmgt even if i don't use GVT-g)
    Code:
    # Modules required for PCI passthroughvfio
    vfio_iommu_type1
    vfio_pci
    vfio_virqfd
    
    # Modules required for Intel GVT-g Split
    kvmgt
  4. run
    Code:
    update-grub && update-initramfs -u -k all
  5. reboot host
  6. create VM (the follwing settings worked for me)
    1. machine (hardware): (i440fx)
    2. bios: (ovmf)
    3. add PCI device (with all functions and rom bar)
  7. start vm
  8. run
    Code:
    sudo apt update
    sudo apt upgrade
    sudo apt install build-essentials
  9. run this script: https://gist.github.com/pulsejet/4d81c1356703b2c8ba19c1ca9e6f6e50
    you may safely remove the ffmpeg part

now vainfo worked for me and i can transcode videos in hardware.
 
Last edited:
It works for me.

But the maximum resolution that I am allowed is limited to 1024x768 in my Arch Linux with Gnome.

I can't get it to 1920x1080.

Any solution?
 
Last edited: