Automation · Proxmox Automation
VM Provisioning
Cheat sheet · https://pcornel.dk/topic.php?topic=5722
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.
Remember
- Clone a cloud-init template.
- Set CPU, memory, disk and network.
- Start and verify the guest.
First checks
qm clone <tpl> <id> --name <n> --full— cloneqm set <id> --ipconfig0 ip=<ip>/24,gw=<gw> --sshkeys key.pub— cloud-initqm start <id>— start
Commands
pvesh
Verify in this order
template → clone → cloud-init → start → register
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5722