Upgrade Windows Server and System Center VMM 2012 R2 to 2016
Article
This article shows you how to upgrade Windows Server 2012 R2 hosts and System Center Virtual Machine Manager (VMM) 2012 R2 configured with Azure Site Recovery to Windows Server 2016 and VMM 2016.
Site Recovery contributes to your business continuity and disaster recovery (BCDR) strategy. The service ensures that your virtual machine (VM) workloads remain available when expected and unexpected outages occur.
Important
When you upgrade Windows Server 2012 R2 hosts that are already configured for replication with Azure Site Recovery, you must follow the steps mentioned in this article. Any alternative path chosen for upgrade can result in unsupported states and can affect replication or the ability to perform failover.
In this article, you learn how to upgrade the following configurations in your environment:
Windows Server 2012 R2 hosts that VMM doesn't manage
Windows Server 2012 R2 hosts that a standalone VMM 2012 R2 server manages
Windows Server 2012 R2 hosts that a highly available VMM 2012 R2 server manages
Prerequisites and factors to consider
Before you upgrade, note the following:
If you have Windows Server 2012 R2 hosts that VMM doesn't manage, and it's a standalone environment setup, there will be a break in replication if you try to perform the upgrade.
If you selected Do not store my keys in Active Directory under Distributed Key Management while installing VMM 2012 R2, the upgrades won't finish successfully.
If you're using VMM 2012 R2:
Check the database information on VMM. You can find it by going to the VMM console and selecting Settings > General > Database connection.
Check the service accounts that you're using for the System Center Virtual Machine Manager Agent service.
Make sure that you have a backup of the VMM database.
Note down the database names of the VMM servers involved. You can find them by going to the VMM console and selecting Settings > General > Database connection.
Note down the VMM IDs of the 2012 R2 primary and recovery VMM servers. You can find the VMM IDs in the registry: HKLM:\SOFTWARE\Microsoft\Microsoft System Center Virtual Machine Manager Server\Setup.
Ensure that the new VMM instances that you add to the cluster have the same names as before.
If you're replicating between two sites managed by VMM on both sides, ensure that you upgrade the recovery side before you upgrade the primary side.
Warning
When you're upgrading VMM 2012 R2, under Distributed Key Management, select Store encryption keys in Active Directory. Choose the settings for the service account and distributed key management carefully. Based on your selections, encrypted data such as passwords in templates might not be available after the upgrade and can potentially affect replication with Azure Site Recovery.
With every new Windows Server 2016 host that's introduced in the cluster, remove the reference of a Windows Server 2012 R2 host from Azure Site Recovery by following these steps. This should be the host that you chose to drain and evict from the cluster.
Run the Update-VMVersion command for all virtual machines to complete the upgrades.
Use these steps to register the new Windows Server 2016 host to Azure Site Recovery. Note that the Hyper-V site is already active and you just need to register the new host in the cluster.
Go to the Azure portal and verify the replicated health status inside the Recovery Services vault.
Upgrade Windows Server 2012 R2 hosts that a standalone VMM 2012 R2 server manages
Before you upgrade your Windows Server 2012 R2 hosts, you need to upgrade VMM 2012 R2 to VMM 2016. Use the following steps.
Upgrade standalone VMM 2012 R2 to VMM 2016
Uninstall the Azure Site Recovery provider. Go to Control Panel > Programs > Programs and Features > Microsoft Azure Site Recovery, and then select Uninstall.
Open VMM and check the status of each host under the Fabrics tab. Select Refresh to get the most recent status. You should see a status of Needs Attention.
Upgrade Windows Server 2012 R2 hosts to Windows Server 2016
Follow these steps to perform the rolling cluster upgrade.
After you add the new host to the cluster, refresh the host from the VMM console to install the VMM agent on this updated host.
Run Update-VMVersion to update the versions of the virtual machines.
Go to the Azure portal and verify the replicated health status of the virtual machines inside the Recovery Services vault.
Upgrade Windows Server 2012 R2 hosts that a highly available VMM 2012 R2 server manages
Before you upgrade your Windows Server 2012 R2 hosts, you need to upgrade VMM 2012 R2 to VMM 2016. The following modes of upgrade are supported while you're upgrading VMM 2012 R2 servers configured with Site Recovery mixed mode (either with or without additional VMM servers).
Upgrade VMM 2012 R2 to VMM 2016
Uninstall the Azure Site Recovery provider. Go to Control Panel > Programs > Programs and Features > Microsoft Azure Site Recovery, and then select Uninstall.
Follow these steps based on the mode of upgrade that you want to execute.
Open the VMM console and check the status of each host under the Fabrics tab. Select Refresh to get the most recent status. You should see a status of Needs Attention.
As a Windows Server hybrid administrator, you integrate Windows Server environments with Azure services and manage Windows Server in on-premises networks.