The issue with using any of the RHEL 8 derived cloud images is that NetworkManager doesn’t work with veth devices (so eth0 for a lxdbr0 IP address). Which makes the newly launched instance basically useless.
I’m currently using the following bootcmd section for centos/alma/rocky etc. distros… It disables NetworkManager, brings up eth0 annually and then installs and enables old-school networking…
I’ve managed to create a cloud-init bootcmd section which automatically works around this issue for RHEL8 devilled containers… Disable NetworkManger which is ignoring veth derived devices (e.g. eth0) and then bring up the eth0 manually and then install and enable old school networking which does work.
#cloud-config
package_update: true
timezone: Europe/London
bootcmd:
- [ cloud-init-per, once, nmdis, systemctl, disable, NetworkManager, --now ]
- [ cloud-init-per, once, eth0up, dhclient, eth0 ]
- [ cloud-init-per, once, epel, yum, -y, install, epel-release, network-scripts ]
- [ cloud-init-per, once, nwup, systemctl, enable, network, --now ]