LXC Python bindings The latest lxc version (0.9.0) has Python bindings included. You can download the latest version from github or install it from standard repositories on Ubuntu 13.04. If you have chosen to install it from source then dont forget to run configure with --enable-python flag. The library has been written for Python 3. Good example of usage is in the api_test.py file, and following code snippets will show how to create, start, stop and destroy container named test_container . This library requires root permissions, so dont forget to run Python as root. In the following code we instantiate lxc container. import lxc container = lxc.Container(test_container) First we have to import lxc library. Next line instantiates new container with container name test_container . It doesnt have to exist yet, but it can. The constructor can take one more argument called config_path , which is a path to the configuration file for the container. If it ...