meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vm:proxmox:lxc:google_coral [2024/12/08 11:18] – niziak | vm:proxmox:lxc:google_coral [2024/12/08 16:06] (current) – niziak | ||
---|---|---|---|
Line 25: | Line 25: | ||
* Most solution on Internet provides workarounds: | * Most solution on Internet provides workarounds: | ||
* ugly and unsafe solution like:'' | * ugly and unsafe solution like:'' | ||
- | * still unsafe using LXC idmap to give access to '' | + | * still unsafe using '' |
* one time solution - like '' | * one time solution - like '' | ||
* this solution cannot survive lots of scenarios (udev reload, usb reset, usb cable reconnect) | * this solution cannot survive lots of scenarios (udev reload, usb reset, usb cable reconnect) | ||
Line 86: | Line 86: | ||
===== ERROR: Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied) ===== | ===== ERROR: Unable to poll intel GPU stats: Failed to initialize PMU! (Permission denied) ===== | ||
- | The container lacks the necessary permissions to access the performance monitoring unit. | + | This error is " |
+ | Rendering on ''/ | ||
+ | Frigate wants this to show GPU usage statistics. | ||
- | Reproduce: | + | Reproduce |
<code bash> | <code bash> | ||
# apt install intel-gpu-tools | # apt install intel-gpu-tools | ||
Line 94: | Line 96: | ||
Failed to initialize PMU! (Permission denied) | Failed to initialize PMU! (Permission denied) | ||
</ | </ | ||
+ | |||
+ | Host Kernel prevents access to performance events subsystem for unprivileged users. Security level is controller by sysctl: | ||
+ | <code bash> | ||
+ | # sysctl kernel.perf_event_paranoid | ||
+ | kernel.perf_event_paranoid = 4 | ||
+ | </ | ||
+ | |||
+ | where values: | ||
+ | * '' | ||
+ | * ''> | ||
+ | * ''> | ||
+ | * ''> | ||
+ | |||
+ | <code bash> | ||
+ | sysctl --write kernel.perf_event_paranoid=NEWVALUE | ||
+ | </ | ||
+ | |||
+ | I suppose this is not possible to use unpriv LXC and enable '' | ||
+ | It works when <code bash> | ||
+ | |||
+ | When Frigate is running and performance events are accessible in LXC, command <code bash> | ||
+ | |||
+ | {{: | ||
===== references ===== | ===== references ===== |