[lxc-users] bionic image not getting IPv4 address

Kees Bos cornelis.bos at gmail.com
Thu May 3 06:28:47 UTC 2018


On Thu, 2018-05-03 at 08:09 +0200, Kees Bos wrote:
> On Thu, 2018-05-03 at 12:58 +0900, Tomasz Chmielewski wrote:
> > 
> > Reproducing is easy:
> > 
> > # lxc launch images:ubuntu/bionic/amd64 bionic-broken-dhcp
> > 
> > 
> > Then wait a few secs until it starts - "lxc list" will show it has
> > IPv6 
> > address (if your bridge was configured to provide IPv6), but not
> > IPv4 
> > (and you can confirm by doing "lxc shell", too):
> > 
> > # lxc list
> > 
> > 
> 
> I can confirm this. Seeing the same issue.

BTW. It's the /etc/netplan/10-lxc.yaml

Not working (current) version:
network:
  ethernets:
    eth0: {dhcp4: true}
version: 2


Working version (for me):
network:
  version: 2
  ethernets:
    eth0:
      dhcp4: true


More information about the lxc-users mailing list