Cloud-init
- Docs
- Config:
/etc/cloud/cloud.cfg - After changing the content of the cloud-init disk, a simple
virsh restartdoesn't help, the guest instance must be destroyed and started again in order to see the changes.
Network config
- Docs: Network configuration
- Netplan is the default config
and consumes Networking config Version 2 input
and renders network configuration for supported backends such as
systemd-networkdandNetworkManager network-configis mapped to/etc/netplan/50-cloud-init.yaml
Debug / troubleshooting
Show overall status:
cloud-init status --long
Show failed components:
cloud-init analyze dump|grep -B 5 -A 2 FAIL
Show config files from attached cloud-init disk:
mount /dev/sr0 /mnt
cat /mnt/*
Disable cloudinit after install
touch /etc/cloud/cloud-init.disabled touch /etc/cloud/cloud-init.disabled