Cloud- init doesn't configure network interfaces in Ubuntu 16.04
Bug #1577747 reported by
krath
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm running vmbuilder 0.12.4 on an Ubuntu 16.04 server to create an Ubuntu 16.04 cloud image.
cloud-init 0.77 is being added to run the cloud image in OpenStack.
Upon starting the VM in OpenStack,
cloud-init fails because the network interface can't be established.
That seems to be related to discrepancy between
/etc/network/
and
/etc/network/
--> in /etc/network/
auto eth0
iface eth0 inet dhcp
--> changing eth0 to ens32 correctly establishes the network interface
To post a comment you must log in.
Please remove your /etc/network/ interfaces definition of 'eth0', and instead have something like below. interfaces/ *.cfg' for cloud-init to work correctly. The static 'eth0.cfg' is no longer functional since.
Essentially ENI needs to have 'source /etc/network/
$ cat /etc/network/ interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Source interfaces interfaces. d before changing this file interfaces. d interfaces. d/*.cfg
# Please check /etc/network/
# as interfaces may have been defined in /etc/network/
# See LP: #1262951
source /etc/network/