|
| 1 | +--- |
| 2 | +title: Set up an appliance for Azure Migrate Server Assessment/Migration for Hyper-V VMs | Microsoft Docs |
| 3 | +description: Describes how to set up an appliance for discovery, assessment, and agentless migration of Hyper-V VMs using Azure Migrate Server Assessment/Migration. |
| 4 | +author: rayne-wiselman |
| 5 | +ms.service: azure-migrate |
| 6 | +ms.topic: article |
| 7 | +ms.date: 07/08/2019 |
| 8 | +ms.author: raynew |
| 9 | +--- |
| 10 | + |
| 11 | + |
| 12 | +# Set up an appliance for Hyper-V VMs |
| 13 | + |
| 14 | +This article describes how to set up the Azure Migrate appliance if you're assessing Hyper-V VMs with the Azure Migrate Server Assessment tool, or migrating VMware VMs to Azure using the Azure Migrate Server Migration tool. |
| 15 | + |
| 16 | +The Hyper-V VM appliance is a lightweight appliance used by Azure Migrate Server Assessment/Migration to do the following: |
| 17 | + |
| 18 | +- Discover on-premises Hyper-V VMs. |
| 19 | +- Send metadata and performance data for discovered VMs to Azure Migrate Server Assessment/Migration. |
| 20 | + |
| 21 | +[Learn more](migrate-appliance.md) about the Azure Migrate appliance. |
| 22 | + |
| 23 | + |
| 24 | +## Appliance deployment steps |
| 25 | + |
| 26 | +To set up the appliance you: |
| 27 | +- Download a compressed Hyper-V VHD from the Azure portal. |
| 28 | +- Create the appliance, and check that it can connect to Azure Migrate Server Assessment. |
| 29 | +- Configure the appliance for the first time, and register it with the Azure Migrate project. |
| 30 | + |
| 31 | +## Download the VHD |
| 32 | + |
| 33 | +Download the zipped VHD template for the appliance. |
| 34 | + |
| 35 | +1. In **Migration Goals** > **Servers** > **Azure Migrate: Server Assessment**, click **Discover**. |
| 36 | +2. In **Discover machines** > **Are your machines virtualized?**, click **Yes, with Hyper-V**. |
| 37 | +3. Click **Download** to download the VHD file. |
| 38 | + |
| 39 | +  |
| 40 | + |
| 41 | + |
| 42 | +### Verify security |
| 43 | + |
| 44 | +Check that the zipped file is secure, before you deploy it. |
| 45 | + |
| 46 | +1. On the machine to which you downloaded the file, open an administrator command window. |
| 47 | +2. Run the following command to generate the hash for the VHD |
| 48 | + - ```C:\>CertUtil -HashFile <file_location> [Hashing Algorithm]``` |
| 49 | + - Example usage: ```C:\>CertUtil -HashFile C:\AzureMigrate\AzureMigrate.ova SHA256``` |
| 50 | +3. For appliance version 1.19.05.10, the generated hash should match these settings. |
| 51 | + |
| 52 | + **Algorithm** | **Hash value** |
| 53 | + --- | --- |
| 54 | + SHA256 | 598d2e286f9c972bb7f7382885e79e768eddedfe8a3d3460d6b8a775af7d7f79 |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +## Create the appliance VM |
| 59 | + |
| 60 | +Import the downloaded file, and create the VM. |
| 61 | + |
| 62 | +1. Extract the zipped VHD file to a folder on the Hyper-V host that will host the appliance VM. Three folders are extracted. |
| 63 | +2. Open Hyper-V Manager. In **Actions**, click **Import Virtual Machine**. |
| 64 | + |
| 65 | +  |
| 66 | + |
| 67 | +2. In the Import Virtual Machine Wizard > **Before you begin**, click **Next**. |
| 68 | +3. In **Locate Folder**, specify the folder containing the extracted VHD. Then click **Next**. |
| 69 | +1. In **Select Virtual Machine**, click **Next**. |
| 70 | +2. In **Choose Import Type**, click **Copy the virtual machine (create a new unique ID)**. Then click **Next**. |
| 71 | +3. In **Choose Destination**, leave the default setting. Click **Next**. |
| 72 | +4. In **Storage Folders**, leave the default setting. Click **Next**. |
| 73 | +5. In **Choose Network**, specify the virtual switch that the VM will use. The switch needs internet connectivity to send data to Azure. |
| 74 | +6. In **Summary**, review the settings. Then click **Finish**. |
| 75 | +7. In Hyper-V Manager > **Virtual Machines**, start the VM. |
| 76 | + |
| 77 | + |
| 78 | +### Verify appliance access to Azure |
| 79 | + |
| 80 | +Make sure that the appliance VM can connect to [Azure URLs](migrate-support-matrix-hyper-v.md#assessment-appliance-url-access). |
| 81 | + |
| 82 | +## Configure the appliance |
| 83 | + |
| 84 | +Set up the appliance for the first time. |
| 85 | + |
| 86 | +1. In Hyper-V Manager > **Virtual Machines**, right-click the VM > **Connect**. |
| 87 | +2. Provide the language, time zone, and password for the appliance. |
| 88 | +3. Open a browser on any machine that can connect to the VM, and open the URL of the appliance web app: **https://*appliance name or IP address*: 44368**. |
| 89 | + |
| 90 | + Alternately, you can open the app from the appliance desktop by clicking the app shortcut. |
| 91 | +1. In the web app > **Set up prerequisites**, do the following: |
| 92 | + - **License**: Accept the license terms, and read the third-party information. |
| 93 | + - **Connectivity**: The app checks that the VM has internet access. If the VM uses a proxy: |
| 94 | + - Click **Proxy settings**, and specify the proxy address and listening port, in the form http://ProxyIPAddress or http://ProxyFQDN. |
| 95 | + - Specify credentials if the proxy needs authentication. |
| 96 | + - Only HTTP proxy is supported. |
| 97 | + - **Time sync**: Time is verified. The time on the appliance should be in sync with internet time for VM discovery to work properly. |
| 98 | + - **Install updates**: Azure Migrate Server Assessment checks that the appliance has the latest updates installed. |
| 99 | + |
| 100 | +### Register the appliance with Azure Migrate |
| 101 | + |
| 102 | +1. Click **Log In**. If it doesn't appear, make sure you've disabled the pop-up blocker in the browser. |
| 103 | +2. On the new tab, sign in using your Azure credentials. |
| 104 | + - Sign in with your username and password. |
| 105 | + - Sign-in with a PIN isn't supported. |
| 106 | +3. After successfully signing in, go back to the web app. |
| 107 | +4. Select the subscription in which the Azure Migrate project was created. Then select the project. |
| 108 | +5. Specify a name for the appliance. The name should be alphanumeric with 14 characters or less. |
| 109 | +6. Click **Register**. |
| 110 | + |
| 111 | + |
| 112 | +### Delegate credentials for SMB VHDs |
| 113 | + |
| 114 | +If you're running VHDs on SMBs, you must enable delegation of credentials from the appliance to the Hyper-V hosts. To do this from the appliance: |
| 115 | + |
| 116 | +1. On the appliance VM, run this command. HyperVHost1/HyperVHost2 are example host names. |
| 117 | + |
| 118 | + ``` |
| 119 | + Enable-WSManCredSSP -Role Client -DelegateComputer HyperVHost1.contoso.com HyperVHost2.contoso.com -Force |
| 120 | + ``` |
| 121 | +
|
| 122 | +2. Alternatively, do this in the Local Group Policy Editor on the appliance: |
| 123 | + - In **Local Computer Policy** > **Computer Configuration**, click **Administrative Templates** > **System** > **Credentials Delegation**. |
| 124 | + - Double-click **Allow delegating fresh credentials**, and select **Enabled**. |
| 125 | + - In **Options**, click **Show**, and add each Hyper-V host you want to discover to the list, with **wsman/** as a prefix. |
| 126 | + - In **Credentials Delegation**, double-click **Allow delegating fresh credentials with NTLM-only server authentication**. Again, add each Hyper-V host you want to discover to the list, with **wsman/** as a prefix. |
| 127 | +
|
| 128 | +## Start continuous discovery |
| 129 | +
|
| 130 | +Connect from the appliance to Hyper-V hosts or clusters, and start VM discovery. |
| 131 | +
|
| 132 | +1. In **User name** and **Password**, specify the account credentials that the appliance will use to discover VMs. Specify a friendly name for the credentials, and click **Save details**. |
| 133 | +2. Click **Add host**, and specify Hyper-V host/cluster details. |
| 134 | +3. Click **Validate**. After validation, the number of VMs that can be discovered on each host/cluster is shown. |
| 135 | + - If validation fails for a host, review the error by hovering over the icon in the **Status** column. Fix issues, and validate again. |
| 136 | + - To remove hosts or clusters, select > **Delete**. |
| 137 | + - You can't remove a specific host from a cluster. You can only remove the entire cluster. |
| 138 | + - You can add a cluster, even if there are issues with specific hosts in the cluster. |
| 139 | +4. After validation, click **Save and start discovery** to start the discovery process. |
| 140 | +
|
| 141 | +This starts discovery. It takes around 15 minutes for metadata of discovered VMs to appear in the Azure portal. |
| 142 | +
|
| 143 | +## Verify VMs in the portal |
| 144 | +
|
| 145 | +After discovery finishes, you can verify that the VMs appear in the portal. |
| 146 | +
|
| 147 | +1. Open the Azure Migrate dashboard. |
| 148 | +2. In **Azure Migrate - Servers** > **Azure Migrate: Server Assessment** page, click the icon that displays the count for **Discovered servers**. |
| 149 | +
|
| 150 | +
|
| 151 | +## Next steps |
| 152 | +
|
| 153 | +Try out [Hyper-V assessment](tutorial-assess-hyper-v.md) with Azure Migrate Server Assessment. |
0 commit comments