82 lines
4.1 KiB
TypeScript
Raw Normal View History

2025-02-16 17:36:18 +01:00
import { Steps } from "@/components/ui/steps"
2025-03-04 17:37:46 +01:00
import CopyableCode from "@/components/CopyableCode"
import Image from "next/image"
2025-02-16 16:49:04 +01:00
2025-03-04 17:37:46 +01:00
export const metadata = {
title: "Enable Coral TPU in LXC | ProxMenux Documentation",
description: "Step-by-step guide to enable Google Coral TPU support in an LXC container using ProxMenux.",
2025-02-16 16:49:04 +01:00
}
export default function CoralTPULXC() {
return (
<div className="max-w-3xl mx-auto">
2025-03-04 17:37:46 +01:00
<h1 className="text-3xl font-bold mb-6">Enable Coral TPU in an LXC</h1>
2025-02-16 16:49:04 +01:00
<p className="mb-4">
2025-03-04 17:37:46 +01:00
This guide explains how to configure Google Coral TPU support for LXC containers in Proxmox VE using <strong>ProxMenux</strong>.
Coral TPU provides dedicated AI acceleration, improving inference performance for machine learning applications.
2025-02-16 17:36:18 +01:00
</p>
2025-03-04 17:37:46 +01:00
<h2 className="text-2xl font-semibold mt-8 mb-4">Overview</h2>
<p className="mb-4">The script automates the following steps:</p>
2025-02-16 17:36:18 +01:00
<ol className="list-decimal pl-6 space-y-2 mb-6">
2025-03-04 17:37:46 +01:00
<li>Allows selection of an existing LXC container.</li>
<li>Ensures the container is privileged for hardware access.</li>
<li>Configures LXC parameters for Coral TPU and Intel iGPU.</li>
<li>Installs required drivers and dependencies inside the container.</li>
2025-02-16 17:36:18 +01:00
</ol>
2025-03-04 17:37:46 +01:00
<h2 className="text-2xl font-semibold mt-8 mb-4">Implementation Steps</h2>
2025-02-16 17:36:18 +01:00
<Steps>
2025-03-04 17:37:46 +01:00
<Steps.Step title="Select an LXC Container">
<p>The script lists available LXC containers and prompts for selection.</p>
2025-02-16 17:36:18 +01:00
</Steps.Step>
2025-03-04 17:37:46 +01:00
<Steps.Step title="Modify Container Configuration">
<p>The script applies necessary changes to enable Coral TPU:</p>
2025-02-16 17:36:18 +01:00
<ul className="list-disc pl-6 space-y-1 mt-2">
2025-03-04 17:37:46 +01:00
<li>Switches the container to privileged mode if required.</li>
<li>Enables nesting to allow GPU and TPU usage.</li>
<li>Sets device permissions for TPU and iGPU.</li>
<li>Configures proper device mounts.</li>
2025-02-16 17:36:18 +01:00
</ul>
</Steps.Step>
2025-03-04 17:37:46 +01:00
<Steps.Step title="Install Required Drivers">
<p>The script installs the necessary components inside the container:</p>
2025-02-16 17:36:18 +01:00
<ul className="list-disc pl-6 space-y-1 mt-2">
2025-03-04 17:37:46 +01:00
<li>GPU drivers (va-driver-all, intel-opencl-icd).</li>
<li>Coral TPU dependencies (Python, GPG keys, repository setup).</li>
<li>Coral TPU drivers (USB and M.2 support).</li>
2025-02-16 17:36:18 +01:00
</ul>
</Steps.Step>
2025-03-04 17:37:46 +01:00
<Steps.Step title="Select Coral TPU Driver Version">
<p>If a Coral M.2 device is detected, the script prompts the user to select:</p>
<ul className="list-disc pl-6 space-y-1 mt-2">
<li><strong>Standard mode</strong> - balanced performance.</li>
<li><strong>Maximum performance mode</strong> - higher speed, increased power usage.</li>
</ul>
2025-02-16 17:36:18 +01:00
</Steps.Step>
</Steps>
2025-03-04 17:37:46 +01:00
<h2 className="text-2xl font-semibold mt-8 mb-4">Expected Results</h2>
2025-02-16 17:36:18 +01:00
<ul className="list-disc pl-6 space-y-2 mb-6">
2025-03-04 17:37:46 +01:00
<li>The selected container is correctly configured for TPU and iGPU usage.</li>
<li>Required drivers and dependencies are installed inside the container.</li>
<li>The container will restart as needed during the process.</li>
<li>After completion, applications inside the container can utilize Coral TPU acceleration.</li>
2025-02-16 17:36:18 +01:00
</ul>
2025-03-04 17:37:46 +01:00
<h2 className="text-2xl font-semibold mt-8 mb-4">Important Considerations</h2>
2025-02-16 17:36:18 +01:00
<ul className="list-disc pl-6 space-y-2 mb-6">
2025-03-04 17:37:46 +01:00
<li>The script supports both USB and M.2 Coral TPU devices.</li>
<li>The container must be privileged to access TPU hardware.</li>
<li>The Proxmox host must have the required Coral TPU and Intel GPU drivers installed.</li>
<li>Additional application-specific configurations may be required inside the container.</li>
2025-02-16 17:36:18 +01:00
</ul>
2025-03-04 17:37:46 +01:00
2025-02-16 17:36:18 +01:00
<p className="mt-6 italic">
2025-03-04 17:37:46 +01:00
By using ProxMenux, Coral TPU and iGPU support can be enabled in LXC containers efficiently, avoiding manual configuration steps.
2025-02-16 16:49:04 +01:00
</p>
</div>
)
}