Hyper-V

Upgrading the VM configuration version in Windows Server 2016 Hyper-V

In the earlier versions of Hyper-V host, after you have upgraded your Hyper-V host to a new operating system, VMs configuration version will be upgraded automatically as the Hyper-V host as soon as you moved the virtual machine. With Windows Server 2016, Hyper-V host will not automatically upgrade VMs configuration version. Instead, upgrading is now a manual process. With rolling upgrades, Windows Server 2012 R2 version 5.0 will run on both Windows server 2012 R2 and Windows server 2016 Hyper-V host. This help us to leave VMs unchanged until the upgrade of all failover cluster node is completed.
update vmversion msserverpro

With rolling upgrades, when you feel that you will not require to move the VMs to legacy Hyper-V host, Windows Server 2012 R2, then upgrade all the Hyper-V host with Windows Server 2016. After all the Hyper-V hosts are upgraded, then shut down VMs and upgrade the configuration version to get new features of Windows Server 2016 Hyper-V such as hot add/remove of memory, production checkpoints, and resizing of live shared drives.

Check the current virtual machine configuration version:

Open Windows PowerShell with Run as Administrator. Use the Get-VM cmdlet to run the following command to get the VMs versions.
Get-VM * | Format-Table Name,Version

3 31 2017 11 04 35 PM

As a figure, version 5.0 is the configuration version of Windows Server 2012 R2.

3 31 2017 11 11 59 PM

Update a single virtual machine configuration version with GUI:

In the Hyper-V Manager, shut down the virtual machine you want to Upgrade Configuration Version. Right click the virtual machine, KTM-DB1, select Upgrade Configuration Version..

4 1 2017 12 01 19 AM

In the Upgrade Configuration Version Windows, click Upgrade and verify the Configuration Version of virtual machine. The Configuration Version must be 8.0 because Windows Server 2016 Hyper-V version is 8.0.

Related Post  Configuring Storage Live Migration in Windows Server 2012 R2 Hyper-V

4 1 2017 12 02 18 AM

4 1 2017 12 05 19 AM

 

Update a single virtual machine configuration version with PowerShell:

To upgrade the virtual machine configuration version by Windows PowerShell, use the
Update-VMVersion cmdlet. Run the following command from an elevated Windows PowerShell command prompt:

Update-VMVersion <vmname>

3 31 2017 11 27 28 PM

Update all virtual machines configuration version on all cluster nodes:

To update all virtual machines version on all cluster nodes, run the following command from an elevated Windows PowerShell command prompt:

First, use Get-VM –ComputerName (Get-ClusterNode) to verify the current configuration version. As a figure, version 5.0 is the configuration version of Windows Server 2012 R2 and version 8.0 is the configuration version of Windows Server 2016.

3 31 2017 11 35 17 PM

Secondly, Use Get-VM –ComputerName (Get-ClusterNode) | Stop-VM to shut down all the VMs in the cluster. Then Press A to Yess to All to stop VMs.

3 31 2017 11 37 35 PM

In the Failover Cluster Manager Windows, verify that all the VMs are shut down state.

3 31 2017 11 39 42 PM

Using Windows PowerShell command to verify the VMs are in shutdown state.

3 31 2017 11 41 27 PM

Thirdly, run the following command from an elevated Windows PowerShell command prompt:
Get-VM –ComputerName (Get-ClusterNode) | Update-VMVersion

Press A to Yess to All.

Use Get-VM –ComputerName (Get-ClusterNode) to verify the current configuration version is 8.0.

4 1 2017 12 16 19 AM

Lastly, start the virtual machines run the following command from an elevated Windows PowerShell command prompt:

Get-VM –ComputerName (Get-ClusterNode) | Start-VM

4 1 2017 12 23 02 AM

 

 

 

Summary:

Upgrading the VM configuration version from 5.0 to 8.0 is very important to get the new feature of Windows Server 2016 Hyper-V. In Windows Server 2016, Hyper-V version is 8.0. This includes hot add/ remove of memory, production checkpoints and resizing of live shared drives. I hope this article help you to get the new features of Windows Server 2016 Hyper-V.

Related Post  Configuring Windows Server 2012 NIC Teaming to a Hyper-V Virtual Machine


3 comments

  • Shyam

    Hi,

    I have upgraded my server from windows 2012 r2 data center to server 2016 data center but virtual machine configuration version still showing 5.0 and i want to upgrade it 8.0 but upgrade configuration version tab is not showing in action pane.

    Please help.

  • JD

    how do i downgrade the version?

Leave a Reply

Your email address will not be published. Required fields are marked *