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 (

Enable Coral TPU in an LXC

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.

Overview

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.

Implementation Steps

The script lists available LXC containers and prompts for selection.

The script applies necessary changes to enable Coral TPU:

  • Switches the container to privileged mode if required.
  • Enables nesting to allow GPU and TPU usage.
  • Sets device permissions for TPU and iGPU.
  • Configures proper device mounts.

The script installs the necessary components inside the container:

  • GPU drivers:
    • va-driver-all
    • ocl-icd-libopencl1
    • intel-opencl-icd
    • vainfo
    • intel-gpu-tools
  • Coral TPU dependencies:
    • python3
    • python3-pip
    • python3-venv
    • gnupg
    • curl
  • Coral TPU drivers:
    • libedgetpu1-std (standard performance)
    • libedgetpu1-max (maximum performance, optional)

If a Coral M.2 device is detected, the script prompts the user to select:

  • Standard mode - balanced performance.
  • Maximum performance mode - higher speed, increased power usage.

Expected Results

Important Considerations

) }