Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Cloud-init · Proxmox VE

Direct 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.

When to use this

Use it when configuring, checking or troubleshooting Cloud-init in Proxmox VE.

First 30 seconds

1. Proxmox generates a NoCloud cloud-init drive from VM options.

2. Custom snippets via --cicustom user=local:snippets/u.yaml.

3. Regenerate after changes.

4. Guest must have cloud-init installed.

5. Check cloud-init status in guest.

Operational verification

VM options → cloud-init drive → guest cloud-init

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

Generated metadata shows desired initialization data exists, not that the guest consumed or successfully applied it.

Platform / version applicability
proxmox-ve
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformproxmox-ve
Scope / prerequisiteUse it when configuring, checking or troubleshooting Cloud-init in Proxmox VE.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

Proxmox cloud-init config → generated datasource → virtual device → guest Cloud-init stages → OS configuration → access/workload

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • 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.
Key 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
ReferenceWhat it is1 section · depth on demand

Using cloud-init on Proxmox

qm set 9000 --ide2 local-lvm:cloudinit --boot order=scsi0 --serial0 socket --vga serial0
qm set 9000 --ciuser admin --sshkeys ~/.ssh/id_ed25519.pub --ipconfig0 ip=dhcp
qm template 9000
qm clone 9000 121 --name web02 --full
qm cloudinit dump 121 user

Documented example, not captured output. Use official cloud images (not installer ISOs). Changes to cloud-init settings regenerate the drive; the guest applies most of them only on first boot unless configured otherwise.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

Generated metadata shows desired initialization data exists, not that the guest consumed or successfully applied it.

In depth

Proxmox cloud-init support generates a NoCloud drive from VM settings:

qm set 130 --ide2 local-zfs:cloudinit
qm set 130 --ciuser ops --sshkeys ~/.ssh/ops.pub --ipconfig0 ip=10.0.20.30/24,gw=10.0.20.1 --nameserver 10.0.0.53
qm set 130 --cicustom 'user=local:snippets/web.yaml'
qm cloudinit dump 130 user
qm cloudinit update 130          # regenerate drive after changes

Custom snippets require a storage with snippets content. Changing cloud-init settings after first boot only takes effect if the guest re-runs cloud-init (new instance-id).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docproxmox-ve current

Authoritative/upstream documentation reviewed for bounded claims in Proxmox VE → Cloud-init. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://pve.proxmox.com/pve-docs/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
proxmox cloud-initcloudinit pvecloud-init driveproxmox template cloud-init
Embedded reference data

Quick lookup tables

Proxmox VE → Cloud-init reference map

Fast operational boundaries and evidence limits for Proxmox VE → Cloud-init.

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
Confirmation

Confirm action

Continue?