[lxc-users] Recipe for running opengl apps inside LXC with proprietary nvidia driver?

Dan Kegel dank at kegel.com
Tue Apr 22 23:20:49 UTC 2014

Does anyone have a recipe for running opengl apps in a container
on a host with an nvidia graphics card yet?

I know the nvidia driver has to be installed and loaded in the host's kernel
(of course).  Where does X have to run -- can it be on the host,
the container, or either?

I can start fooling around given past posts, just wondering if anyone
has summed up the current state of things in an easy to use form.

says it just works (assuming you do a few things)

says it works (assuming you follow a long list of steps)

hints that it works with just a few tweaks

says libvirt does it better

talks about it a bit, and has similar long list of steps

hints at one,
http://www.vislab.uq.edu.au/howto/lxc/nvidia.html shows how to at
least build such apps in the container,
talks about it for vesa,
http://blog.mraw.org/2011/04/05/Running_X_from_LXC/ talks about it for
open source driver
talks about doing it for CUDA

More information about the lxc-users mailing list