[libvirt] [PATCHv5 00/18] LXC IP configuration feature

Cédric Bosdonnat cbosdonnat at suse.com
Tue Dec 30 10:27:09 UTC 2014


Hi all,

It's time for offering presents, so I'm sending you my updated patch series
for IP configuration in LXC containers.

The changes with v4 include:
  * Replacing the <gateway> element by a <route> one.
  * Addressing the comments you guys made

I didn't forbid the use of iproute2 / ifconfig in containers if built without
libnl, as I'm not sure about the possible consequences. Could it introduce
regressions for some use cases/distros?

Cédric Bosdonnat (18):
  Forgot to cleanup ifname_guest* in domain network def parsing
  virNetDevSetIPv4Address: libnl implementation
  Renamed virNetDevSetIPv4Address to virNetDevSetIPAddress
  virNetDevAddRoute: implementation using netlink
  virNetDevClearIPv4Address: netlink implementation
  Renamed virNetDevClearIPv4Address to virNetDevClearIPAddress
  Domain conf: allow more than one IP address for net devices
  IP doc
  LXC: set IP addresses to veth devices in the container
  lxc conf2xml: convert IP addresses
  Allow network capabilities hostdev to configure IP addresses
  lxc conf2xml: convert ip addresses for hostdev NICs
  Domain network devices can now have a <route> element
  lxc conf2xml: convert lxc.network.ipv[46].gateway
  LXC: use the new net devices routes definition
  LXC: honour network devices link state
  Openvz --ipadd can be provided multiple times
  Report error if a driver can't handle multiple IP addresses

 docs/formatdomain.html.in                          |  46 +++
 docs/schemas/domaincommon.rng                      |  75 ++++-
 src/conf/domain_conf.c                             | 320 ++++++++++++++++++--
 src/conf/domain_conf.h                             |  29 +-
 src/libvirt_private.syms                           |   6 +-
 src/lxc/lxc_container.c                            |  56 +++-
 src/lxc/lxc_native.c                               | 202 +++++++++----
 src/network/bridge_driver.c                        |   4 +-
 src/openvz/openvz_conf.c                           |   2 +-
 src/openvz/openvz_driver.c                         |  11 +-
 src/qemu/qemu_driver.c                             |  26 +-
 src/qemu/qemu_hotplug.c                            |   5 +-
 src/uml/uml_conf.c                                 |   2 +-
 src/util/virnetdev.c                               | 332 ++++++++++++++++++---
 src/util/virnetdev.h                               |  14 +-
 src/util/virnetlink.c                              |  38 +++
 src/util/virnetlink.h                              |   2 +
 src/util/virsocketaddr.h                           |   4 +
 src/vbox/vbox_common.c                             |  16 +-
 src/xenconfig/xen_common.c                         |  29 +-
 src/xenconfig/xen_sxpr.c                           |  26 +-
 .../lxcconf2xmldata/lxcconf2xml-physnetwork.config |   4 +
 tests/lxcconf2xmldata/lxcconf2xml-physnetwork.xml  |   4 +
 tests/lxcconf2xmldata/lxcconf2xml-simple.config    |   4 +
 tests/lxcconf2xmldata/lxcconf2xml-simple.xml       |   4 +
 tests/lxcxml2xmldata/lxc-hostdev.xml               |   4 +
 tests/lxcxml2xmldata/lxc-idmap.xml                 |   4 +
 tests/openvzutilstest.c                            |   2 +-
 tests/sexpr2xmldata/sexpr2xml-bridge-ipaddr.xml    |   2 +-
 tests/sexpr2xmldata/sexpr2xml-net-routed.xml       |   2 +-
 30 files changed, 1107 insertions(+), 168 deletions(-)

-- 
2.1.2




More information about the libvir-list mailing list