Use this when a VM needs a TPM for BitLocker, Windows 11 or measured boot.
Virtual TPM
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.
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.
vTPM state → guest TPM → keys
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- A vTPM requires UEFI firmware.
Get-VMSecurity <vm>— vTPM state (Hyper-V)qm config <vmid> | grep tpmstate— Proxmox vTPMtpm2_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.
Requirements
| Platform | Needs |
|---|---|
| vSphere | Key provider (Native Key Provider or KMS), UEFI |
| Hyper-V | Generation 2, key protector |
| Proxmox | tpmstate0 disk, OVMF |
Windows 11 guests require TPM 2.0 and Secure Boot.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%