This message was deleted.
# k3s
a
This message was deleted.
c
is the binary in the expected location when k3s starts?
a
Expected by k3s?
I am not sure what that location would be, its at the location the ubuntu syspackage installs to
c
it expects it to be in one of the directories in the PATH env var for the k3s service.
a
copy, I think I can make that happen if I work out where it's installed
a
Copy code
/usr/bin/nvidia-container-runtime
Copy code
echo PATH=$PATH >> /etc/default/k3s-agent
Correct?
c
that’d do it
assuming it is in the path for your running shell
/usr/bin should be in the default path though…
1
a
are there logs that might be able to spit out what paths it's checking?
c
yes, it’ll print that out if you run it with
--debug
cli flag or
debug: true
in the config file
a
Copy code
root@gaia:/home/stanner# ls /var/lib/rancher/k3s/agent/containerd/
bin                               io.containerd.grpc.v1.introspection  io.containerd.snapshotter.v1.btrfs           io.containerd.snapshotter.v1.stargz
containerd.log                    io.containerd.metadata.v1.bolt       io.containerd.snapshotter.v1.fuse-overlayfs  lib
io.containerd.content.v1.content  io.containerd.runtime.v1.linux       io.containerd.snapshotter.v1.native          tmpmounts
io.containerd.grpc.v1.cri         io.containerd.runtime.v2.task        io.containerd.snapshotter.v1.overlayfs
This is post reboot. Indicating to me it wasn't detected.
--debug on install?
c
why are you looking for a directory there as an indicator that it worked?
https://docs.k3s.io/advanced#alternative-container-runtime-support
Confirm that the nvidia container runtime has been found by k3s:
grep nvidia /var/lib/rancher/k3s/agent/etc/containerd/config.toml
a
Right, that file isn't there so if it isn't here how can the word
nvidia
be in it?
c
there is nothing on that page about looking at the directories in /var/lib/rancher/k3s/agent/containerd/
💯 1
a
ah etc?
c
yes. you’re not looking at the correct path. You can copy-paste the command if that helps…
a
This is totally my bad
I was missreading the docs last night
🤦
thank you
🙇