Pcornel
Virtualization · Automation

Templates

Cheat sheet · https://pcornel.dk/topic.php?topic=3686

Back to the Topic

Answer

Automation templates are reusable definitions — a VM template, a Terraform module, a cloud-init or Ansible role — with parameters for name, size and network, so many VMs can be produced from one tested pattern.

Remember

  • Parameters, not copies.
  • Version templates and modules.
  • Test a template before others depend on it.

First checks

  • qm list — templates (Proxmox)
  • packer build . — image build
  • Get-VM -Name tpl-* — Hyper-V templates

Verify in this order

Packer → template → clones

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=3686

Confirmation

Confirm action

Continue?