[lxc-users] bionic image not getting IPv4 address

Fajar A. Nugraha list at fajar.net
Thu May 3 13:01:17 UTC 2018


On Thu, May 3, 2018 at 7:57 PM, Tomasz Chmielewski <mangoo at wpkg.org> wrote:
> Indeed, I can confirm it's some netplan-related issue with
> /etc/netplan/10-lxc.yaml.
>
> Working version for bionic containers set up before 2018-May-02:
>
> network:
>   ethernets:
>     eth0: {dhcp4: true}
>   version: 2
>
>
>
> Broken version for bionic containers set up after 2018-May-02:
>
> network:
>   ethernets:
>     eth0: {dhcp4: true}
> version: 2
>
>
> Please note that the broken one has no indentation (two spaces) before
> "version: 2", this is the only thing that differs and which breaks DHCPv4.

Ah, sorry, I was not thorough enough when comparing my resulting
/etc/netplan/10-lxc.yaml. It looks like this now:

# cat /etc/netplan/10-lxc.yaml
network:
  version: 2
  ethernets:
    eth0: {dhcp4: true}

So the new image update apparently fixed the bug.

-- 
Fajar


More information about the lxc-users mailing list