How to install Coral M.2 PCI passthrough for Frigate

vendo232

Member
Dec 16, 2021
11
1
6
47
Code:
apt install pve-headers


apt-get install --reinstall gasket-dkms ( this does not work in latest PROXMOX 8 ) 


GASKET-DKMS installation in Proxmox 8


apt remove gasket-dkms
apt install git
apt install devscripts
apt install dh-dkms


In HOME


git clone https://github.com/google/gasket-driver.git
cd gasket-driver/
debuild -us -uc -tc -b
cd..
dpkg -i gasket-dkms_1.0-18_all.deb


apt update && apt upgrade

reboot


Coral Drivers


echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list


curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -


apt-get update


apt-get install gasket-dkms libedgetpu1-std


sh -c "echo 'SUBSYSTEM==\"apex\", MODE=\"0660\", GROUP=\"apex\"' >> /etc/udev/rules.d/65-apex.rules"


groupadd apex


adduser $USER apex




lspci -nn | grep 089a


    03:00.0 System peripheral: Device 1ac1:089a




ls /dev/apex_0
    /dev/apex_0


nano /etc/default/grub


GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"


update-grub              -     to finalize changes


nano /etc/modules


vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd


reboot

after reboot add Coral as PCI Hardware to your VM.
 
Last edited:
  • Like
Reactions: weehooey
Hi. I seem to be having problems with my Coral TPU not being detected in my Ubuntu VM. It was working but seems to have broken after an update.

In your script above - do all those commands need to be done in Proxmox, or are some of them in the VM?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!