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: articles/virtual-machines/hibernate-resume-troubleshooting.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,6 @@ If you're unable to create a VM with hibernation enabled, ensure that you're usi
37
37
| 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 |
38
38
| OperationNotAllowed | Referencing a Dedicated Host isn't supported for a VM with Hibernation capability. ||
39
39
| 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 |
41
40
| 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 |
42
41
| 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 |
43
42
@@ -183,7 +182,7 @@ Commonly seen issues:
183
182
| Issue | Action |
184
183
|--|--|
185
184
| 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|
187
186
188
187
Logs needed for troubleshooting:
189
188
@@ -236,6 +235,18 @@ If the guest OS isn't configured for hibernation, take the appropriate action to
236
235
| 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. |
237
236
| 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. |
238
237
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
+
239
250
## Unable to resume a VM
240
251
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
@@ -269,7 +269,12 @@ Once you've created a VM with hibernation enabled, you need to configure the gue
269
269
There are many ways you can configure the guest OS for hibernation in Linux VMs.
270
270
271
271
#### 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).
0 commit comments