]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add support for forcing a private network namespace for LXC guests
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 18 Jan 2012 11:38:49 +0000 (11:38 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 15 Mar 2012 17:00:39 +0000 (17:00 +0000)
commit10a8b1f9585d7414d6d3a2571fffc5d699c4576b
treef0c4eb5bcc981901b71af753ad053bd09bfab07e
parent59d0c9801c1ab536c3dd0502351829bd6a9bd80f
Add support for forcing a private network namespace for LXC guests

If no <interface> elements are included in an LXC guest XML
description, then the LXC guest will just see the host's
network interfaces. It is desirable to be able to hide the
host interfaces, without having to define any guest interfaces.

This patch introduces a new feature flag <privnet/> to allow
forcing of a private network namespace for LXC. In the future
I also anticipate that we will add <privuser/> to force a
private user ID namespace.

* src/conf/domain_conf.c, src/conf/domain_conf.h: Add support
  for <privnet/> feature. Auto-set <privnet> if any <interface>
  devices are defined
* src/lxc/lxc_container.c: Honour request for private network
  namespace
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_container.c