WSL2 & GPU Operator #7571
Azerothian
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is in insight for anyone trying to use RKE2 on wsl2 with the gpu-operator
NVIDIA/gpu-operator#318
If anyone is trying to use RKE2 as a base, I found that it is forcing the nvidia runtime to use SystemCgroups = true in its container config. But my guess this seems to be failing back to cgroups v1?
Add this to your .wslconfig to force your kernel to use cgroups v2
also unsure as to why but just worked for me patching the nvidia-device-plugin-daemonset to just use the nvidia-device-plugin command fixed the NVML failed to load error
Node Labels
HelmChart
/etc/wsl2.conf
/etc/startup.sh
Not sure if the next part is necessary, i need to test without it
/var/lib/rancher/rke2/agent/etc/containerd/config.toml.tmpl
c:\Users\Profile.wslconfig
also a hint for anyone trying to use longhorn in wsl and having issues (iscsi support is not compiled in to the current kernel) look into compiling and using custom wsl kernels
Beta Was this translation helpful? Give feedback.
All reactions