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 vladan.fr]