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
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,13 @@ description: Learn how to troubleshoot VM hibernation.
4
4
author: mattmcinnes
5
5
ms.service: virtual-machines
6
6
ms.topic: how-to
7
-
ms.date: 10/31/2023
7
+
ms.date: 05/16/2024
8
8
ms.author: jainan
9
9
ms.reviewer: mattmcinnes
10
10
---
11
11
12
12
# Troubleshooting hibernation in Azure
13
13
14
-
> [!IMPORTANT]
15
-
> Azure Virtual Machines - Hibernation is currently in PREVIEW.
16
-
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
17
-
18
14
Hibernating a virtual machine allows you to persist the VM state to the OS disk. This article describes how to troubleshoot issues with the hibernation feature, issues creating hibernation enabled VMs, and issues with hibernating a VM.
19
15
20
16
For information specific to Linux VMs, check out the [Linux VM hibernation troubleshooting guide](./linux/hibernate-resume-troubleshooting-linux.md).
@@ -75,4 +71,4 @@ Starting a hibernated VM is similar to starting a stopped VM. In addition to com
75
71
| ResultCode | errorDetails |
76
72
|--|--|--|
77
73
| OverconstrainedResumeFromHibernatedStateAllocationRequest | Allocation failed. VM(s) with the following constraints can't be allocated, because the condition is too restrictive. Remove some constraints and try again. Constraints applied are: Networking Constraints (such as Accelerated Networking or IPv6), Resuming from hibernated state (retry starting the VM after some time or alternatively stop-deallocate the VM and try starting the VM again). |
78
-
| AllocationFailed | VM allocation failed from hibernated state due to insufficient capacity. Try again later or alternatively stop-deallocate the VM and try starting the VM. |
74
+
| AllocationFailed | VM allocation failed from hibernated state due to insufficient capacity. Try again later or alternatively stop-deallocate the VM and try starting the VM. |
-[NVv4-series](../virtual-machines/nvv4-series.md) (in preview)
56
+
-[NVadsA10v5-series](../virtual-machines/nva10v5-series.md) (in preview)
57
+
58
+
> [!IMPORTANT]
59
+
> Azure Virtual Machines - Hibernation for GPU VMs is currently in PREVIEW.
60
+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
57
61
58
62
### General limitations
59
-
- You can't enable hibernation on existing VMs.
60
-
- You can't resize a VM if it has hibernation enabled.
63
+
- You can resize VMs that have hibernation enabled, but not when the VM is in a *Hibernated* state. The VM should either be in a *Running* or *Stopped* state.
61
64
- Hibernation is only supported with Nested Virtualization when Trusted Launch is enabled on the VM
62
65
- When a VM is hibernated, you can't attach, detach, or modify any disks or NICs associated with the VM. The VM must instead be moved to a Stop-Deallocated state.
63
66
- When a VM is hibernated, there's no capacity guarantee to ensure that there's sufficient capacity to start the VM later. In the rare case that you encounter capacity issues, you can try starting the VM at a later time. Capacity reservations don't guarantee capacity for hibernated VMs.
64
67
- You can only hibernate a VM using the Azure portal, CLI, PowerShell, SDKs and API. Hibernating the VM using guest OS operations don't result in the VM moving to a hibernated state and the VM continues to be billed.
65
-
- You can't disable hibernation on a VM once enabled.
66
68
67
69
### Azure feature limitations
68
70
- Ephemeral OS disks
69
71
- Shared disks
70
72
- Availability Sets
71
-
- Virtual Machine Scale Sets Uniform
73
+
- Virtual Machine Scale Sets in Uniform orchestration mode are not supported. Virtual Machine Scale Sets in [Flexible orchestration mode](../virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes.md) are supported.
72
74
- Spot VMs
73
75
- Managed images
74
76
- Azure Backup
75
77
- Capacity reservations
76
78
77
79
## Prerequisites to use hibernation
78
-
- Hibernation must be enabled on your VM while creating the VM.
80
+
- Hibernation must be enabled on your VM.
79
81
- A persistent OS disk large enough to store the contents of the RAM, OS and other applications running on the VM is connected.
80
82
- The VM size supports hibernation.
81
83
- The VM OS supports hibernation.
@@ -104,10 +106,10 @@ Refer to the [Linux hibernation troubleshooting guide](./linux/hibernate-resume-
104
106
- Once a VM is placed in a hibernated state, you aren't charged for the VM, just like how you aren't charged for VMs in a stop (deallocated) state. You're only charged for the OS disk, data disks and any static IPs associated with the VM.
105
107
106
108
- Can I enable hibernation on existing VMs?
107
-
-No, you can't enable hibernation on existing VMs. You can only enable hibernation at the time of creating a VM.
109
+
-Yes, you can enable hibernation on existing VMs.
108
110
109
111
- Can I resize a VM with hibernation enabled?
110
-
-No. Once you enable hibernation on a VM, you can't resize the VM.
112
+
-Yes, you can resize a VM with hibernation enabled. You cannot resize the VM if it's in a *Hibernated* state. Move the VM to either a *Running* or *Stopped* state before resizing.
111
113
112
114
- Can I modify a VM once it is in a hibernated state?
113
115
- No, once a VM is in a hibernated state, you can't perform actions like resizing the VM and modifying the disks. Additionally, you can't detach any disks or networking resources that are currently attached to the VM or attach new resources to the VM. You can however stop(deallocate) or delete the VM if you want to detach these resources.
@@ -117,8 +119,6 @@ Refer to the [Linux hibernation troubleshooting guide](./linux/hibernate-resume-
117
119
118
120
- When you hibernate a VM, the memory contents are first persisted in the OS disk, then the VM hibernates. You can't resize VMs in a hibernated state, nor detach/attach disks and networking resources to the VM.
119
121
120
-
- Can you disable hibernation?
121
-
- No, you can't disable hibernation on a VM.
122
122
123
123
- Can I initiate hibernation from within the VM?
124
124
- To hibernate a VM you should use the Azure portal, CLI, PowerShell commands, SDKs and APIs. Triggering hibernation from inside the VM still results in your VM being billed for the compute resources.
Copy file name to clipboardExpand all lines: articles/virtual-machines/includes/hibernate-resume-intro.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,13 @@
5
5
author: mattmcinnes
6
6
ms.service: virtual-machines
7
7
ms.topic: include
8
-
ms.date: 04/10/2024
8
+
ms.date: 05/14/2024
9
9
ms.author: jainan
10
10
ms.reviewer: mattmcinnes
11
11
ms.custom: include file
12
12
---
13
13
14
-
> [!IMPORTANT]
15
-
> Azure Virtual Machines - Hibernation is currently in PREVIEW.
16
-
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
17
14
18
15
Hibernation allows you to pause VMs that aren't being used and save on compute costs. It's an effective cost management feature for scenarios such as:
19
16
- Virtual desktops, dev/test servers, and other scenarios where the VMs don't need to run 24/7.
20
-
- Systems with long boot times due to memory intensive applications. These applications can be initialized on VMs and hibernated. These “prewarmed” VMs can then be quickly started when needed, with the applications already up and running in the desired state.
17
+
- Systems with long boot times due to memory intensive applications. These applications can be initialized on VMs and hibernated. These “prewarmed” VMs can then be quickly started when needed, with the applications already up and running in the desired state.
To view the state of a VM in the portal, check the 'Status' on the overview page. It should report as "Hibernated (deallocated)"
68
68
69
-

69
+

70
70
71
71
#### [PowerShell](#tab/PSStatCheck)
72
72
@@ -193,7 +193,7 @@ You can start hibernated VMs just like how you would start a stopped VM. This ca
193
193
### [Portal](#tab/PortalStartHiber)
194
194
To start a hibernated VM using the Azure portal, click the 'Start' button on the VM Overview page.
195
195
196
-

196
+

0 commit comments