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):