1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-26 03:21:44 +03:00
libvirt/tests/lxcxml2xmldata
ik.nitk c27553b6e2 lxc: Inherit namespace feature
This patch adds feature for lxc containers to inherit namespaces.
This is very similar to what lxc-tools or docker provides.  Look
for "man lxc-start" and you will find that you can pass command
args as [ --share-[net|ipc|uts] name|pid ]. Or check out docker
networking option in which you can give --net=container:NAME_or_ID
as an option for sharing +namespace.

>From this patch you can add extra libvirt option to share
namespace in following way.

 <lxc:namespace>
   <lxc:sharenet type='netns' value='red'/>
   <lxc:shareipc type='pid' value='12345'/>
   <lxc:shareuts type='name' value='container1'/>
 </lxc:namespace>

The netns option is specific to sharenet. It can be used to
inherit from existing network namespace.

Co-authored: Daniel P. Berrange <berrange@redhat.com>
2015-08-26 11:28:30 +01:00
..
lxc-capabilities.xml Domain config: write <features/> if some capabilities are set. 2014-07-30 14:21:55 +02:00
lxc-disk-formats.xml Add 'nbd' as a valid filesystem driver type 2013-05-13 13:15:19 +01:00
lxc-filesystem-ram.xml Allow root directory in filesystem source dir schema 2013-11-07 18:43:15 +01:00
lxc-filesystem-root.xml Allow root directory in filesystem source dir schema 2013-11-07 18:43:15 +01:00
lxc-hostdev.xml Use the network route definitions for domains 2015-01-16 10:14:03 +01:00
lxc-idmap.xml Use the network route definitions for domains 2015-01-16 10:14:03 +01:00
lxc-sharenet.xml lxc: Inherit namespace feature 2015-08-26 11:28:30 +01:00
lxc-systemd.xml virCaps: get rid of emulatorRequired 2013-04-04 22:42:38 +02:00