Skip to content

Instantly share code, notes, and snippets.

@TechHutTV
Last active November 26, 2025 21:29
Show Gist options
  • Select an option

  • Save TechHutTV/ed8ded82d8bd27b024a01f37c248f20b to your computer and use it in GitHub Desktop.

Select an option

Save TechHutTV/ed8ded82d8bd27b024a01f37c248f20b to your computer and use it in GitHub Desktop.
Passthrough Intel GPU to Unprivileged Proxmox LXC

IOMMU and iGPU to Passthrough PCI into VM/CT

Source: hiepchau.net

1. Edit the grub configuration

nano /etc/default/grub

2. Active IOMMU and iGPU

# GRUB_CMDLINE_LINUX_DEFAULT="quiet" <- replace this line
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"

3. Update grub

update-grub

4. Edit modules file

nano /etc/modules
# Modules required for PCI passthrough
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

5. Update the configuration changes

update-initramfs -u -k all

6. Reboot

Passthrough iGPU into LXC and activate Plex HW Transcode

1. Verify that iGPU is detected in the Proxmox Server

lspci -nnv | grep VGA

2. Check IDs

ls -l /dev/dri

card0

  • major: 226
  • minor: 0

renderD128

  • major: 226
  • minor: 128

3. Open the LXC configuration and add the below to the config

nano /etc/pve/lxc/<ID>.conf
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file 0, 0
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir

4. Restart and verify

Restart the container. Once it reboots login and check to see if it is working. I like to do this by installing intel-gpu-tools and running intel_gpu_top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment