[lxc-users] bionic image not getting IPv4 address

Tomasz Chmielewski mangoo at wpkg.org
Thu May 3 02:56:34 UTC 2018


On 2018-05-03 11:42, Tomasz Chmielewski wrote:

> I was able to reproduce it on two different LXD servers.
> 
> This used to work a few days ago.

Also - xenial containers are getting IPv4 address just fine.

Here is the output of "systemctl status systemd-networkd" on a bionic 
container launched yesterday, with working DHCP (it's also getting IPv4 
after restart etc.):

# systemctl status systemd-networkd
● systemd-networkd.service - Network Service
    Loaded: loaded (/lib/systemd/system/systemd-networkd.service; 
enabled-runtime; vendor preset: enabled)
    Active: active (running) since Thu 2018-05-03 02:46:14 UTC; 6min ago
      Docs: man:systemd-networkd.service(8)
  Main PID: 45 (systemd-network)
    Status: "Processing requests..."
     Tasks: 1 (limit: 4915)
    CGroup: /system.slice/systemd-networkd.service
            └─45 /lib/systemd/systemd-networkd

May 03 02:46:14 a19ea62218-2018-05-02-11-12-12 systemd-networkd[45]: 
Enumeration completed
May 03 02:46:14 a19ea62218-2018-05-02-11-12-12 systemd[1]: Started 
Network Service.
May 03 02:46:14 a19ea62218-2018-05-02-11-12-12 systemd-networkd[45]: 
eth0: DHCPv4 address 10.190.0.95/24 via 10.190.0.1
May 03 02:46:14 a19ea62218-2018-05-02-11-12-12 systemd-networkd[45]: Not 
connected to system bus, not setting hostname.
May 03 02:46:16 a19ea62218-2018-05-02-11-12-12 systemd-networkd[45]: 
eth0: Gained IPv6LL
May 03 02:46:16 a19ea62218-2018-05-02-11-12-12 systemd-networkd[45]: 
eth0: Configured



Here is the output of "systemctl status systemd-networkd" on a bionic 
container launched today - DHCPv4 is not working (I can get IPv4 there 
by running "dhclient eth0" manually, but that's not how it should work):

# systemctl status systemd-networkd
● systemd-networkd.service - Network Service
    Loaded: loaded (/lib/systemd/system/systemd-networkd.service; 
enabled; vendor preset: enabled)
    Active: active (running) since Thu 2018-05-03 02:49:10 UTC; 3min 36s 
ago
      Docs: man:systemd-networkd.service(8)
  Main PID: 54 (systemd-network)
    Status: "Processing requests..."
     Tasks: 1 (limit: 4915)
    CGroup: /system.slice/systemd-networkd.service
            └─54 /lib/systemd/systemd-networkd

May 03 02:49:10 tomasztest systemd[1]: Starting Network Service...
May 03 02:49:10 tomasztest systemd-networkd[54]: Enumeration completed
May 03 02:49:10 tomasztest systemd[1]: Started Network Service.
May 03 02:49:11 tomasztest systemd-networkd[54]: eth0: Gained IPv6LL



Tomasz Chmielewski
https://lxadm.com


More information about the lxc-users mailing list