import { Steps } from "@/components/ui/steps" import CopyableCode from "@/components/CopyableCode" import Image from "next/image" 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.", } export default function CoralTPULXC() { return (
This guide explains how to configure Google Coral TPU support for LXC containers in Proxmox VE using ProxMenux. Coral TPU provides dedicated AI acceleration, improving inference performance for machine learning applications. It is particularly useful for video surveillance applications with real-time video analysis, such as Frigate or Agent DVR or Blue Iris using CodeProject.AI.
The script automates the complete configuration of Coral TPU support in LXC containers, including USB and M.2 variants. It applies Proxmox-specific container settings, manages device passthrough permissions, and installs required drivers both on the host and inside the container.
The USB variant uses a persistent mapping based on /dev/coral via udev rules, avoiding reliance on dynamic USB paths like /dev/bus/usb/*. This ensures consistent device assignment across reboots and hardware reordering.
The M.2 version is detected automatically and configured only if present.
The script lists available LXC containers and prompts for selection.
The script applies necessary changes to enable Coral TPU:
The script installs the necessary components inside the container:
va-driver-allocl-icd-libopencl1intel-opencl-icdvainfointel-gpu-toolspython3python3-pippython3-venvgnupgcurllibedgetpu1-std (standard performance)libedgetpu1-max (maximum performance, optional)If a Coral M.2 device is detected, the script prompts the user to select:
/dev/coral created by a udev rule. This improves stability and avoids issues with changing USB port identifiers.lspci and configured only if present.