fix ebpf problem

This commit is contained in:
nihilist 2025-04-21 16:00:46 +02:00
parent ec71fb57b1
commit a0735a8b54

View file

@ -434,6 +434,16 @@ Fri Apr 18 20:46:43 2025
| No running processes found |
+---------------------------------------------------------------------------------------+
</code></pre>
<p><u>Sidenote:</u> If you are getting an <a href="https://github.com/NVIDIA/libnvidia-container/issues/176">error</a> at this step (as Nihilist experienced on a <a href="../linux/index.html">Kicksecure Host OS</a>), you may need change the bpf_jit_harden value in sysctl to get it to work:</p>
<pre><code class="nim">
[user ~]% sudo sysctl -w net.core.bpf_jit_harden=1
[user ~]% sudo vim /etc/sysctl.d/91-nvidia-docker.conf
[user ~]% cat /etc/sysctl.d/91-nvidia-docker.conf
net.core.bpf_jit_harden=1
[user ~]% docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi
</pre></code>
</div>
</div><!-- /row -->