Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Virtual TPM

Direct answer

A virtual TPM (vTPM) gives a VM a software TPM 2.0 device for BitLocker, measured boot, Windows 11 and credential protection. Its state is encrypted, so the platform needs a key provider or KMS to back it.

When to use this

Use this when a VM needs a TPM for BitLocker, Windows 11 or measured boot.

First 30 seconds

1. vTPM supports BitLocker, Windows 11 and measured boot.

2. Protect and back up vTPM state.

3. Hyper-V uses key protectors (HGS for shielded VMs).

4. Migration must carry state/keys.

5. Losing vTPM may lock BitLocker — keep recovery keys.

Operational verification

vTPM state → guest TPM → keys

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization
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
Scope / prerequisiteUse this when a VM needs a TPM for BitLocker, Windows 11 or measured boot.
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
  • Guest sees a TPM 2.0 (Get-Tpm, ls /dev/tpm0).
  • BitLocker/LUKS protectors bound to the vTPM.
  • Key provider backed up.
Step 2 Common mistakes Narrow the fault
  • Losing the key provider, so VMs with vTPM cannot start.
  • Restoring VMs to hosts without access to the keys.
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 vTPM requires UEFI firmware.
Key checks
  • Get-VMSecurity <vm> — vTPM state (Hyper-V)
  • qm config <vmid> | grep tpmstate — Proxmox vTPM
  • tpm2_getcap properties-fixed — guest sees TPM
ReferenceWhy it matters1 section · depth on demand

Adding a vTPM

# Hyper-V
Set-VMKeyProtector -VMName vm01 -NewLocalKeyProtector
Enable-VMTPM -VMName vm01
# Proxmox
qm set 101 --tpmstate0 local-lvm:1,version=v2.0

Documented example, not captured output.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

A virtual TPM gives each VM its own TPM 2.0 for BitLocker, measured boot, credential guard and attestation. Its state is stored encrypted with the VM, which means:

  • Key management is required (vSphere key provider, Hyper-V key protector, Proxmox TPM state disk).
  • Cloning a VM with vTPM copies the TPM state — regenerate or replace vTPM for clones that need unique identities.
  • Losing the key provider makes vTPM VMs unbootable — back up key providers and test restore.
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 current

Authoritative/upstream documentation reviewed for bounded claims in Security → Virtual TPM. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/sp/800/125/final · confidence 94%
Confirmation

Confirm action

Continue?