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”…

wrap-up:

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]

Share
Disqus Comments Loading...

Recent Posts

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

May 14, 2019 8:22 am 08:22

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 19:45

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 08:14

Run SystemD Script Before System Shutdown

for the sheer hell of it, a few weeks ago i wanted to see if i could properly and successfully… Read More

April 20, 2019 10:14 am 10:14

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 07:55

Force Delete Windows Server DHCP Failover Relationship

if you've found yourself here then chances are you messed up one of your domain controllers or at least one… Read More

April 20, 2019 5:54 am 05:54