Error running privileged L4T containers with the NVidia Runtime on JetPack 5.0 Developer Preview

Hi, all

We found a way to run --privileged and --runtime nvidia together.
Please edit the following file and comment out the /dev/nvhost-as-gpu.

/etc/nvidia-container-runtime/host-files-for-container.d/l4t.csv

dev, /dev/fb0
dev, /dev/fb1
#dev, /dev/nvhost-as-gpu
dev, /dev/nvhost-ctrl
...

Although the node is commented out, you can still access it within the docker.
We tested a CUDA sample and it can run normally.

Please note that if you run the container without --privileged, the full l4t.csv is required.
If any issue occurs after applying this workaround, please let us know.

Thanks.

5 Likes