[lxc-devel] [PATCH 0/2] Adding devices to a running container

Stéphane Graber stgraber at ubuntu.com
Thu Nov 22 23:08:10 UTC 2012


Changes to add a new lxc-device command.
This extands the python API to add a add_device() function to the Container
object.

lxc-device then uses that function to let you add new devices to a container
at run time. It'll create the device node in the container matching the one
on the host and will add the required entry in the cgroup whitelist.

Stéphane Graber (2):
  python: Add add_device() function
  python: Add new lxc-device tool

 src/lxc/Makefile.am            |  1 +
 src/lxc/lxc-device             | 59 ++++++++++++++++++++++++++++++++++++++++
 src/python-lxc/lxc/__init__.py | 61 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 121 insertions(+)
 create mode 100644 src/lxc/lxc-device

-- 
1.8.0





More information about the lxc-devel mailing list