Windows Server 2016 Hyper-V allows add/remove RAM while VM is running

Windows Server 2016 Hyper-V allows add/remove RAM while VM is running

In fact you can adjust the amount of memory assigned to a virtual machine while it’s running, even if you haven’t enabled Dynamic Memory. This works for both generation 1 and generation 2 virtual machines.

Additionally some of the new features for Hyper-V include an update in the management tool which now allows management of all Hyper-V generations.

So the lab setup was pretty simple:

This time I used my desktop system with VMware Workstation installed, but you can also use ESXi and configure the requirements (via web client).

Physical Box (running desktop OS …. Windows 8.1) > VMware Workstation VM running Server 2016 TP4 (named “2016TP4MAIN” ) with Intel VT-x activated > Server 2016 TP4 Hyper-V VM which we will be testing the hot-add or hot-remove memory.


Note that in my case I can spin quite a few VMs on that host which has 64Gb of RAM. The VMs were running from local flash storage.

Bellow you can see the settings of the VM. You’ll need to check the box “Virtualize Intel VT-x/EPT or AMD-V/RVI” check box.

After installation of that VM you activate Hyper-V role via add/remove roles and features > restarts the system > open Hyper-v management console and create a new VM. In my case I just picked the same ISO – Windows Server 2016 TP4 – and did the test on that VM.

The feature works rather well. While testing this I also noticed no problems with network connectivity (no loss of packets) within a command line windows…

Here is a quick video where you can see the different steps:

New in Windows Server 2016 TP4:

New VM configuration file format – (VMCX) Virtual machines now have a new configuration file format which is designed to increase the efficiency of reading and writing virtual machine configuration data. It’s also designed to reduce the potential for data corruption in the event of a storage failure. The new configuration files use the .VMCX file extension for virtual machine configuration data and the .VMRS file extension for runtime state data.

A file with the .VMCX file extension is in binary format. Directly editing a file with a .VMCX or .VMRS file extension isn’t supported.

PowerShell Direct – this is interesting approach to run PowerShell session in a VM from a host (instead from inside of that particular VM) without network connection between the host and the VM. You’ll need to have Server 2016 and the VM has to be also Server 2016. PowerShell Direct runs between the host and the virtual machine. So you don’t need a network connection or to enable remote management. You do need guest credentials to log into the virtual machine.

Cluster Functional Level – it’s possible to add running Server 2016 Hyper-V hosts into a Hyper-V cluster running 2012R2 hosts. The cluster continues to function at the 2012R2 cluster level untill you upgrade all the hosts to the 2016 version of Hyper-V. Then only you can upgrade the cluster functional level via PowerShell cmdlet Update-ClusterFunctionalLevel.  Note that like at VMware, there is no way back…  (Note that you might check this post: Three Ways to Downgrade Virtual Machine hardware version – to roll back VM version in VMware environment.

Production checkpoint –  new snapshots. Note that “old” snapshot (checkpoint) technology still can be used if you want…

create “point in time” images of a virtual machine, which can be restored later on in a way that is completely supported for all production workloads. This is achieved by using backup technology inside the guest to create the checkpoint, instead of using saved state technology. For production checkpoints, the Volume Snapshot Service (VSS) is used inside Windows virtual machines. Linux virtual machines flush their file system buffers to create a file system consistent checkpoint.

Note that by default the Production checkpoint is “ON”…


Quite a lot of new stuff in this release, and I did not talk about all of them. I did not touch a word on nested virtualization (now possible to create virtual machine as a Hyper-V host and create virtual machines within that virtualized host). Yes, VMware had this since long time ago, I know….  An Integration services (a VMware tools equivalent) is now distributed separately – through Windows update.
You can download the latest release of Windows Server 2016 TP4 from Microsoft’s site here. Check what’s new in Microsoft Windows Server 2016 TP4 in this post at technet.

[Credit goes to]

Disqus Comments Loading...

Recent Posts

Bittorrent IP Blocklists

In addition to using a VPN service, as an extra precaution I've been using the blocklist feature of my bittorrent… Read More

October 26, 2019 3:31 pm

FreeNAS Error Creating Pool

command '('gpart', 'create', '-s', 'gpt', '/dev/da8')' returned non-zero exit status 1. If you get this error while trying to create… Read More

June 7, 2019 3:44 pm

Change Grub Default Boot Entry on Linux Mint

I'm dual booting Windows and Linux Mint on my laptop. The grub default is to boot into Linux Mint, however… Read More

April 23, 2019 7:45 pm

How to Reset Secure Channel On Active Directory Domain Controller

When you're a little too careless about virtualizing your domain controllers, cloning, migrating, backing up and restoring, returning from vacation… Read More

April 21, 2019 8:14 am

Run Systemd Script Before System Shutdown

I tried to retain the NGINX FastCGI cache and have it persist across system reboots instead of being ephemeral by… Read More

April 20, 2019 10:14 am

Learn Systemctl Usage to Manage Systemd Service in Linux

Systemd is new service manager for Linux. It's a replacement for all previous init systems (SysV/SysVinit & Ubuntu's Upstart) and… Read More

April 20, 2019 7:55 am