Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

VM Provisioning · Proxmox Automation

Direct answer

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.

When to use this

Use this when provisioning Proxmox VMs by cloning cloud-init templates.

First 30 seconds

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.

Operational verification

template → clone → cloud-init → start → register

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Proxmox VE API automation
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 API automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when provisioning Proxmox VMs by cloning cloud-init templates.
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.

2 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 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 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
  • Clone a cloud-init template.
  • Set CPU, memory, disk and network.
  • Start and verify the guest.
Key checks
  • qm clone <tpl> <id> --name <n> --full — clone
  • qm set <id> --ipconfig0 ip=<ip>/24,gw=<gw> --sshkeys key.pub — cloud-init
  • qm start <id> — start
ReferenceWhy it matters1 section · depth on demand

What it is

Proxmox VMs are created with qm on a node, through the REST API (pvesh/HTTP) or with Terraform/Ansible providers. Cloning a cloud-init template is the usual fast path.

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.

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 API automation current

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%
Confirmation

Confirm action

Continue?