iGPU passthrough
Tutorial inspired by this one
Enable VGA card UEFI with ZFS
-
Connect to Proxmox with SSH or via SHELL
-
Edit the kernel cmdline file
Appendquiet intel_iommu=on iommu=pt
to the line, you should obtain something like this : -
Update the modules file
Add this to the file : You should obtain something like this :root@pve:~# cat /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. vfio vfio_iommu_ype1 vfio_pci vfio_virqfd
-
Refresh the efi boot file
pve-efiboot-tool refresh
root@pve:~# pve-efiboot-tool refresh Running hook script 'proxmox-auto-removal'.. Running hook script 'zz-proxmox-boot'.. Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace.. Copying and configuring kernels on /dev/disk/by-uuid/5EBA-2B61 Copying kernel and creating boot-entry for 6.2.16-19-pve Copying kernel and creating boot-entry for 6.5.11-4-pve Removing old version 6.2.16-3-pve Copying and configuring kernels on /dev/disk/by-uuid/5EBA-9A63 Copying kernel and creating boot-entry for 6.2.16-19-pve Copying kernel and creating boot-entry for 6.5.11-4-pve Removing old version 6.2.16-3-pve
-
Reboot the system
-
Verify that IOMMU is enabled
dmesg | grep -e DMAR -e IOMMU
Configure the iGPU to Ubuntu guest VM
- Create a Ubuntu VM (I've a 22.04.3 LTS one)
Warning
It needs to have at least:
- BIOS: OMVF (UEFI)
- Machine: q35
-
Pass the iGPU from proxmox to the VM
-
Choose the one with
Alder Lake-N [UHD Graphics]
-
Enable some functions
-
Disable the display of the VM
-
Reboot the VM
- Connect to it through SSH
- Install
linux-image-generic-hwe-22.04
- Reboot
- Check that
renderD128
is present
You're good to go !
Last update: 2023-11-25
Created: 2023-11-25
Created: 2023-11-25