Listen to this Post
When migrating a Windows Server 2025 or Windows 11 VM with Hyper-V, failing to export the Trusted Platform Module (TPM) security keys can result in the VM failing to boot (Error 0x80070057). This issue is critical when using vTPM and BitLocker, as the encryption keys are tied to the original host.
Key Considerations for vTPM and BitLocker in Hyper-V
1. vTPM and BitLocker Integration
- A vTPM (virtual TPM) stores encryption keys for BitLocker.
- If the VM is moved without exporting these keys, BitLocker will prevent booting.
2. Veeam Backup Limitations
- Veeam backs up VM configuration but not the actual TPM keys.
- Restoration requires either:
- BitLocker Recovery Key (if no Host Guardian Service is used).
- Host Guardian Service (HGS) authorization (if configured).
- Host Guardian Service (HGS) for Secure VM Recovery
– HGS stores vTPM keys centrally.
– Restore is only possible on HGS-authorized hosts.
You Should Know: Critical Commands & Steps
1. Exporting vTPM Keys Before Migration
Check if VM has vTPM enabled Get-VM -Name "YourVM" | Get-VMKeyProtector Export vTPM key protector (requires Admin rights) $vm = Get-VM -Name "YourVM" $key = Get-VMKeyProtector -VM $vm $key | Export-VMKeyProtector -Path "C:\Backup\VM_TPM_Key.key"
- Restoring a VM with BitLocker & vTPM
- Without HGS: Provide the BitLocker Recovery Key during boot.
- With HGS: Ensure the new host is registered in HGS.
Add a new Hyper-V host to HGS (if applicable) Add-HgsClientHostKey -Path "C:\HGS\host_key.cer"
3. Forcing BitLocker Recovery Mode
If the VM fails to boot:
manage-bde -unlock C: -RecoveryKey "Your-BitLocker-Recovery-Key"
4. Checking TPM Status in Windows
Get-Tpm tpm.msc (GUI-based TPM management)
What Undercode Say
Migrating Windows Server 2025/Windows 11 VMs with vTPM requires careful handling of encryption keys. Always:
– Export vTPM keys before migration.
– Use HGS for centralized key management.
– Keep BitLocker recovery keys accessible.
– Verify backups include VM configuration (though not TPM keys).
For Linux admins, similar concepts apply with LUKS encryption and TPM 2.0 binding:
Check TPM status in Linux tpm2_getcap properties-fixed
Expected Output:
A structured guide on handling vTPM & BitLocker in Hyper-V migrations, including PowerShell/Linux commands for secure VM transfers.
References:
Reported By: Charlescrampton Andreas – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅



