[pkg-lxc-devel] Bug#883163: lxc.network.0.link configuration value is ignored

Salvador Fandiño sfandino at yahoo.com
Thu Nov 30 09:58:01 UTC 2017


Package: lxc
Version: 1:2.0.9-4
Severity: important

Dear Maintainer,

When configuring lxc containers to have a network interface, I can put
the following entries on /var/lib/lxc/foo/config:

lxc.network.type = veth
lxc.network.name = eth0
lxc.network.flags = up
lxc.network.link = br0

The network interface for the container is attached to bridge br0 and
everything works as expected,

Now, if I want to add more than an interface to my container,
following the documentation, I would change that for this entries:

lxc.network.0.type = veth
lxc.network.0.name = eth0
lxc.network.0.flags = up
lxc.network.0.link = br0

But in this case, the lxc.network.0.link seems to be ignored, because
the container interface does not get attached to the bridge.

BTW, in the later case I can manually add the container interface to
the bridge using "brtcl addif" from the host in order to get the
interface working.



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lxc depends on:
ii  libapparmor1  2.11.1-3
ii  libc6         2.25-2
ii  libcap2       1:2.25-1.2
ii  libgnutls30   3.5.16-1
ii  liblxc1       1:2.0.9-4
ii  libseccomp2   2.3.1-2.1
ii  libselinux1   2.7-2
ii  lsb-base      9.20170808
ii  python3       3.6.3-2
ii  python3-lxc   1:2.0.9-4

Versions of packages lxc recommends:
ii  bridge-utils  1.5-14
ii  debootstrap   1.0.92
ii  dirmngr       2.2.2-1
ii  dnsmasq-base  2.78-1
ii  gnupg         2.2.2-1
ii  iptables      1.6.1-2+b1
ii  libpam-cgfs   2.0.8-1
ii  lxcfs         2.0.8-1
ii  openssl       1.1.0g-2
ii  rsync         3.1.2-2
ii  uidmap        1:4.5-1

Versions of packages lxc suggests:
ii  apparmor     2.11.1-3
ii  btrfs-progs  4.13.3-1
pn  lvm2         <none>

-- no debconf information



More information about the Pkg-lxc-devel mailing list