import type { Metadata } from "next"
import { Steps } from "@/components/ui/steps"
export const metadata: Metadata = {
title: "Coral TPU to an LXC | ProxMenux Documentation",
description: "Learn how to add Coral TPU support to an LXC container in Proxmox VE.",
}
export default function CoralTPULXC() {
return (
Coral TPU to an LXC
This script automates the process of adding Google Coral TPU (Tensor Processing Unit) support to LXC containers
in Proxmox VE. It configures containers to leverage the power of Coral TPU for AI and machine learning tasks,
significantly accelerating inference operations.
What Does This Script Do?
When executed, this script performs the following actions:
- Presents a list of available LXC containers for selection
- Configures the selected container to support both Coral TPU and Intel iGPU
- Installs necessary drivers and tools inside the container
- Sets up proper permissions and mounts for hardware access
Key Steps
You'll be prompted to select the LXC container you want to enable Coral TPU support for.
The script modifies the container's configuration to allow Coral TPU and iGPU access. This includes:
- Ensuring the container is privileged (for necessary permissions)
- Enabling nesting feature
- Adding device permissions for TPU and GPU access
- Setting up proper mounts for TPU and GPU devices
Inside the container, the script installs required packages:
- GPU drivers (va-driver-all, intel-opencl-icd)
- Coral TPU dependencies and drivers
- Python and necessary libraries
If a Coral M.2 device is detected, you'll be prompted to choose between standard and maximum performance
drivers.
What to Expect
- The script will guide you through the process with clear prompts.
- Your selected container will be stopped briefly during configuration.
- The entire process usually takes a few minutes to complete.
- After completion, your container will be ready to use both Coral TPU and the host's iGPU.
Important Notes
- This script supports both USB and M.2 versions of Coral TPU.
- The container will be changed to privileged mode if it wasn't already.
- Ensure your Proxmox host has the necessary Coral TPU and Intel GPU drivers installed.
-
For M.2 Coral TPUs, you can choose between standard and maximum performance modes. The maximum performance
mode may generate more heat.
- Some applications inside the container may require additional setup to utilize the Coral TPU.
This script simplifies the process of enabling Coral TPU and iGPU acceleration in your LXC containers without
the need for manual configuration file editing or running complex commands. This setup is ideal for AI and
machine learning workloads that can benefit from hardware acceleration.
)
}