Pcornel
Virtualization · VM Hardware › Virtual Devices

TPM

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

Back to the Topic

Answer

A vTPM exposes TPM semantics to the guest while its state/keys are protected and persisted by the virtualization platform. It is not the same as directly giving the guest the host physical TPM.

Remember

  • vTPM presence does not mean the guest owns the host physical TPM.
  • vTPM security depends on how the platform protects device state/keys.
  • Deleting/replacing vTPM state can break secrets sealed to it.
  • Migration/backup/restore must preserve the required vTPM security state and trust model.

First checks

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

Commands

qm set <id> --tpmstate0 local-lvm:1,version=v2.0

Verify in this order

vTPM state → guest TPM driver → BitLocker/attestation

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.

VM Hardware → Virtual Devices → TPM reference map

BoundaryMeaningEvidence limit
vTPM deviceGuest TPM interfaceVirtual device
State/key backingPlatform-protected persistent stateSecurity boundary
Guest featureMeasured boot/encryption/etc.Consumes TPM
LifecycleMigration/backup/restoreMust preserve trust/state

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3474

Confirmation

Confirm action

Continue?