-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig do Davi
More file actions
118 lines (49 loc) · 1.83 KB
/
config do Davi
File metadata and controls
118 lines (49 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
conferir os repositorios antes de iniciar a instalacao
desativar os enterprise
https://forum.proxmox.com/threads/update-error-with-coral-tpu-drivers.136888/
https://forum.proxmox.com/threads/how-to-install-coral-m-2-pci-passthrough-for-frigate-on-proxmox-8.145557/
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
passthru para o lxc
nano /etc/pve/lxc/101.conf
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file 0, 0
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.cgroup2.devices.allow: c 120:0 rwm
lxc.mount.entry: /dev/apex_0 dev/apex_0 none bind,optional,create=file
lxc.mount.entry: /dev/apex_1 dev/apex_1 none bind,optional,create=file
DAQUI PRA BAIXO SOMENTE SE FOR VM
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