Skip to content

Commit c5b6e51

Browse files
Merge pull request #257973 from mattmcinnes/hibernateigniteedits
Hibernate-Resume pre-ignite PM edit request
2 parents ba9ba4a + e2b731b commit c5b6e51

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

articles/virtual-machines/hibernate-resume-troubleshooting.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ If you're unable to create a VM with hibernation enabled, ensure that you're usi
3737
| OperationNotAllowed | User VM Image isn't supported for a VM with Hibernation capability. | Use a platform image or Shared Gallery Image if you want to use the hibernation feature |
3838
| OperationNotAllowed | Referencing a Dedicated Host isn't supported for a VM with Hibernation capability. | |
3939
| OperationNotAllowed | Referencing a Capacity Reservation Group isn't supported for a VM with Hibernation capability. | |
40-
| OperationNotAllowed | Enabling/disabling hibernation on an existing VM requires the VM to be stopped (deallocated) first. | Stop-deallocate the VM, patch with VM to enable hibernation and then start the VM |
4140
| OperationNotAllowed | Hibernation can't be enabled on Virtual Machine since the OS Disk Size ({0} bytes) should at least be greater than the VM memory ({1} bytes). | Ensure the OS disk has enough space to be able to persist the RAM contents once the VM is hibernated |
4241
| OperationNotAllowed | Hibernation can't be enabled on Virtual Machines created in an Availability Set. | Hibernation is only supported for standalone VMs & Virtual Machine Scale Sets Flex VMs |
4342

@@ -183,7 +182,7 @@ Commonly seen issues:
183182
| Issue | Action |
184183
|--|--|
185184
| Guest fails to hibernate because Hyper-V Guest Shutdown Service is disabled. | [Ensure that Hyper-V Guest Shutdown Service isn't disabled.](/virtualization/hyper-v-on-windows/reference/integration-services#hyper-v-guest-shutdown-service) Enabling this service should resolve the issue. |
186-
| Guest fails to hibernate because HVCI (Memory integrity) is enabled. | Hibernation isn't supported with HVCI. Disabling HVCI should resolve the issue. |
185+
| Guest fails to hibernate because HVCI (Memory integrity) is enabled. | If Memory Integrity is enabled in the guest and you are trying to hibernate the VM, then ensure your guest is running the minimum OS build required to support hibernation with Memory Integrity. <br /> <br /> Win 11 22H2 – Minimum OS Build - 22621.2134 <br /> Win 11 21H1 - Minimum OS Build - 22000.2295 <br /> Win 10 22H2 - Minimum OS Build - 19045.3324 |
187186

188187
Logs needed for troubleshooting:
189188

@@ -236,6 +235,18 @@ If the guest OS isn't configured for hibernation, take the appropriate action to
236235
| VMHibernateFailed | Hibernating the VM 'hiber_vm_res_5' failed due to an internal error. Retry later. | Retry after 5mins. If it continues to fail after multiple retries, check if the guest is correctly configured to support hibernation or contact Azure support. |
237236
| VMHibernateNotSupported | The VM 'Z0000ZYJ000' doesn't support hibernation. Ensure that the VM is correctly configured to support hibernation. | Hibernating a VM immediately after boot isn't supported. Retry hibernating the VM after a few minutes. |
238237

238+
## Azure extensions disabled on Debian images
239+
Azure extensions are currently disabled by default for Debian images (more details here: https://lists.debian.org/debian-cloud/2023/07/msg00037.html). If you wish to enable hibernation for Debian based VMs through the LinuxHibernationExtension, then you can re-enable support for VM extensions via cloud-init custom data:
240+
241+
```bash
242+
#!/bin/sh
243+
sed -i -e 's/^Extensions\.Enabled =.* $/Extensions.Enabled=y/" /etc/waagent.conf
244+
```
245+
246+
:::image type="content" source="./media/hibernate-resume/debian-image-enable-extensions-via-cloud-init.png" alt-text="Screenshot of the cloud init input field for new Linux VMs.":::
247+
248+
Alternatively, you can enable hibernation on the guest by [installing the hibernation-setup-tool](hibernate-resume.md#option-2-hibernation-setup-tool).
249+
239250
## Unable to resume a VM
240251
Starting a hibernated VM is similar to starting a stopped VM. For errors and troubleshooting steps related to starting a VM, refer to this guide
241252

articles/virtual-machines/hibernate-resume.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ In the Azure portal under 'Preview features', select 'Hibernation Preview'. The
144144

145145
### [PowerShell](#tab/checkhiberPS)
146146
```powershell
147-
Get-AzProviderFeature -FeatureName " VMHibernationPreview " -ProviderNamespace "Microsoft.Compute"
147+
Get-AzProviderFeature -FeatureName "VMHibernationPreview" -ProviderNamespace "Microsoft.Compute"
148148
```
149149
### [CLI](#tab/checkhiberCLI)
150150
```azurecli
@@ -269,7 +269,12 @@ Once you've created a VM with hibernation enabled, you need to configure the gue
269269
There are many ways you can configure the guest OS for hibernation in Linux VMs.
270270

271271
#### Option 1: LinuxHibernateExtension
272-
You can install the [LinuxHibernateExtension](/cli/azure/azure-cli-extensions-overview) on your Linux VM to configure the guest OS for hibernation.
272+
When you create a Hibernation-enabled VM via the Azure portal, the LinuxHibernationExtension is automatically installed on the VM.
273+
274+
If the extension is missing, you can [manually install the LinuxHibernateExtension](/cli/azure/azure-cli-extensions-overview) on your Linux VM to configure the guest OS for hibernation.
275+
276+
>[!NOTE]
277+
> Azure extensions are currently disabled by default for Debian images. To re-enable extensions, [check the hibernation troubleshooting guide](hibernate-resume-troubleshooting.md#azure-extensions-disabled-on-debian-images).
273278
274279
##### [CLI](#tab/cliLHE)
275280

101 KB
Loading

0 commit comments

Comments
 (0)