Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (2024)

Welcome to my blog. I'm writing this blog to share my experiences mainly in IT focused on Microsoft Azure. The blog is part of the ITProCloud GmbH.

Microsoft introduced a new feature for Virtual Machines: Hibernation (link to MS post). That is awesome and allows totally new scenarios, not even for Azure Virtual Desktop. But used with Azure Virtual Desktop, hibernation gives new possibilities to provide desktop. I certainly don’t need to mention that a hibernated VM has no compute costs.

Thanks a lot to Microsoft and the AVD product group for the invitation to the private preview and the encouragement to adapt my products accordingly.

How does hibernation work in Azure?

The possibility of hibernation can be configured during the rollout of new virtual machines (Gallery Images) or for existing virtual machines. For both cases: The VM type must support hibernation, and the OS disk must be large enough to store the OS, the pagefile, and the hibernation file (size of the memory). For existing VMs, the pagefile must be moved to C: before. For VMs or AVD session hosts, you can use the free #WVDAdmin tool to convert existing VMs or rollout new VMs (tick the checkbox). In both cases, the page file is moved to C: automatically.Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (2)Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (3)

A VM or session host can be hibernated with #WVDAdmin or #Hydra.Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (4)Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (5)

The Virtual Machines note in #WVDAdmin shows the hibernation mode of a VM.Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (6)

Important to know: You can not modify the disk of a hibernated VM. That includes not changing the disk type to HDD after the deallocation (that can be configured using Hydras’ autoscaling). Hint: I guess I found a way to do both. I would update this post if I validated this.

Hibernation for AVD personal hosts

