Virtualization · Proxmox VE
Cloud-init
Cheat sheet · https://pcornel.dk/topic.php?topic=3738
Answer
Proxmox generates desired initialization data, while the guest Cloud-init service decides how and when that data is consumed; both sides must be verified.
Remember
- Cloud-init settings shown in Proxmox ≠ guest applied them.
- Regenerating metadata ≠ rerunning every Cloud-init stage.
- Static network metadata can conflict with image defaults.
- A cloned image must be prepared to consume instance-specific identity safely.
First checks
qm cloudinit dump <vmid> user— generated user-dataqm set <vmid> --ciuser admin --sshkeys key.pub --ipconfig0 ip=dhcp— set optionsqm cloudinit update <vmid>— regenerate drive
Verify in this order
VM options → cloud-init drive → guest cloud-init
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Proxmox VE → Cloud-init reference map
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Configured state | Expected Cloud-init configuration is present | Configuration alone does not prove runtime behavior |
| Runtime state | Relevant Cloud-init service/object is active and error-free | Runtime state does not prove dependencies |
| Dependency | Backing network, storage, cluster or host dependency is healthy | Local success does not prove end-to-end outcome |
| Acceptance | Original VM/container/workload test succeeds | Required to close the incident |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3738