GPU Passthrough for Proxmox LXCs#
What Was Established#
- Intel GPU passthrough to Proxmox LXCs requires both host-side module loading and specific LXC device mounts.
vainfofrequently fails with X11/X server errors in headless containers; this is expected and does not indicate a broken passthrough.intel_gpu_toprequiresi915module loaded on the host and accessible debugfs/sysfs paths inside the container.
Key Decisions#
- Headless VA-API Testing: When
vainforeportserror: can't connect to X server!, set environment variables to bypass X11:export XDG_RUNTIME_DIR=/tmp/runtime-root export LIBVA_DRIVER_NAME=iHD vainfo - Module Verification:
lsmod | grep i915confirms the driver is loaded inside the container. Presence ofi915,drm_buddy,ttm, anddrm_display_helperindicates successful module injection. - Device Access:
intel_gpu_topfailing withNo device filter specified...typically points to missing debugfs mounts or host-sidei915parameters, not necessarily a broken/dev/dri/passthrough.
Current Configuration#
Proxmox LXC Config (/etc/pve/lxc/<container-id>.conf):
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,create=fileHost-Side Requirements:
i915kernel module must be loaded on the Proxmox host (lsmod | grep i915).- For
intel_gpu_topto function inside the LXC, ensuresys/kernel/debugis mounted into the container or passoptions i915 enable_guc=3(or appropriate parameters) on the host kernel.
Historical Notes#
- Conversation dates from 2024–2025. Troubleshooting focused on a Jellyfin LXC container.
vainfoX11 errors were identified as non-fatal for headless hardware acceleration.i915module was confirmed loaded inside the container vialsmod.
Open Questions#
- Host-side
i915kernel parameters required for fullintel_gpu_topfunctionality inside the LXC. - Final verification of Jellyfin QSV hardware encoding/decoding performance post-configuration.
- Whether
sys/kernel/debugmount is necessary forintel_gpu_topor if host-side parameters suffice.
Related Pages#
Sources#
ingested/chats/102-Intel GPU Top Error and Solutions Guide.md- DeepSeek historical conversation (2024–2025)