Install Coral TPU on the Host
Before using Coral TPU inside an LXC container, the drivers must first be installed on the Proxmox VE host. This script automates that process, ensuring the necessary setup is completed.
This guide explains how to install and configure Google Coral TPU drivers on a Proxmox VE host using ProxMenux. This setup enables hardware acceleration for AI-based applications that leverage Coral TPU.
Overview
The script automates the following steps:
- Prompts for confirmation before proceeding with installation.
- Verifies and configures necessary repositories on the host.
- Installs required dependencies for driver compilation.
- Clones the Coral TPU driver repository and builds the drivers.
- Installs the compiled Coral TPU drivers.
- Prompts for a system restart to apply changes.
Implementation Steps
1
Pre-Installation Confirmation
The script prompts the user for confirmation before proceeding, as a system restart is required after installation.
2
Repository Configuration
The script verifies and configures required repositories:
- Adds the pve-no-subscription repository if not present.
- Adds non-free-firmware repositories for required packages.
- Runs an update to fetch the latest package lists.
3
Driver Installation
The script installs and compiles the required drivers:
- Installs dependencies such as git, dkms, devscripts, and kernel headers.
- Clones the gasket-driver repository from Google.
- Builds the Coral TPU driver packages.
- Installs the compiled drivers on the host.
4
Post-Installation Confirmation
The script prompts the user to restart the server to apply the changes.
Expected Results
- The Coral TPU drivers are installed successfully on the Proxmox VE host.
- Required repositories and dependencies are configured properly.
- A system restart is performed to complete the installation.