[lxc-users] Canned scripts to demonstrate nvidia proprietary driver in lxc on Ubuntu 12.04

Dan Kegel dank at kegel.com
Fri Apr 25 22:43:43 UTC 2014


I now have a simple pair of scripts that let me run accellerated
opengl apps inside an LXC container on Ubuntu 12.04.

I create the container with
http://kegel.com/linux/lxc-opengl-demo/demo-outer.sh.txt

Then I start it, and run this:
http://kegel.com/linux/lxc-opengl-demo/demo-inner.sh.txt

This does most of the setup, and tells you how to start up the server
with startx.

Thanks to John Lane, whose post
https://lists.linuxcontainers.org/pipermail/lxc-users/2011-April/001817.html
showed all the needed steps; I just updated it slightly for Ubuntu 12.04.

Two remaining mysteries:
- I have to edit /etc/X11/Xwrapper.config for the user to be able to
run startx (otherwise it's upset that the user is on the wrong vt, or
something)
- I couldn't get the mouse working until I added a window manager to
.xinitrc.  Probably user error somehow.

(Now to try creating a buildbot slave using this to run unit tests
that depend on fast opengl!)


More information about the lxc-users mailing list