elektito / spinup

Spin up a VM quickly.
7 stars 0 forks source link

Network not properly configured in CentOS #14

Open elektito opened 5 years ago

elektito commented 5 years ago

There are two problems that (perhaps together) result in network not working in CentOS (and hence SSH not working, although we can connect to the VM using the virsh console command):

The ifcfg-ens4 file can be updated using user_data write_files section, but that happens after network configuration, so the network is not properly configured on first boot.

elektito commented 5 years ago

This might be relevant: https://blogs.vmware.com/openstack/how-to-deal-with-dhcp-failure-caused-by-consistent-network-device-naming-on-cloud-images/