Erreur32 revisou este gist 6 months ago. Ir para a revisão
Sem alterações
Erreur32 revisou este gist 10 months ago. Ir para a revisão
1 file changed, 96 insertions
[TIPS] Coral PCIe sous Proxmox.md (arquivo criado)
| @@ -0,0 +1,96 @@ | |||
| 1 | + | # Guide rapide Coral PCIe sous Proxmox (Debian 12 VM, kernel 6.x) | |
| 2 | + | ||
| 3 | + | ## 1. Sur l’hôte Proxmox | |
| 4 | + | ||
| 5 | + | ### Activer l’IOMMU (Intel) | |
| 6 | + | ||
| 7 | + | ```bash | |
| 8 | + | nano /etc/default/grub | |
| 9 | + | # Ajoute ou complète : | |
| 10 | + | GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on" | |
| 11 | + | update-grub | |
| 12 | + | reboot | |
| 13 | + | dmesg | grep -e DMAR -e IOMMU | |
| 14 | + | ``` | |
| 15 | + | ||
| 16 | + | ### Passer le Coral PCIe à la VM | |
| 17 | + | ||
| 18 | + | * Proxmox UI : VM > Hardware > Add > PCI Device | |
| 19 | + | * Sélectionne le Coral (Google/Global Unichip Corp.) | |
| 20 | + | * Redémarre la VM | |
| 21 | + | ||
| 22 | + | --- | |
| 23 | + | ||
| 24 | + | ## 2. Sur la VM Debian 12 (console) | |
| 25 | + | ||
| 26 | + | ### Installer les outils nécessaires | |
| 27 | + | ||
| 28 | + | ```bash | |
| 29 | + | sudo apt update | |
| 30 | + | sudo apt install build-essential git dkms devscripts dh-dkms linux-headers-$(uname -r) | |
| 31 | + | ``` | |
| 32 | + | ||
| 33 | + | ### Compiler et installer le driver Coral (gasket/apex) | |
| 34 | + | ||
| 35 | + | ```bash | |
| 36 | + | cd /root # ou /home ou dossier de travail | |
| 37 | + | git clone https://github.com/google/gasket-driver.git | |
| 38 | + | cd gasket-driver | |
| 39 | + | debuild -us -uc -tc -b | |
| 40 | + | cd .. | |
| 41 | + | sudo dpkg -i gasket-dkms_*.deb | |
| 42 | + | sudo dkms autoinstall | |
| 43 | + | sudo modprobe gasket | |
| 44 | + | sudo modprobe apex | |
| 45 | + | ls /dev/apex* | |
| 46 | + | dmesg | grep -E 'gasket|apex' | |
| 47 | + | ``` | |
| 48 | + | ||
| 49 | + | → Tu dois voir `/dev/apex_0` | |
| 50 | + | → Si oui, Coral prêt à l’usage. | |
| 51 | + | ||
| 52 | + | ### (Optionnel) Charger les modules au boot | |
| 53 | + | ||
| 54 | + | ```bash | |
| 55 | + | echo -e "gasket\napex" | sudo tee -a /etc/modules | |
| 56 | + | ``` | |
| 57 | + | ||
| 58 | + | --- | |
| 59 | + | ||
| 60 | + | ## 3. Docker (Frigate/Viseron) | |
| 61 | + | ||
| 62 | + | * Ajoute le device Coral à ton `docker-compose.yml` : | |
| 63 | + | ||
| 64 | + | ```yaml | |
| 65 | + | devices: | |
| 66 | + | - /dev/apex_0:/dev/apex_0 | |
| 67 | + | ``` | |
| 68 | + | ||
| 69 | + | --- | |
| 70 | + | ||
| 71 | + | ## 4. Nettoyer et gagner de la place (bonus) | |
| 72 | + | ||
| 73 | + | ```bash | |
| 74 | + | sudo apt autoremove --purge | |
| 75 | + | sudo apt clean | |
| 76 | + | sudo docker system prune -a | |
| 77 | + | ``` | |
| 78 | + | ||
| 79 | + | --- | |
| 80 | + | ||
| 81 | + | ## 5. Déplacer Docker sur /home (si besoin) | |
| 82 | + | ||
| 83 | + | ```bash | |
| 84 | + | systemctl stop docker | |
| 85 | + | mv /var/lib/docker /home/docker | |
| 86 | + | ln -s /home/docker /var/lib/docker | |
| 87 | + | systemctl start docker | |
| 88 | + | ``` | |
| 89 | + | ||
| 90 | + | --- | |
| 91 | + | ||
| 92 | + | ## Notes | |
| 93 | + | ||
| 94 | + | * Plex n’utilise pas Coral. | |
| 95 | + | * Le Coral PCIe fonctionne une fois `/dev/apex_0` visible. | |
| 96 | + | * Tout se fait | |
Próximo
Anterior