[libvirt] [PATCH 0/3] LXC guest network device name changes

Richard Weinberger richard.weinberger at gmail.com
Wed Jul 2 21:00:22 UTC 2014


On Wed, Jul 2, 2014 at 3:57 PM, Cédric Bosdonnat <cbosdonnat at suse.com> wrote:
> This patch series allows users to configure the network device name in the
> LXC container. I intentionaly didn't allow this for hostdev net interfaces
> as the NIC would be returned with a different name to the host and we have
> no way to guess under what name it was returned to the host namespace.
>
> This will help filling the feature gap with LXC WRT network configuration.

We need this feature because you want to change the interface name and drop
CAP_NET_ADMIN?

> Cédric Bosdonnat (3):
>   lxc network configuration allows setting target container NIC name
>   lxc conf2xml: convert lxc.network.name for veth networks
>   lxc network device names change documentation
>
>  docs/formatdomain.html.in                          | 17 +++++++++++++
>  docs/schemas/domaincommon.rng                      | 17 +++++++++++++
>  src/conf/domain_conf.c                             | 27 ++++++++++++++++++++
>  src/conf/domain_conf.h                             |  2 ++
>  src/lxc/lxc_container.c                            | 29 +++++++++++++++++++---
>  src/lxc/lxc_native.c                               | 22 +++++++++++-----
>  src/lxc/lxc_process.c                              | 25 +++++++++++++++++++
>  .../lxcconf2xmldata/lxcconf2xml-physnetwork.config |  1 +
>  tests/lxcconf2xmldata/lxcconf2xml-simple.xml       |  1 +
>  tests/lxcxml2xmldata/lxc-idmap.xml                 |  1 +
>  10 files changed, 132 insertions(+), 10 deletions(-)
>
> --
> 1.8.4.5
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list



-- 
Thanks,
//richard




More information about the libvir-list mailing list