the issue Richard describes also applies to GCP and Azure instances.
The netplan configuration is not re-generated if the mac address changes and is hardcoded with a `match: { mac: address}`. So if a image is created the newly spawned instances do not have network enabled on their main interface.
the issue Richard describes also applies to GCP and Azure instances.
The netplan configuration is not re-generated if the mac address changes and is hardcoded with a `match: { mac: address}`. So if a image is created the newly spawned instances do not have network enabled on their main interface.
the only work around i've found is
``` cloud.cfg. d/99-disable- network- config. cfg
optional: true
optional: true 50-cloud- init.yaml
# disabling default cloudInit network and enable dhcp based on known interfaces
echo "network: {config: disabled}" > /etc/cloud/
echo 'network:
version: 2
renderer: networkd
ethernets:
ens5:
dhcp4: true
dhcp6: true
ens4:
dhcp4: true
dhcp6: true
' > /etc/netplan/
```