import type { Metadata } from "next" export const metadata: Metadata = { title: "Add HW iGPU acceleration to an LXC | ProxMenux Documentation", description: "Learn how to configure Intel iGPU acceleration for an LXC container in Proxmox VE using ProxMenux. This guide covers the setup process, required modifications, and driver installation.", } export default function IGPUAccelerationLXC() { return (
This guide explains how to enable Intel Integrated GPU (iGPU) support in LXC containers within Proxmox VE using ProxMenux. The script automates the configuration, ensuring the container has access to GPU resources for hardware-accelerated tasks such as video transcoding, rendering, and OpenCL applications.
To enable Intel iGPU support for an LXC container, run the following command from ProxMenux:
./proxmenux.sh --enable-igpu
This will launch an interactive menu where you can select an LXC container. The script will then apply the necessary configurations and install required drivers.
The script lists all available LXC containers and allows the user to choose one. If no container is selected or available, it exits with an error.
Before applying modifications, the script ensures that the container is stopped. If it is running, it is automatically stopped to prevent conflicts.
The script modifies the container configuration file (`/etc/pve/lxc/[ID].conf`) to:
The script starts the container and installs essential Intel iGPU drivers, including:
apt-get install -y va-driver-all ocl-icd-libopencl1 intel-opencl-icd vainfo intel-gpu-tools
It also ensures that necessary user permissions are applied for access to `/dev/dri`.
Once the script finishes, the LXC container will have Intel iGPU access enabled, allowing applications inside the container to leverage hardware acceleration for graphics and compute tasks.
If you encounter issues or have suggestions, consider contributing to the ProxMenux GitHub repository .