Hot Add & Remove Static Memory in a Hyper-V vNext Virtual Machine

One of the very nice and handy new capabilities in Windows Server vNext Hyper-V (Windows Server 2015 or Windows Server 10?) is the fact that you can now hot add or remove memory from a virtual machine with a fixed amount of memory. Another step towards continuous availability.

Here’s a test virtual machine RAGNAR running the Technology Preview bits on my test cluster. As you can see it has 1024MB of fixed memory. And Dynamic memory is not enabled.

image

I can simply adjust this upward by typing in the value and clicking “Apply”

image

and downwards in the same way

image

Cool huh!

On top of this to make sure you’re not adding memory needlessly when someone says they need more memory for their VM you can see the memory demand now in the GUI. Both in Hyper-V Manager and in the Failover Clustering GUI.

image

image

The technical preview of Windows vNext is looking good even in this early stage and I have no doubt it’s only going to get better Open-mouthed smile.

Some things to note

  • It’s configurable via PowerShell so you can start dreaming of script to query memory assignment & demand and use that output to redistribute memory available on the host amongst the VMs …

image

  • Both Hyper-V host and guest have to run vNext (Technical Preview)
  • The guest has to be a generation 2 VM
  • It’s still virtualization technology and not magic, so if you try to assign more memory than available you’ll get a warning Winking smile

image

7 thoughts on “Hot Add & Remove Static Memory in a Hyper-V vNext Virtual Machine

  1. I tested this with Dynamic Memory Enabled. At the moment i get an error while adding more memory. I hope that they will include the hot add feature for dynamic memory ass well in the RTM version

  2. Looking forward to a blog post or paper from MS on how they do this. Is this utilizing the actual hot add memory feature that has been available for hardware since Windows 2003 and do applications need something to utilize this or is entirely transparent.

  3. Pingback: Hyper-V Technical Preview Live Migration & Changing Static Memory Size | Working Hard In IT

Leave a Reply, get the discussion going, share and learn with your peers.

This site uses Akismet to reduce spam. Learn how your comment data is processed.