Skip to content

Commit b45e271

Browse files
Merge pull request #275402 from jain-ank/patch-23
Hibernation GA updates
2 parents f447a74 + e3de89d commit b45e271

16 files changed

+211
-141
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ description: Learn how to troubleshoot VM hibernation.
44
author: mattmcinnes
55
ms.service: virtual-machines
66
ms.topic: how-to
7-
ms.date: 10/31/2023
7+
ms.date: 05/16/2024
88
ms.author: jainan
99
ms.reviewer: mattmcinnes
1010
---
1111

1212
# Troubleshooting hibernation in Azure
1313

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-
1814
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.
1915

2016
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
7571
| ResultCode | errorDetails |
7672
|--|--|--|
7773
| 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. |

articles/virtual-machines/hibernate-resume.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Overview of hibernating your VM.
44
author: mattmcinnes
55
ms.service: virtual-machines
66
ms.topic: how-to
7-
ms.date: 04/10/2024
7+
ms.date: 05/14/2024
88
ms.author: jainan
99
ms.reviewer: mattmcinnes
1010
ms.custom: devx-track-azurecli, devx-track-azurepowershell
@@ -52,30 +52,32 @@ VM sizes with up to 64-GB RAM from the following General Purpose VM series suppo
5252
- [Edsv5-series](edv5-edsv5-series.md)
5353

5454
VM sizes with up to 112-GB RAM from the following GPU VM series support hibernation.
55-
- [NVv4-series](../virtual-machines/nvv4-series.md)
56-
- [NVadsA10v5-series](../virtual-machines/nva10v5-series.md)
55+
- [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.
5761
5862
### 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.
6164
- Hibernation is only supported with Nested Virtualization when Trusted Launch is enabled on the VM
6265
- 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.
6366
- 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.
6467
- 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.
6668

6769
### Azure feature limitations
6870
- Ephemeral OS disks
6971
- Shared disks
7072
- 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.
7274
- Spot VMs
7375
- Managed images
7476
- Azure Backup
7577
- Capacity reservations
7678

7779
## Prerequisites to use hibernation
78-
- Hibernation must be enabled on your VM while creating the VM.
80+
- Hibernation must be enabled on your VM.
7981
- A persistent OS disk large enough to store the contents of the RAM, OS and other applications running on the VM is connected.
8082
- The VM size supports hibernation.
8183
- The VM OS supports hibernation.
@@ -104,10 +106,10 @@ Refer to the [Linux hibernation troubleshooting guide](./linux/hibernate-resume-
104106
- 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.
105107

106108
- 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.
108110

109111
- 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.
111113

112114
- Can I modify a VM once it is in a hibernated state?
113115
- 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-
117119

118120
- 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.
119121

120-
- Can you disable hibernation?
121-
- No, you can't disable hibernation on a VM.
122122

123123
- Can I initiate hibernation from within the VM?
124124
- 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.

articles/virtual-machines/includes/hibernate-resume-intro.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
author: mattmcinnes
66
ms.service: virtual-machines
77
ms.topic: include
8-
ms.date: 04/10/2024
8+
ms.date: 05/14/2024
99
ms.author: jainan
1010
ms.reviewer: mattmcinnes
1111
ms.custom: include file
1212
---
1313

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.
1714

1815
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:
1916
- 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.

articles/virtual-machines/includes/hibernate-resume-platform-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Once a VM with hibernation enabled has been created and the guest OS is configur
2020

2121
To hibernate a VM in the Azure portal, click the 'Hibernate' button on the VM Overview page.
2222

23-
![Screenshot of the button to hibernate a VM in the Azure portal.](/azure/virtual-machines/media/hibernate-resume/hibernate-overview-button.png)
23+
![Screenshot of the button to hibernate a VM in the Azure portal.](/azure/virtual-machines/media/hibernate-resume/hibernate-the-vm.png)
2424

2525
#### [CLI](#tab/CLIDoHiber)
2626

@@ -66,7 +66,7 @@ https://management.azure.com/subscriptions/.../providers/Microsoft.Compute/virtu
6666

6767
To view the state of a VM in the portal, check the 'Status' on the overview page. It should report as "Hibernated (deallocated)"
6868

69-
![Screenshot of the Hibernated VM's status in the Azure portal listing as 'Hibernated (deallocated)'.](/azure/virtual-machines/media/hibernate-resume/is-hibernated-status.png)
69+
![Screenshot of the Hibernated VM's status in the Azure portal listing as 'Hibernated (deallocated)'.](/azure/virtual-machines/media/hibernate-resume/vm-in-hibernated-state.png)
7070

7171
#### [PowerShell](#tab/PSStatCheck)
7272

@@ -193,7 +193,7 @@ You can start hibernated VMs just like how you would start a stopped VM. This ca
193193
### [Portal](#tab/PortalStartHiber)
194194
To start a hibernated VM using the Azure portal, click the 'Start' button on the VM Overview page.
195195

196-
![Screenshot of the Azure portal button to start a hibernated VM with an underlined status listed as 'Hibernated (deallocated)'.](/azure/virtual-machines/media/hibernate-resume/start-hibernated-vm.png)
196+
![Screenshot of the Azure portal button to start a hibernated VM with an underlined status listed as 'Hibernated (deallocated)'.](/azure/virtual-machines/media/hibernate-resume/start-vm.png)
197197

198198
### [CLI](#tab/CLIStartHiber)
199199

0 commit comments

Comments
 (0)