VDI users have the highest benefit from using hibernation. After the work is done, they can hibernate the host and continue working later while all the applications stay open. Currently, the Microsoft AVD autoscaling cannot support the user with hibernation. If you are using Hydra, you can configure hibernation for VDI: Configure a timeout for a disconnected session and tic the box “Prefer hibernation” (the VM must support hibernation; convert an existing VM with #WVDAdmin):Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (8)

If the user disconnect, the session host will be hibernated by Hydra. If the user tries to reconnect (e.g., with Power-On-Connect), the VM starts, and the user can continue.

Additionally, tick the two boxes “Prefer hibernation” and “Handle user-initiated hibernation (Experimental)” in Autoscale and Autoshutdown to allow a user with the proper rights to hibernate inside of Windows. In this case, Hydra ensures that the VM goes into the correct hibernation mode.Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (9)

Hibernation for AVD pooled hosts

Awaking a VM is in the physical world faster than starting Windows. So it could make sense to prefer hibernation to bring hosts down if they are no longer needed and awake the hosts on demand. Hydra also allows autoscaling with hibernation if you tick “Prefer hibernation” in Autoscale and Autoshutdown.But how big is the speed advantage? I did some measurements to figure this out. For this case, I used a VM (DS3 v2), 256 GByte OS-disk and did several starts with several options.

In every scenario, I measured three values:

  • X: Seconds to bring the VM from deallocated to running
  • Y: Seconds from deallocated to be available in AVD
  • Z: Seconds to deallocate/hibernate the VM

Scenario 1: Hibernated VM (withou session), OS-disk is HDD

x: deallocated to runningy: deallocated to be availablez: hibernate
1188664
2188063
3188764
4178364
5178151
689469
Avg:17.785.262.5

Scenario 2: Hibernated VM (withou session), OS-disk is Premium

x: deallocated to runningy: deallocated to be availablez: hibernate
1264945
2175659
3215661
4265544
5397248
6175644
Avg:24.357.350.2

Scenario 3: Deallocated VM, OS-disk is HDD

x: deallocated to runningy: deallocated to be availablez: deallocate
11711740
22011944
31611344
41510239
51511050
62111167
Avg:17.311247.3

Scenario 4: Deallocated VM, OS-disk is Premium

x: deallocated to runningy: deallocated to be availablez: deallocate
1208144
2207743
3138536
44911337
5238245
6184238
Avg:23.88040.5

The time for a hibernated host to become available in AVD is 23% faster than starting a deallocated host.

Hibernation is 23% faster than the deallocation and allocation of a VM or session host. While you need bigger OS disks for hibernation and while you cannot use Hydras’ advantages of switching disk types (to HDD after deallocation and to premium before starting a host). So, it’s up to you to use hibernation for pooled hosts. I would go the start/stop way for pooled hosts to continue using smaller disks and the HDD-type switching feature. But for personal / VDI hosts, it can make absolute sense: It’s an excellent user experience for the end-users.

Fazit:

As I mentioned before, I’m thrilled to be involved in the preview to prepare my tools and solutions around AVD. Hibernation is fantastic and, especially for personal host pools, a great experience. Feel free to check out my tools (I only list the new features around hibernation):

WVDAdmin - my free community solution to work with AVD

  • Hibernate and awake session hosts
  • Hibernate and awake VMs
  • Rollout session hosts based on a custom image with hibernation enabled
  • Reconfigure suitable VMs to use hibernation
  • List all VMs and show the hibernation state

Hydra - free for up to 6 hosts per pool

  • Hibernate and awake session hosts / VMs
  • Next week: Rollout session hosts based on a custom image with hibernation enabled
  • Autoscaling with “Prefer Hibernation” for pooled hosts
  • Autoscaling with “Prefer Hibernation” for VDIs (preserves the user session)
  • Hibernates a VDI after a session is disconnected for a while
  • Hibernates a VDI after a user-initiated hibernation inside of Windows

Please let me know what you think about using hibernation in AVD.

Microsoft Azure and hibernated Virtual Machines and Azure Virtual Desktop Hibernation (2024)
Top Articles
How do I eat healthy at Qdoba? | - From Hunger To Hope
Qdoba Calorie Calculator - GEGCalculators
San Angelo, Texas: eine Oase für Kunstliebhaber
Koopa Wrapper 1 Point 0
How Many Cc's Is A 96 Cubic Inch Engine
Insidious 5 Showtimes Near Cinemark Tinseltown 290 And Xd
Nm Remote Access
Knaben Pirate Download
South Bend Tribune Online
Erskine Plus Portal
Crossword Nexus Solver
7 Fly Traps For Effective Pest Control
Truth Of God Schedule 2023
Booknet.com Contract Marriage 2
Veracross Login Bishop Lynch
Lakewood Campground Golf Cart Rental
Terry Bradshaw | Biography, Stats, & Facts
Drug Test 35765N
Form F-1 - Registration statement for certain foreign private issuers
Low Tide In Twilight Ch 52
Lines Ac And Rs Can Best Be Described As
Defending The Broken Isles
Apparent assassination attempt | Suspect never had Trump in sight, did not get off shot: Officials
FAQ's - KidCheck
Dl.high Stakes Sweeps Download
Progressbook Newark
Word Trip Level 359
Workboy Kennel
new haven free stuff - craigslist
Golden Tickets
Litter-Robot 3 Pinch Contact & DFI Kit
Appraisalport Com Dashboard /# Orders
Consume Oakbrook Terrace Menu
Foolproof Module 6 Test Answers
Scanning the Airwaves
World History Kazwire
Uc Santa Cruz Events
Entry of the Globbots - 20th Century Electro​-​Synthesis, Avant Garde & Experimental Music 02;31,​07 - Volume II, by Various
Casamba Mobile Login
062203010
Differential Diagnosis
Lucyave Boutique Reviews
Celsius Claims Agent
Truck Works Dothan Alabama
Wolf Of Wallstreet 123 Movies
Craigslist Pet Phoenix
Kushfly Promo Code
Okta Login Nordstrom
Rick And Morty Soap2Day
Www Ventusky
Suzanne Olsen Swift River
Bunbrat
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 5507

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.