I have been using so far ubuntu 18.04 as host while my containers were either 16.04 or 18.04.
To get nvidia+opengl working in the containers I had to install the same nvidia drivers I had on the host (plus the right profile).
So far, so good even though I would like to get rid of the drivers installation.
Still using 18.04 as host, lxd 3.11 (snap) I am trying to get the nvidia+opengl working by using the nvidia runtime.
I have two test containers: a 18.04 and a 16.04, both of them have
- nvidia.runtime “true”
- nvidia.driver.capabilities “compute, display, graphics, utility, video”
The 18.04 container works, I can run opengl applications
The 16.04 container does not work (nvidia-smi works), it seems to have only the opengles/egl libraries while the opengl are missing.
I don’t really have a clear idea if it is a configuration issue or something else, I could not find much online.
Any pointer would be helpful,