Vulkan+Nvidia Container Toolkit - Not detected

I’m struggling to run Vulkan dev tools in VMs using Nvidia container toolkit, seems to be related to the ICD file not being in the expected path, and the internal paths it point to being part of the nix store.

So far if I add VK_DRIVER_FILES="/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json" to the nvidia-ctk cdi generate command, it’ll find the file and mount it in the vm (w/o it it doesn’t even mount it), but Vulkan commands inside the VM still cannot find the Nvidia gpu.

It works fine outside of the container so it seems to be FHS related. If anyone managed to make it work I’d love to know how

1 Like