Skip to content

Cloud-init

  • Docs
  • Config: /etc/cloud/cloud.cfg
  • After changing the content of the cloud-init disk, a simple virsh restart doesn't help, the guest instance must be destroyed and started again in order to see the changes.

Network config

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