Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

VM Template

Direct answer

A VM template is a read-only master VM used only for cloning. It holds the configured OS, virtual hardware and agents, and new VMs are deployed from it with guest customization for name, network and identity.

When to use this

Use this when creating a master VM used only for cloning.

First 30 seconds

1. A VM template is a protected VM used only for cloning.

2. Cannot be started (Proxmox/vSphere).

3. Include guest agent and PV drivers.

4. Document version and date.

5. Rebuild monthly.

Operational verification

VM → template flag → clone source

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization-image
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.

Platformvirtualization-image
Scope / prerequisiteUse this when creating a master VM used only for cloning.
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 Checks Verify boundary
  • Template converts back to VM only for maintenance.
  • Last patch date recorded.
  • Test deployment works.
Step 2 Common mistakes Narrow the fault
  • Templates never patched, so new VMs start months behind.
  • Not generalized (duplicate SIDs, machine IDs, SSH host keys).
  • Hard-coded IPs or hostnames inside the template.
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
  • A template is a read-only master; never run it as a VM.
  • Generalize before converting to a template.
  • Keep guest agents current in the template.
Key checks
  • qm template <vmid> — convert to template (Proxmox)
  • qm config <vmid> | grep template — template flag
  • Get-VMTemplate (SCVMM) — SCVMM templates
ReferenceWhy it matters1 section · depth on demand

How it works

A VM template is a read-only master VM (OS installed, patched and generalised) used to create new VMs quickly and consistently by cloning.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Turn a prepared VM into a template (Proxmox VE)

qm shutdown 9000
qm template 9000
qm config 9000 | grep -E 'template|scsi0|ide2'

The Proxmox VM chapter describes templates as read-only sources: once converted, the VM cannot be started, and its disks become base images that clones can share.

What belongs in a template

IncludeLeave out
Patched OS, guest agent (qemu-guest-agent), VirtIO drivers on WindowsHost name, static IP, SSH host keys, machine-id
Cloud-init (Linux) or sysprep-ready WindowsApplication data, user accounts with passwords
Small root disk (grow per clone)Swap files sized for one workload
Correct firmware (OVMF + EFI disk or SeaBIOS) and machine type (q35)Passthrough devices, ISO media left attached
CPU type that matches the cluster's migration planHost-specific network bridges that do not exist on other nodes

Storage decides what cloning can do

StorageLinked clones
ZFS, LVM-thin, Ceph RBD, qcow2 on directory/NFSSupported
Plain (thick) LVMFull clones only

Naming and versioning

Use names that carry OS and build date (tpl-debian12-202611) and keep the template's notes with the build steps. A template is a deployment artefact — you will want to know exactly what is in it when a vulnerability report arrives.

Checks before first use

1. Clone once, boot it, verify host name, network and SSH keys are new.

2. qm agent <vmid> ping — the guest agent answers (needed for clean shutdown, fs-freeze during backup and IP reporting).

3. Destroy the test clone; only then hand the template to automation.

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 docvirtualization-image current

Authoritative/upstream documentation reviewed for bounded claims in VM Templates → VM Template. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/docs.html · confidence 94%
Confirmation

Confirm action

Continue?