Pcornel
Virtualization · Proxmox VE

Cloud-init

Cheat sheet · https://pcornel.dk/topic.php?topic=3738

Back to the Topic

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-data
  • qm set <vmid> --ciuser admin --sshkeys key.pub --ipconfig0 ip=dhcp — set options
  • qm 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

BoundaryWhat to verifyEvidence limit
Configured stateExpected Cloud-init configuration is presentConfiguration alone does not prove runtime behavior
Runtime stateRelevant Cloud-init service/object is active and error-freeRuntime state does not prove dependencies
DependencyBacking network, storage, cluster or host dependency is healthyLocal success does not prove end-to-end outcome
AcceptanceOriginal VM/container/workload test succeedsRequired 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

Confirmation

Confirm action

Continue?