TPM
Cheat sheet · https://pcornel.dk/topic.php?topic=3474
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 vTPMtpm2_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
| Boundary | Meaning | Evidence limit |
|---|---|---|
| vTPM device | Guest TPM interface | Virtual device |
| State/key backing | Platform-protected persistent state | Security boundary |
| Guest feature | Measured boot/encryption/etc. | Consumes TPM |
| Lifecycle | Migration/backup/restore | Must 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