Cloud-init
Cheat sheet · https://pcornel.dk/topic.php?topic=3561
Answer
Cloud-init in templates customizes each new clone from the same image: pass user-data with hostname, users, SSH keys, network and packages through a NoCloud drive or the hypervisor's cloud-init settings.
Remember
- Validate user-data before using it.
First checks
cloud-init status --long— cloud-init result in guestqm cloudinit dump <vmid> user— generated user-data (Proxmox)cloud-init query -a | head— datasource info
Verify in this order
datasource → cloud-init stages → configured guest
Where it usually breaks
First mismatch in guest/app quiescence → hypervisor snapshot/template task → metadata/backing chain → storage durability → restore/clone read-back; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3561