Pcornel
Virtualization · Security

Virtual TPM

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

Back to the Topic

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.

Remember

  • A vTPM requires UEFI firmware.

First checks

  • Get-VMSecurity <vm> — vTPM state (Hyper-V)
  • qm config <vmid> | grep tpmstate — Proxmox vTPM
  • tpm2_getcap properties-fixed — guest sees TPM

Verify in this order

vTPM state → guest TPM → keys

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

Confirmation

Confirm action

Continue?