|
1 | 1 | ---
|
2 |
| -title: Set up Hyper-V (with VMM) disaster recovery using Azure Site Recovery |
| 2 | +title: Set up Hyper-V (with VMM) disaster recovery using Azure Site Recovery |
3 | 3 | description: Learn how to set up disaster recovery of on-premises Hyper-V VMs in System Center VMM clouds to Azure by using Site Recovery.
|
4 |
| -author: rayne-wiselman |
5 |
| -ms.service: site-recovery |
6 |
| -ms.topic: conceptual |
7 |
| -ms.date: 11/12/2019 |
8 |
| -ms.author: raynew |
| 4 | +ms.topic: tutorial |
| 5 | +ms.date: 03/19/2020 |
9 | 6 | ms.custom: MVC
|
10 | 7 | ---
|
11 |
| -# Set up disaster recovery of on-premises Hyper-V VMs in VMM clouds to Azure |
12 | 8 |
|
13 |
| -This article describes how to enable replication for on-premises Hyper-V VMs managed by System Center Virtual Machine Manager (VMM), for disaster recovery to Azure by using the [Azure Site Recovery](site-recovery-overview.md) service. If you aren't using VMM, [follow this tutorial](hyper-v-azure-tutorial.md) instead. |
| 9 | +# Set up disaster recovery of on-premises Hyper-V VMs in VMM clouds to Azure |
14 | 10 |
|
15 |
| -This is the third tutorial in a series that shows you how to set up disaster recovery to Azure for on-premises VMware VMs. In the previous tutorial, we [prepared the on-premises Hyper-V environment](hyper-v-prepare-on-premises-tutorial.md) for disaster recovery to Azure. |
| 11 | +This tutorial describes how to enable replication for on-premises Hyper-V virtual machines (VM) managed by System Center Virtual Machine Manager (VMM) to Azure using [Azure Site Recovery](site-recovery-overview.md). If you aren't using VMM, [follow this tutorial](hyper-v-azure-tutorial.md). |
16 | 12 |
|
17 | 13 | In this tutorial, you learn how to:
|
18 | 14 |
|
19 | 15 | > [!div class="checklist"]
|
20 | 16 | > * Select your replication source and target.
|
21 | 17 | > * Set up the source replication environment, including on-premises Site Recovery components and the target replication environment.
|
22 |
| -> * Set up network mapping to map between VMM VM networks and Azure virtual networks. |
| 18 | +> * Set up network mapping between VMM VM networks and Azure virtual networks. |
23 | 19 | > * Create a replication policy.
|
24 | 20 | > * Enable replication for a VM.
|
25 | 21 |
|
26 | 22 | > [!NOTE]
|
27 |
| -> Tutorials show you the simplest deployment path for a scenario. They use default options where possible, and don't show all possible settings and paths. For detailed instructions, review the articles in the **How-to Guides** section of the [Site Recovery documentation](https://docs.microsoft.com/azure/site-recovery). |
28 |
| -
|
| 23 | +> Tutorials show you the simplest deployment path for a scenario. They use default options where possible, and don't show all possible settings and paths. For detailed instructions, review the articles in the **How-to Guides** section of the [Site Recovery documentation](/azure/site-recovery/). |
29 | 24 |
|
| 25 | +## Prerequisites |
30 | 26 |
|
31 |
| -## Before you begin |
32 |
| - |
33 |
| -This is the third tutorial in a series. It assumes that you have already completed the tasks in the previous tutorials: |
| 27 | +This tutorial assumes that you already completed the following tutorials: |
34 | 28 |
|
35 | 29 | 1. [Prepare Azure](tutorial-prepare-azure.md)
|
36 |
| -2. [Prepare on-premises Hyper-V](tutorial-prepare-on-premises-hyper-v.md) |
| 30 | +1. [Prepare on-premises Hyper-V servers](hyper-v-prepare-on-premises-tutorial.md) |
37 | 31 |
|
38 | 32 | ## Select a replication goal
|
39 | 33 |
|
40 |
| -1. In the Azure portal, go to **Recovery Services vaults** and select the vault. We prepared the vault **ContosoVMVault** in the previous tutorial. |
41 |
| -2. In **Getting Started**, select **Site Recovery**, and then select **Prepare Infrastructure**. |
42 |
| -3. In **Protection goal** > **Where are your machines located?**, select **On-premises**. |
43 |
| -4. In **Where do you want to replicate your machines?**, select **To Azure**. |
44 |
| -5. In **Are your machines virtualized?**, select **Yes, with Hyper-V**. |
45 |
| -6. In **Are you using System Center VMM to manage your Hyper-V hosts?**, select **Yes**. |
46 |
| -7. Select **OK**. |
| 34 | +1. In the Azure portal, go to **Recovery Services vaults** and select the **ContosoVMVault** vault that was created in the [Prepare Azure](tutorial-prepare-azure.md#create-a-recovery-services-vault) tutorial. |
| 35 | +1. From **Getting Started**, select **Site Recovery** > **Prepare Infrastructure** and configure the following settings: |
| 36 | + 1. **Protection goal** > **Where are your machines located?**, select **On-premises**. |
| 37 | + 1. **Where do you want to replicate your machines?**, select **To Azure**. |
| 38 | + 1. **Are your machines virtualized?**, select **Yes, with Hyper-V**. |
| 39 | + 1. **Are you using System Center VMM to manage your Hyper-V hosts?**, select **Yes**. |
| 40 | +1. Select **OK**. |
47 | 41 |
|
48 |
| -  |
| 42 | +  |
49 | 43 |
|
50 | 44 | ## Confirm deployment planning
|
51 | 45 |
|
52 | 46 | 1. In **Deployment planning**, if you're planning a large deployment, download the Deployment Planner for Hyper-V from the link on the page. [Learn more](hyper-v-deployment-planner-overview.md) about Hyper-V deployment planning.
|
53 |
| -2. For this tutorial, we don't need the Deployment Planner. In **Have you completed deployment planning?**, select **I will do it later**, and then select **OK**. |
| 47 | +1. For this tutorial, we don't need the Deployment Planner. In **Have you completed deployment planning?**, select **I will do it later**, and then select **OK**. |
54 | 48 |
|
55 | 49 | ## Set up the source environment
|
56 | 50 |
|
57 | 51 | When you set up the source environment, you install the Azure Site Recovery Provider on the VMM server and register the server in the vault. You install the Azure Recovery Services agent on each Hyper-V host.
|
58 | 52 |
|
59 |
| -1. In **Prepare Infrastructure**, select **Source**. |
60 |
| -2. In **Prepare source**, select **+ VMM** to add a VMM server. In **Add Server**, check that **System Center VMM server** appears in **Server type**. |
61 |
| -3. Download the installer for the Microsoft Azure Site Recovery Provider. |
62 |
| -4. Download the vault registration key. You need this key when you run the Provider setup. The key is valid for five days after you generate it. |
63 |
| -5. Download the installer for the Microsoft Azure Recovery Services agent. |
| 53 | +1. **Prepare Infrastructure**. Select **Source**. |
| 54 | +1. **Prepare source**. Select **+ VMM** to add a VMM server. In **Add Server**, check that **System Center VMM server** appears in **Server type**. |
| 55 | +1. Download the installer for the Microsoft Azure Site Recovery Provider. |
| 56 | +1. Download the vault registration key. You need this key when you run the Provider setup. The key is valid for five days after you generate it. |
| 57 | +1. Download the installer for the Microsoft Azure Recovery Services agent. |
64 | 58 |
|
65 |
| -  |
| 59 | +  |
66 | 60 |
|
67 | 61 | ### Install the Provider on the VMM server
|
68 | 62 |
|
69 |
| -1. In the Azure Site Recovery Provider Setup wizard > **Microsoft Update**, opt in to use Microsoft Update to check for Provider updates. |
70 |
| -2. In **Installation**, accept the default installation location for the Provider and select **Install**. |
71 |
| -3. After installation, in the Microsoft Azure Site Recovery Registration Wizard > **Vault Settings**, select **Browse**, and in **Key file**, select the vault key file that you downloaded. |
72 |
| -4. Specify the Azure Site Recovery subscription, and the vault name (**ContosoVMVault**). Specify a friendly name for the VMM server, to identify it in the vault. |
73 |
| -5. In **Proxy Settings**, select **Connect directly to Azure Site Recovery without a proxy**. |
74 |
| -6. Accept the default location for the certificate that's used to encrypt data. Encrypted data will be decrypted when you fail over. |
75 |
| -7. In **Synchronize cloud metadata**, select **Sync cloud meta data to Site Recovery portal**. This action needs to happen only once on each server. Then, select **Register**. |
76 |
| -8. After the server is registered in the vault, select **Finish**. |
| 63 | +1. In the Azure Site Recovery Provider Setup wizard **Microsoft Update**. Opt in to use Microsoft Update to check for Provider updates. |
| 64 | +1. **Installation**. Accept the default installation location for the Provider and select **Install**. |
| 65 | +1. After installation, in the Microsoft Azure Site Recovery Registration Wizard select **Vault Settings**, **Browse**, and in **Key file**, select the vault key file that you downloaded. |
| 66 | +1. Specify the Azure Site Recovery subscription, and the vault name (**ContosoVMVault**). Specify a friendly name for the VMM server, to identify it in the vault. |
| 67 | +1. **Proxy Settings**. Select **Connect directly to Azure Site Recovery without a proxy**. |
| 68 | +1. Accept the default location for the certificate that's used to encrypt data. Encrypted data will be decrypted when you fail over. |
| 69 | +1. **Synchronize cloud metadata**. Select **Sync cloud meta data to Site Recovery portal**. This action needs to happen only once on each server. Then, select **Register**. |
| 70 | +1. After the server is registered in the vault, select **Finish**. |
77 | 71 |
|
78 |
| -After registration finishes, metadata from the server is retrieved by Azure Site Recovery, and the VMM server is displayed in **Site Recovery Infrastructure**. |
| 72 | +After registration finishes, metadata from the server is retrieved by Azure Site Recovery and the VMM server is displayed in **Site Recovery Infrastructure**. |
79 | 73 |
|
80 | 74 | ### Install the Recovery Services agent on Hyper-V hosts
|
81 | 75 |
|
82 | 76 | Install the agent on each Hyper-V host containing VMs that you want to replicate.
|
83 | 77 |
|
84 |
| -1. In the Microsoft Azure Recovery Services Agent Setup Wizard > **Prerequisites Check**, select **Next**. Any missing prerequisites will be installed automatically. |
85 |
| -2. In **Installation Settings**, accept the installation location and the cache location. The cache drive needs at least 5 GB of storage. We recommend a drive with 600 GB or more of free space. Then, select **Install**. |
86 |
| -3. In **Installation**, when installation finishes, select **Close** to finish the wizard. |
| 78 | +In the Microsoft Azure Recovery Services Agent Setup Wizard, configure these settings: |
| 79 | + |
| 80 | +1. **Prerequisites Check**. Select **Next**. Any missing prerequisites will be installed automatically. |
| 81 | +1. **Installation Settings**. Accept the installation location and the cache location. The cache drive needs at least 5 GB of storage. We recommend a drive with 600 GB or more of free space. Then, select **Install**. |
| 82 | +1. **Installation**. When the installation finishes, select **Close** to finish the wizard. |
87 | 83 |
|
88 |
| -  |
| 84 | +  |
89 | 85 |
|
90 | 86 | ## Set up the target environment
|
91 | 87 |
|
92 | 88 | 1. Select **Prepare infrastructure** > **Target**.
|
93 |
| -2. Select the subscription and the resource group (**ContosoRG**) in which the Azure VMs will be created after failover. |
94 |
| -3. Select the **Resource Manager** deployment model. |
| 89 | +1. Select the subscription and the resource group (**ContosoRG**) in which the Azure VMs will be created after failover. |
| 90 | +1. Select the **Resource Manager** deployment model. |
95 | 91 |
|
96 |
| -Site Recovery checks that you have one or more compatible Azure storage accounts and networks. |
| 92 | +Site Recovery checks that there's one or more compatible Azure storage accounts and networks. |
97 | 93 |
|
98 | 94 | ## Configure network mapping
|
99 | 95 |
|
100 |
| -1. In **Site Recovery Infrastructure** > **Network mappings** > **Network Mapping**, select the **+Network Mapping** icon. |
101 |
| -2. In **Add network mapping**, select the source VMM server. Select **Azure** as the target. |
102 |
| -3. Verify the subscription and the deployment model after failover. |
103 |
| -4. In **Source network**, select the source on-premises VM network. |
104 |
| -5. In **Target network**, select the Azure network in which replica Azure VMs will be located when they're created after failover. Then, select **OK**. |
| 96 | +1. **Site Recovery Infrastructure** > **Network mappings** > **Network Mapping**. Select the **+Network Mapping** icon. |
| 97 | +1. **Add network mapping**. Select the **Source System Center VMM** server. For the **Target**, select Azure. |
| 98 | +1. Verify the subscription and the deployment model after failover. |
| 99 | +1. **Source network**. Select the source on-premises VM network. |
| 100 | +1. **Target network**. Select the Azure network in which replica Azure VMs will be located when they're created after failover. Then, select **OK**. |
105 | 101 |
|
106 |
| -  |
| 102 | +  |
107 | 103 |
|
108 | 104 | ## Set up a replication policy
|
109 | 105 |
|
110 | 106 | 1. Select **Prepare infrastructure** > **Replication Settings** > **+Create and associate**.
|
111 |
| -2. In **Create and associate policy**, specify a policy name. We're using **ContosoReplicationPolicy**. |
112 |
| -3. Leave the default settings and select **OK**. |
113 |
| - - **Copy frequency** indicates that, after initial replication, delta data will replicate every five minutes. |
114 |
| - - **Recovery point retention** indicates that each recovery point will be retained for two hours. |
115 |
| - - **App-consistent snapshot frequency** indicates that recovery points containing app-consistent snapshots will be created every hour. |
116 |
| - - **Initial replication start time** indicates that initial replication will start immediately. |
117 |
| - - **Encrypt data stored on Azure** is set to the default (**Off**) and indicates that at-rest data in Azure isn't encrypted. |
118 |
| -4. After the policy is created, select **OK**. When you create a new policy, it's automatically associated with the VMM cloud. |
| 107 | +1. In **Create and associate policy**, specify a policy name. We're using **ContosoReplicationPolicy**. |
| 108 | +1. Accept the default settings and select **OK**: |
| 109 | + - **Copy frequency** indicates that, after initial replication, delta data will replicate every five minutes. |
| 110 | + - **Recovery point retention** indicates that each recovery point will be retained for two hours. |
| 111 | + - **App-consistent snapshot frequency** indicates that recovery points containing app-consistent snapshots will be created every hour. |
| 112 | + - **Initial replication start time** indicates that initial replication will start immediately. |
| 113 | + - **Encrypt data stored on Azure** is set to the default (**Off**) and indicates that at-rest data in Azure isn't encrypted. |
| 114 | +1. After the policy is created, select **OK**. When you create a new policy, it's automatically associated with the VMM cloud. |
119 | 115 |
|
120 | 116 | ## Enable replication
|
121 | 117 |
|
122 |
| -1. In **Replicate application**, select **Source**. |
123 |
| -2. In **Source**, select the VMM cloud. Then, select **OK**. |
124 |
| -3. In **Target**, verify the target (Azure), the vault subscription, and select the **Resource Manager** model. |
125 |
| -4. Select the **contosovmsacct1910171607** storage account and the **ContosoASRnet** Azure network. |
126 |
| -5. In **Virtual machines** > **Select**, select the VM that you want to replicate. Then, select **OK**. |
| 118 | +1. **Replicate application**. Select **Source**. |
| 119 | +1. **Source**. Select the VMM cloud. Then, select **OK**. |
| 120 | +1. **Target**. Verify the target (Azure), the vault subscription, and select the **Resource Manager** model. |
| 121 | +1. Select the **contosovmsacct1910171607** storage account and the **ContosoASRnet** Azure network. |
| 122 | +1. **Virtual machines** > **Select**. Select the VM that you want to replicate. Then, select **OK**. |
127 | 123 |
|
128 | 124 | You can track progress of the **Enable Protection** action in **Jobs** > **Site Recovery jobs**. After the **Finalize Protection** job finishes, the initial replication is complete, and the VM is ready for failover.
|
129 | 125 |
|
130 | 126 | ## Next steps
|
| 127 | + |
131 | 128 | > [!div class="nextstepaction"]
|
132 | 129 | > [Run a disaster recovery drill](tutorial-dr-drill-azure.md)
|
0 commit comments