Installing `nvidia-smi` in a Fedora container with Ubuntu host

Hi,

I’m encountering issues installing nvidia-smi into a Fedora 42 container while it is running on an Ubuntu host. It works when I do it on my Fedora 42 host. I suspect it is the leaking of uname version information across the boundary that makes the akmod infrastructure fail to build. Is there some other way to get nvidia-smi into a Fedora container? Perhaps splitting the tools from the driver package would help?

FWIW, I get similar failures when using the official NVIDIA repositories.

Thanks!