Intel® Iris® Plus Graphics 640 GPU passthrough with proxmox and Debian 11 virtual machine
It’s more of a Sybill Trelawney’s art than it is a science. These work on my setup:
################################################instalar drivers
apt-get install i965-va-driver
apt-get install vainfo
################################################testar os mesmos
ls -l /dev/dri
total 0
drwxr-xr-x 2 root root 80 Jan 8 12:20 by-path
crw-rw—- 1 root video 226, 0 Jan 8 12:20 card0
crw-rw—- 1 root render 226, 128 Jan 8 12:20 renderD128
################################################tornar o HW disponivel para ser passado
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=”quiet intel_iommu=on iommu=pt video=efifb:off”
ctrl+x
update-grub
reboot
nano /etc/modprobe.d/blacklist.conf
blacklist radeon
blacklist nouveau
blacklist nvidia
blacklist snd_hda_intel
blacklist snd_hda_codec_hdmi
blacklist i915
ctrl+x
lspci -v
root@proxmox:~# lspci
00:02.0 VGA compatible controller: Intel Corporation Device 4c8a (rev 04)
lspci -n -s 00:02 <-Depende do endereço do comando anterior (lspci) 00:02.0 0300: 8086:4c8a (rev 04) nano /etc/modprobe.d/vfio.conf options vfio-pci ids=8086:4c8a -> vem do comando de cima root@proxmox:~# lspci -n -s 00:02 ——>00:02.0 0300: 8086:4c8a (rev 04)
ctrl+x
echo “options vfio_iommu_type1 allow_unsafe_interrupts=1” > /etc/modprobe.d/iommu_unsafe_interrupts.conf
echo “options kvm ignore_msrs=1” > /etc/modprobe.d/kvm.conf
update-initramfs -u
pvecm updatecerts –force
reboot
add to /etc/modules
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
################################################tornar o HW disponivel para a VM
nano /etc/pve/qemu-server/300.conf <—-O teu id de vm
if your processor > broadewell then, (upt mode)
agent: 1
args: -device vfio-pci,host=00:02.0,addr=0x18,x-vga=on,x-igd-opregion=on
arrancar com a vm instalar novamente os drives, dentro da vm
apt-get install i965-va-driver