[pkg-lxc-devel] Bug#892847: lxc busybox template doesn't set ipv4 address correctly
Brian Minton
brian at minton.name
Tue Mar 13 18:11:22 UTC 2018
Package: lxc
Version: 1:2.0.9-6
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Dear Maintainer,
I created a new container, with the busybox template. My network has a
dhcp server on it serving ipv4 addresses, and uses router advertisement
for ipv6 ones. I can see from the console logs and my dhcp server logs
that I am assigned an ipv4 address, but ip addr show or ifconfig from
inside the container don't have the address.
bminton:/usr/share/lxc/templates# lxc-create -n client3 --template busybox
'dropbear' ssh utility installed
bminton:/usr/share/lxc/templates# lxc-start -F -n client3
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending select for 192.168.1.117
udhcpc: lease of 192.168.1.117 obtained, lease time 600
Please press Enter to activate this console.
BusyBox v1.27.2 (Debian 1:1.27.2-2) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
25: eth0 at if26: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue qlen 1000
link/ether 1e:0c:f7:73:82:6b brd ff:ff:ff:ff:ff:ff
inet6 fd21:3dd1:6b84:0:1c0c:f7ff:fe73:826b/64 scope global dynamic
valid_lft forever preferred_lft forever
inet6 2001:470:e295:0:1c0c:f7ff:fe73:826b/64 scope global dynamic
valid_lft forever preferred_lft forever
inet6 fe80::1c0c:f7ff:fe73:826b/64 scope link
valid_lft forever preferred_lft forever
/ #
- -- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.15.1+ (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (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.12-3
ii libc6 2.26-6
ii libcap2 1:2.25-1.2
ii libgnutls30 3.5.18-1
ii liblxc1 1:2.0.9-6
ii libseccomp2 2.3.1-2.1
ii libselinux1 2.7-2+b1
ii lsb-base 9.20170808
ii python3 3.6.4-1
ii python3-lxc 1:2.0.9-6
Versions of packages lxc recommends:
ii bridge-utils 1.5-15
ii debootstrap 1.0.93
ii dirmngr 2.2.5-1
ii dnsmasq-base 2.78-3
ii gnupg 2.2.5-1
ii iptables 1.6.2-1
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.1
ii uidmap 1:4.5-1
Versions of packages lxc suggests:
ii apparmor 2.12-3
ii btrfs-progs 4.15.1-1
ii lvm2 2.02.176-4.1
- -- Configuration Files:
/etc/lxc/default.conf changed:
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQT5xLt2Dng/DewQpoprjrOgZc+6qQUCWqgURAAKCRBrjrOgZc+6
qTluAP9HcurSwjcDIvIrAgk1uitoLRDEO6qKKCQUGZX0V9EH/AD+OL8FKa0YCQ6Y
OiJnUOt/vUPUsn1G1MO5V6PRd01GApeIdQQBFggAHRYhBO7QFYAT3C5tbgAepDe5
UHrP8gFuBQJaqBRKAAoJEDe5UHrP8gFuWVABAPOVDaqLo3XHfn6I0HbbEc0TJq3U
U8g+fCtUYa6JqfCQAP9tLnic1lCTeR/c1nfWBKNau4JqoYxkCYjQriBF7YDNBQ==
=DsvL
-----END PGP SIGNATURE-----
More information about the Pkg-lxc-devel
mailing list