The following blog post will cover the steps taken when I migrated a Hyper-V 2012 R2 VM running Windows Server 2008, called VM01 below, to Nutanix AHV version 20170830.115 and Nutanix AOS version 5.6. Yeah I know that Windows 2008 R2 is not the most modern OS but that was the constraint in this case and the same procedure applies to newer Microsoft OS:es as well.
There was no
- Write down the VM01 IP information before you shut it down.
- Start by adding the client, that will copy the Org VM to Nutanix AHV via Prism, to the Prism Filesystem Whitelist.
- From the client added in step 1, mount the Nutanix source container where the VM will be placed. This client must obviously have access to the VM01 VHD disk file(s)
- Copy the VM01 VHD disk file to the Nutanix container
- Create two images Prism Image Configuration -> Upload Image configuration. There is also an option to perform this using “acli image.create” command from a Nutanix Controller Virtual Machine (CVM)
- The first image will be the Nutanix VirtIO driver package needed when the VM is created. This ISO file can be downloaded from the Nutanix Portal. There is also an option to install the drivers before the VM VHD disks are copied to Nutanix. Provide the following information for the Image
- The second image is the VM01s VHD file uploaded to the Nutanix container VM. Provide the following information for the Image
- And the result is two Images available.
- Now create a VM and use the recently uploaded files. Provide following information.
- Name
- Description
- Timezone
- vCPUs
- Number of cores per vCPU
- Amount of memory specified in GB
- Add disks:
- Add one or more NIC(s) to the VM
e
- Power On the VM and click “Launch Console”
- Log on to the VM and install drivers for the new devices. The process is same for all three devices and the below process lists the steps for the Ethernet Controller.
- Perform the same steps for all newly added devices.
- Set the IP information collected in step 1.
- Reboot the VM and you’re done.
Easy as that to migrate a Hyper-V VM to Nutanix AHV. There are also third-party tools available to perform the migration if needed.