From 55cc357b96595a24bf3b8f7d8ae880944c4d7d22 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Sun, 16 Feb 2025 17:07:25 +0100 Subject: [PATCH] Update page.tsx --- .../hardware/igpu-acceleration-lxc/page.tsx | 118 ++++++++++++++++-- 1 file changed, 111 insertions(+), 7 deletions(-) diff --git a/web/app/docs/hardware/igpu-acceleration-lxc/page.tsx b/web/app/docs/hardware/igpu-acceleration-lxc/page.tsx index 92014ef..8833451 100644 --- a/web/app/docs/hardware/igpu-acceleration-lxc/page.tsx +++ b/web/app/docs/hardware/igpu-acceleration-lxc/page.tsx @@ -1,20 +1,124 @@ import type { Metadata } from "next" export const metadata: Metadata = { - title: "HW iGPU acceleration to an LXC | ProxMenux Documentation", - description: "Learn how to enable hardware iGPU acceleration for an LXC container in Proxmox VE using ProxMenux.", + 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 (
-

HW iGPU acceleration to an LXC

+

Enable Intel iGPU in an LXC

- This guide will walk you through the process of enabling hardware iGPU acceleration for an LXC container in - Proxmox VE using ProxMenux. + 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 + + .

- {/* Add more content here */}
) } -