Skip to content

Commit 6f9798c

Browse files
authored
Updates from editor
1 parent d3d66fd commit 6f9798c

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

support/windows-server/virtualization/virtual-shielded-host-guardian-service.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
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-
ms.date: 08/06/2025
3+
description: Helps troubleshoot virtual TPM (vTPM), shielded virtual machine (VM), and Host Guardian Service (HGS) issues in Hyper-V clusters.
4+
ms.date: 08/12/2025
55
manager: dcscontentpm
66
audience: itpro
77
ms.topic: troubleshooting
@@ -13,22 +13,22 @@ ai-usage: ai-assisted
1313
---
1414
# Troubleshoot vTPM, shielded VM, and HGS issues in Hyper-V clusters
1515

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.
16+
This guide provides a structured approach to resolving issues with virtual Trusted Platform Module (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.
1717

1818
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.
1919

2020
## End-user and technical symptoms
2121

2222
- 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.
23+
- VMs remain operational only on their original hosts and can't fail over.
2424
- Shielded VMs can't start, migrate, or fail over.
2525
- Shield icons persist in management tools even after disabling shielding.
2626
- Attestation or key unwrap operations fail when using HGS over HTTPS.
2727
- VMs disappear from the cluster or management tools after cluster-aware updating or patching.
28-
- BitLocker enablement fails, or device encryption reports as unsupported.
28+
- BitLocker enablement fails, or device encryption is reported as unsupported.
2929
- HGS attestation fails on all or some guarded hosts.
3030
- VMs fail to start after enabling TPM or upgrading the operating system.
31-
- Expanding the HGS cluster with nodes of differing hardware models fails.
31+
- Expanding an HGS cluster with nodes of differing hardware models fails.
3232
- Device encryption support reports errors such as "Feature is not available," "winre is not configured," or "hardware security test interface failed."
3333

3434
## Specific error messages and event IDs
@@ -55,8 +55,8 @@ VTPM, shielded VM, and HGS are vital features in Hyper-V clusters, especially fo
5555

5656
- 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.
5757
- 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.
58+
- Deleted or unrestored certificates: Shielded VM certificates that are accidentally deleted or not restored cause VMs to become nonoperational.
59+
- Certificate Subject Alternative Name (SAN) or trust issues: HGS over HTTPS fails if certificates lack the required SANs or if there are trust issues.
6060

6161
### Resolution: Certificate and key protector resolution
6262

@@ -65,7 +65,7 @@ VTPM, shielded VM, and HGS are vital features in Hyper-V clusters, especially fo
6565
- Export certificates from the source host using **certlm.msc** or PowerShell:
6666

6767
```powershell
68-
Export-PfxCertificate -Cert (Get-ChildItem -Path Cert:\LocalMachine\My<thumbprint>) -FilePath C:\path\to\export.pfx -Password (ConvertTo-SecureString -String '' -AsPlainText -Force)
68+
Export-PfxCertificate -Cert (Get-ChildItem -Path Cert:\LocalMachine\My<thumbprint>) -FilePath C:\path\to\export.pfx -Password (ConvertTo-SecureString -String '' -AsPlainText -Force)
6969
```
7070
7171
- Import certificates on the destination host:
@@ -84,7 +84,7 @@ VTPM, shielded VM, and HGS are vital features in Hyper-V clusters, especially fo
8484
```
8585
8686
3. Update signing and encryption certificates: Use `Set-VMKeyProtector` to assign the correct certificates.
87-
4. Resolve missing certificates: Create a new VM using the original VHDX file and configure vTPM and key protector.
87+
4. Resolve missing certificates. Create a new VM using the original VHDX file and configure the vTPM and key protector settings.
8888
8989
## Cause 2: TPM, hardware, driver, and firmware incompatibilities
9090
@@ -105,21 +105,21 @@ VTPM, shielded VM, and HGS are vital features in Hyper-V clusters, especially fo
105105
106106
## Cause 3: Configuration and script errors
107107
108-
- Improper PowerShell script usage: Errors in automation scripts for enabling vTPM or shielded VM features can create issues.
108+
- Improper PowerShell script usage: Errors in automation scripts for enabling vTPM or shielded VM features can cause issues.
109109
- Misconfiguration in HGS or cluster setup: Problems occur when required Windows features aren't enabled, or HGS registration is incorrect.
110110
- Mixing management tools: Concurrent modifications using tools like System Center Virtual Machine Manager (SCVMM), Failover Cluster Manager, and PowerShell can corrupt VM configurations.
111111
112112
### Resolution: Configuration, script, and management fixes
113113
114-
1. Correct PowerShell scripts: Ensure scripts appropriately handle vTPM enabling and verification.
115-
2. Fix VM configuration corruption: Recreate VM shells with existing VHDX files and reassign key protectors.
114+
1. Correct PowerShell scripts. Ensure scripts appropriately handle vTPM enabling and verification.
115+
2. Fix VM configuration corruption. Re-create VM shells with existing VHDX files and reassign key protectors.
116116
3. Enable required Windows features:
117117
118118
```powershell
119119
Enable-WindowsOptionalFeature -Online -FeatureName IsolatedUserMode
120120
```
121121
122-
4. Maintain guarded fabric consistency: Import VMs onto hosts within the same guarded fabric.
122+
4. Maintain guarded fabric consistency. Import VMs onto hosts within the same guarded fabric.
123123
124124
## Cause 4: File system and cluster configuration corruption
125125
@@ -128,8 +128,8 @@ VTPM, shielded VM, and HGS are vital features in Hyper-V clusters, especially fo
128128
129129
### Resolution: Permissions, registry, and file system checks
130130
131-
1. Check file and folder permissions: Verify access rights for VM configurations and VHDX files.
132-
2. Validate registry settings: Confirm settings for virtualization-based security, TPM, and HGS.
131+
1. Check file and folder permissions. Verify access rights for VM configurations and VHDX files.
132+
2. Validate registry settings. Confirm settings for virtualization-based security, TPM, and HGS.
133133
134134
## Cause 5: Networking and security protocol issues
135135
@@ -138,9 +138,9 @@ VTPM, shielded VM, and HGS are vital features in Hyper-V clusters, especially fo
138138
139139
### Resolution: HGS attestation, protocol, and networking steps
140140
141-
1. Configure TLS protocols: Update registry settings to enable TLS 1.2 and disable TLS 1.0.
142-
2. Resolve HTTPS certificate issues: Ensure certificates include required SANs for all nodes.
143-
3. Troubleshoot attestation failures: Test network connectivity using `Test-NetConnection`.
141+
1. Configure TLS protocols. Update registry settings to enable TLS 1.2 and disable TLS 1.0.
142+
2. Resolve HTTPS certificate issues. Ensure certificates include the required SANs for all nodes.
143+
3. Troubleshoot attestation failures. Test network connectivity using `Test-NetConnection`.
144144
145145
## Cause 6: Supportability and documentation gaps
146146
@@ -167,5 +167,5 @@ To gather data for troubleshooting:
167167
168168
## References
169169
170-
- [PrepareSpecializedMachine Method](/previous-versions/windows/desktop/mspsserviceprov/msps-provisioningservice-preparespecializedmachine)
171-
- Hyper-V and HGS official documentation on configuration and troubleshooting.
170+
- [PrepareSpecializedMachine method of the Msps_ProvisioningService class](/previous-versions/windows/desktop/mspsserviceprov/msps-provisioningservice-preparespecializedmachine)
171+
- Hyper-V and HGS official documentation on configuration and troubleshooting

0 commit comments

Comments
 (0)