You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/windows-server/virtualization/virtual-shielded-host-guardian-service.md
+95-75Lines changed: 95 additions & 75 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Troubleshoot VTPM, Shielded VM, and Host Guardian Service Issues
3
-
description: Helps troubleshoot Virtual TPM (vTPM), shielded VM, and Host Guardian Service (HGS) issues in Hyper-V clusters.
2
+
title: Troubleshoot Virtual TPM, Shielded VM, and Host Guardian Service Issues
3
+
description: Helps troubleshoot Virtual TPM (vTPM), shielded virtual machine (VM), and Host Guardian Service (HGS) issues in Hyper-V clusters.
4
4
ms.date: 08/06/2025
5
5
manager: dcscontentpm
6
6
audience: itpro
@@ -11,127 +11,146 @@ ms.custom:
11
11
- pcy:WinComm Storage High Avail
12
12
ai-usage: ai-assisted
13
13
---
14
-
# Troubleshooting Virtual TPM (vTPM), Shielded VM, and Host Guardian Service (HGS) Issues in Hyper-V Clusters
14
+
# Troubleshoot vTPM, shielded VM, and HGS issues in Hyper-V clusters
15
15
16
-
Virtual TPM (vTPM), Shielded VM, and Host Guardian Service (HGS) are vital features in Hyper-V clusters, especially for ensuring secure virtual environments and compliance with modern operating system requirements, such as Windows 11. However, issues with these features can arise due to misconfigurations, hardware or firmware incompatibilities, or software errors. These problems may impact VM startup, migration, or security configuration, causing significant disruptions. This guide consolidates common scenarios, their causes, and resolutions to help restore secure VM operations efficiently.
16
+
This guide provides a structured approach to resolving issues with Virtual TPM (vTPM), shielded virtual machine (VM), and Host Guardian Service (HGS) in Hyper-V clusters. Always test changes in a nonproduction environment and maintain backups before implementing solutions. For unresolved issues, consult your hardware vendor or Microsoft support.
17
17
18
-
## Symptoms
18
+
VTPM, shielded VM, and HGS are vital features in Hyper-V clusters, especially for ensuring secure virtual environments and compliance with modern operating system requirements, such as Windows 11. However, issues with these features can arise due to misconfigurations, hardware or firmware incompatibilities, or software errors. These problems might impact VM startup, migration, or security configuration, causing significant disruptions. This guide consolidates common scenarios, their causes, and resolutions to help restore secure VM operations efficiently.
19
19
20
-
###End-user and technical symptoms
20
+
## End-user and technical symptoms
21
21
22
-
-Virtual machines (VMs) with vTPM enabled fail to start or migrate between cluster nodes.
23
-
- VMs remain operational only on their original host and cannot fail over.
24
-
- Shielded VMs cannot start, migrate, or fail over.
22
+
- VMs with vTPM enabled fail to start or migrate between cluster nodes.
23
+
- VMs remain operational only on their original host and can't fail over.
24
+
- Shielded VMs can't start, migrate, or fail over.
25
25
- Shield icons persist in management tools even after disabling shielding.
26
-
- Attestation or key unwrap operations fail when using HGS with HTTPS.
26
+
- Attestation or key unwrap operations fail when using HGS over HTTPS.
27
27
- VMs disappear from the cluster or management tools after cluster-aware updating or patching.
28
28
- BitLocker enablement fails, or device encryption reports as unsupported.
29
29
- HGS attestation fails on all or some guarded hosts.
30
30
- VMs fail to start after enabling TPM or upgrading the operating system.
31
31
- Expanding the HGS cluster with nodes of differing hardware models fails.
32
32
- Device encryption support reports errors such as "Feature is not available," "winre is not configured," or "hardware security test interface failed."
33
33
34
-
###Specific error messages and event IDs
34
+
## Specific error messages and event IDs
35
35
36
-
- "Key protector could not be unwrapped."
37
-
- "HGS cannot be an owner because it does not have private keys."
38
-
- "Local security policy for virtual machine could not be generated automatically." (Error Code: 0x80131500)
39
-
- "The computed authentication tag did not match the input authentication tag." (Error Code: 0xC000A002)
40
-
- "The virtual machine doesn’t have a key protector, and the key protector can’t be added automatically in a guarded fabric."
- Missing or mismatched certificates: vTPM and shielded VMs require signing and encryption certificates. Problems arise if certificates are missing or improperly restored during migration or export/import processes.
57
+
- Untrusted or broken key protectors/guardians: Guardian misconfigurations or missing private keys can block VM operations.
58
+
- Deleted or unrestored certificates: Shielded VM certificates that are accidentally deleted or not restored render VMs nonoperational.
59
+
- Certificate Subject Alternative Name (SAN) or trust issues: HGS over HTTPS fails if certificates lack required SANs or if there are trust issues.
51
60
52
-
-**Missing or mismatched certificates**: vTPM and shielded VMs require signing and encryption certificates. Problems arise if certificates are missing or improperly restored during migration or export/import processes.
53
-
-**Untrusted or broken key protectors/guardians**: Guardian misconfigurations or missing private keys can block VM operations.
54
-
-**Deleted or unrestored certificates**: Shielded VM certificates that are accidentally deleted or not restored render VMs non-operational.
55
-
-**Certificate SAN or trust issues**: HGS over HTTPS fails if certificates lack required Subject Alternative Names (SANs) or if there are trust issues.
61
+
## Cause 2. TPM, hardware, driver, and firmware incompatibilities
56
62
57
-
### 2. TPM, hardware, driver, and firmware incompatibilities
63
+
- TPM model or firmware incompatibility: Earlier TPM models, such as HPE Gen9/Gen10, might lack support for required algorithms like RSAPSS.
64
+
- Outdated storage drivers/firmware: Encryption features often require updated drivers and firmware.
65
+
- Central processing unit (CPU) compatibility issues: Live migration might fail if CPU compatibility isn't configured across cluster nodes.
58
66
59
-
-**TPM model or firmware incompatibility**: Older TPM models, such as HPE Gen9/Gen10, may lack support for required algorithms like RSAPSS.
60
-
-**Outdated storage drivers/firmware**: Encryption features often require updated drivers and firmware.
61
-
-**CPU compatibility issues**: Live migration may fail if CPU compatibility is not configured across cluster nodes.
67
+
## Cause 3. Configuration and script errors
62
68
63
-
### 3. Configuration and script errors
69
+
- Improper PowerShell script usage: Errors in automation scripts for enabling vTPM or shielded VM features can create issues.
70
+
- Misconfiguration in HGS or cluster setup: Problems occur when required Windows features aren't enabled, or HGS registration is incorrect.
71
+
- Mixing management tools: Concurrent modifications using tools like System Center Virtual Machine Manager (SCVMM), Failover Cluster Manager, and PowerShell can corrupt VM configurations.
64
72
65
-
-**Improper PowerShell script usage**: Errors in automation scripts for enabling vTPM or Shielded VM features can create issues.
66
-
-**Misconfiguration in HGS or cluster setup**: Problems occur when required Windows features are not enabled, or HGS registration is incorrect.
67
-
-**Mixing management tools**: Concurrent modifications using tools like System Center Virtual Machine Manager (SCVMM), Failover Cluster Manager, and PowerShell can corrupt VM configurations.
73
+
## Cause 4. File system and cluster configuration corruption
68
74
69
-
### 4. File system and cluster configuration corruption
75
+
- Corrupted `.vmcx` (VM configuration) files: Cluster-aware updating (CAU) or failovers might corrupt VM configuration files.
76
+
- Guarded fabric/cluster node inconsistencies: Shielded VMs must be hosted on the same guarded fabric to function correctly.
70
77
71
-
-**Corrupted .vmcx (VM configuration) files**: Cluster-aware updating (CAU) or failovers may corrupt VM configuration files.
72
-
-**Guarded fabric/cluster node inconsistencies**: Shielded VMs must be hosted on the same guarded fabric to function correctly.
78
+
## Cause 5. Networking and security protocol issues
73
79
74
-
### 5. Networking and security protocol issues
80
+
- Networking changes/disruptions: Network reconfigurations can temporarily interrupt HGS attestation.
81
+
- TLS/protocol mismatches: HGS might default to older TLS versions, and disabling TLS 1.0 without enabling TLS 1.2 can cause failures.
75
82
76
-
-**Networking changes/disruptions**: Network reconfigurations can temporarily interrupt HGS attestation.
77
-
-**TLS/protocol mismatches**: HGS may default to older TLS versions, and disabling TLS 1.0 without enabling TLS 1.2 can cause failures.
83
+
## Cause 6. Supportability and documentation gaps
78
84
79
-
### 6. Supportability and documentation gaps
85
+
- Unsupported HGS cluster expansion: Adding nodes with differing hardware models to an HGS cluster is unsupported.
86
+
- Documentation gaps: Lack of guidance for certain PowerShell or WMI methods can lead to configuration errors.
80
87
81
-
-**Unsupported HGS cluster expansion**: Adding nodes with differing hardware models to an HGS cluster is unsupported.
82
-
-**Documentation gaps**: Lack of guidance for certain PowerShell or WMI methods can lead to configuration errors.
88
+
## Resolution 1. Certificate and key protector resolution
83
89
84
-
## Resolution
90
+
1. Export and import certificates with private keys:
85
91
86
-
### A. Certificate and key protector resolution
92
+
- Export certificates from the source host using **certlm.msc** or PowerShell:
87
93
88
-
1.**Export and import certificates with private keys**: - Export certificates from the source host using certlm.msc or PowerShell:
- Hyper-V and HGS official documentation on configuration and troubleshooting.
150
-
151
-
This guide provides a structured approach to resolving issues with vTPM, Shielded VM, and HGS in Hyper-V clusters. Always test changes in a non-production environment and maintain backups before implementing solutions. For unresolved issues, consult your hardware vendor or Microsoft support.
0 commit comments