Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=3683
Answer
Virtualization automation means creating, changing and retiring VMs through APIs, scripts and declarative tools — Terraform, Ansible, PowerShell, cloud-init — instead of clicking through a console, so builds are repeatable and auditable.
Remember
- Job finished ≠ VM is configured and reachable.
- Template updated ≠ existing VMs changed.
- API call accepted ≠ hypervisor task succeeded; poll the task.
First checks
pvesh get /version— API reachable (Proxmox)Get-Command -Module Hyper-V | measure— Hyper-V cmdletsterraform plan— IaC plan
Commands
pvesh
Verify in this order
code → API → hypervisor → VMs
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.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3683