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:

  1. Presents a list of available LXC containers for selection
  2. Configures the selected container to support both Coral TPU and Intel iGPU
  3. Installs necessary drivers and tools inside the container
  4. 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

Important Notes

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.

) }