Use this when provisioning Proxmox VMs by cloning cloud-init templates.
VM Provisioning · Proxmox Automation
Proxmox VM provisioning clones a cloud-init template with qm clone, sets CPU, memory, disk size, network and cloud-init user data, then starts the VM — scriptable through the API or CLI.
1. VM provisioning: clone template, set cloud-init, resize disk, start.
2. Use Terraform/Ansible for idempotency.
3. IP from IPAM.
4. Tags.
5. Register in systems.
template → clone → cloud-init → start → register
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- VMID collisions in parallel runs.
- Linked clones on storage that does not support them.
Step 2 Where it fails Narrow the fault
Failure analysis for Proxmox Automation → VM Provisioning should follow the path through the components: automation definition → Proxmox API → cluster/node service → UPID task → VM/LXC/storage/network/Ceph object → status/config read-back.
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.
- Clone a cloud-init template.
- Set CPU, memory, disk and network.
- Start and verify the guest.
qm clone <tpl> <id> --name <n> --full— cloneqm set <id> --ipconfig0 ip=<ip>/24,gw=<gw> --sshkeys key.pub— cloud-initqm start <id>— start
ReferenceImportant terms & boundaries2 sections · depth on demand
Example
qm clone 9000 120 --name web01 --full true --storage local-lvm
qm set 120 --ipconfig0 ip=10.0.20.21/24,gw=10.0.20.1 --sshkeys ~/.ssh/id_ed25519.pub
qm start 120
pvesh get /nodes/pve1/qemu/120/status/current
In depth
VM provisioning on Proxmox typically clones a cloud-init-enabled template and sets resources, network and SSH keys, producing a ready server in seconds.
qm clone 9000 214 --name app-oslo-014 --full --storage ceph-vm
qm set 214 --cores 4 --memory 8192 --net0 virtio,bridge=vmbr0,tag=120
qm set 214 --ipconfig0 ip=10.20.4.17/24,gw=10.20.4.1 --sshkeys ~/.ssh/automation.pub
qm resize 214 scsi0 +30G
qm start 214
The same steps are available through the API, Ansible (community.general.proxmox_kvm) and Terraform providers. Allocate the IP from IPAM before provisioning, and use the QEMU guest agent so automation can read the VM's real addresses.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Proxmox Automation > VM Provisioning. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://pve.proxmox.com/pve-docs/api-viewer/ · confidence 94%