How to Configure TPM for VMs - Complete Guide
Question: How do I add TPM to my VM?
Answer: Virtual TPM configuration
What is TPM?
Purpose
TPM (Trusted Platform Module) provides:
- Hardware-level security
- Key storage
- Platform integrity
- BitLocker support
How to Add TPM
Step 1: Check Requirements
- OVMF BIOS required
- TPM 2.0 supported
Step 2: Add TPM to VM
# Add TPM device
qm set 100 --tpmstate0 local:1MStep 3: Enable TPM
# Enable TPM
qm set 100 --tpm state=presentHow to Use TPM for BitLocker
Enable in Windows
- Install Windows with UEFI
- Add TPM to VM
- Enable BitLocker in Windows
- Recovery key stored in VM
How to Verify TPM
Check TPM Status
qm config 100 | grep tpmKeywords
tpm security bitlocker how-to hardware