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 (

Enable Intel iGPU in an LXC

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.

🔹 What This Script Does

🛠️ Prerequisites

⚙️ How to Use

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.

🔧 Script Breakdown

1️⃣ Select an LXC Container

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.

2️⃣ Validate and Stop the Container

Before applying modifications, the script ensures that the container is stopped. If it is running, it is automatically stopped to prevent conflicts.

3️⃣ Configure the LXC Container

The script modifies the container configuration file (`/etc/pve/lxc/[ID].conf`) to:

4️⃣ Install iGPU Drivers

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`.

🎯 Expected Outcome

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.

📌 Notes

📖 Additional Resources

If you encounter issues or have suggestions, consider contributing to the ProxMenux GitHub repository .

) }