Proxmox LXC iGPU passthrough
I couldn't find any tutorial that worked out for me so i create my own.Code was executed at Lenovo M720q, i5-8500T, Proxmox 8.1.3
Full step by step guide for passthrough intel iGPU for jellyfin and Intel CPU's gen7+
It seems like Firefox has some problems with transcoding movies. It’s recommended to stick with chromium based browsers.
Install the required drivers on the Proxmox host.
		Code:
	
	apt install -y intel-opencl-icdEdit grub
		Code:
	
	nano /etc/default/grubFind the line that starts with GRUB_CMDLINE_LINUX_DEFAULT and change to following:
		Code:
	
	GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on i915.enable_gvt=1"Execute command:
		Code:
	
	update-grubreboot host
Validate changes. It showed IOMMU enabled
		Code:
	
	dmesg | grep -e DMAR -e IOMMUEdit etc modules
		Code:
	
	nano /etc/modules
		Code:
	
	    # Modules required for PCI passthrough
    vfio
    vfio_iommu_type1
    vfio_pci
    vfio_virqfd
    # Modules required for Intel GVT
    kvmgt
    exngt
    Vfio-mdevExecute command:
		Code:
	
	update-initramfs -u -k allYour VGA card should be visible with command
		Code:
	
	lspci -nnv | grep VGAEnable GUC
		Code:
	
	echo "options i915 enable_guc=3" >> /etc/modprobe.d/i915.confCreate LXC container as plivilaged and add parameters to configuration
		Code:
	
	nano /etc/pve/lxc/<container number>.conf
		Code:
	
	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=fileOn LXC container
Update and upgrade system
		Code:
	
	apt update && apt upgrade -yInstall ffmpeg
		Code:
	
	apt install ffmpeg -yInstall software-properties-common
		Code:
	
	apt-get install software-properties-common -yInstall curl and gnupg
		Code:
	
	apt install curl gnupg -yOn Ubuntu (and derivatives) only, enable the Universe repository to obtain all the FFmpeg dependencies
		Code:
	
	add-apt-repository universeDownload the GPG signing key (signed by the Jellyfin Team) and install it
		Code:
	
	mkdir -p /etc/apt/keyrings
curl -fsSL <https://repo.jellyfin.org/jellyfin_team.gpg.key> | sudo gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpgAdd a repository configuration at
		Code:
	
	/etc/apt/sources.list.d/jellyfin.source
		Code:
	
	export VERSION_OS="$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release )"
export VERSION_CODENAME="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )"
export DPKG_ARCHITECTURE="$( dpkg --print-architecture )"
cat <<EOF | tee /etc/apt/sources.list.d/jellyfin.sources
Types: deb
URIs: <https://repo.jellyfin.org/${VERSION_OS}>
Suites: ${VERSION_CODENAME}
Components: main
Architectures: ${DPKG_ARCHITECTURE}
Signed-By: /etc/apt/keyrings/jellyfin.gpg
EOFUpdate your APT repositorie
		Code:
	
	apt updateInstall the Jellyfin metapackage, which will automatically fetch the various sub-packages:
		Code:
	
	apt install jellyfin -yAdd user jellyfin to needed groups
		Code:
	
	usermod -a -G video jellyfin
usermod -a -G render jellyfin
usermod -a -G input jellyfin
usermod -a -G ssl-cert jellyfininstall ffmpeg for jellyfin because for some reason jellyfin ffmpeg doesn't install with in jellyfin install with cause error trying to transcode HEVC
		Code:
	
	apt install jellyfin-ffmpeg -ythese are setting for transcoding in jellyfin (i5-8500T)

			
				Last edited: 
				
		
	
										
										
											
	
										
									
								 
	 
	