Migrate Hyper-V Generation 2 VM to Nutanix AHV

Few weeks back Nutanix released new version of Acropolis Operating System (AOS) in version 4.6.1. There are several enhancements and new features worth to look closer at. For us, the most important is support for UEFI virtual machines. Which means, you can migrate Hyper-V generation 2 VM to Nutanix Acropolis.

Today’s post is about migrate Windows 2012R2 Generation 2 VM to Nutanix AHV.


  • Acropolis OS (AOS) 4.7.0 or newer
  • Acropolis HV (AHV – hypervisor) 20160601.20 or newer
  • connectivity between hyper-V hosts and Nutanix CVM
  • mounted container from AHV to Hyper-V
Acropolis storage mount to Hyper-V cluster

Acropolis storage mount to Hyper-V cluster

  • Nutanix Acropolis knowledge and Microsoft hyper-V knowledge 🙂
  • Installed Nutanix Application Mobility drivers – you can download it from portal.nutanix.com
  • Remove all snapshots from VM
  • Microsoft Sysytem Center Virtual Machine Manager 2012R2 (SCVMM) – optional

Step #1 – Transfer virtual machine disks from legacy storage to Nutanix Acropolis

If you have SCVMM, add Acropolis container to Hyper-V cluster as new file share storage and use build in migration feature to move disks.

Migrate storage to Nutanix AHV

Migrate storage to Nutanix AHV

Step #2 – power virtual machine off and convert VHDX disk to RAW

Shutdown virtual machine. Once done, ssh to Nutanix CVM and run qemu-img withparameters to convert from VHDX disk format to RAW format supported by Nutanix Acropolis.

Step #3 – Create VM and set uefi_boot=true

Create VM from PrismUI with no disk, add only network adapter. From acli, run command vm.update Win2k12R2Gen2HV uefi_boot=true

Step #4 – add RAW disk to VM.

From PrismUI update VM by adding new disk from ADSF file, on SCSI BUS.

Add RAW disk to VM

Add RAW disk to VM

Power VM on and that’s it. Hyper-V Generation 2 VM has been successfully migrated to Nutanix AHV.



  • 26 Sep 2016 – updated hypervisor and AOS requirements

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

  • Tyler Bogdan

    You mentioned in a few of your articles that you mount the Nutanix AHV storage within SCVMM. Is there documentation on how to do this?

    • Hi Tyler, I apologize for so late response but have a look at my video. Blog post comming out on weekend.

      • David Avice


        With AOS 5.0, are the above steps still the same?
        Can we also delete the original VHDX and RAW file after the disk has been added to the VM?
        Is Nutanix guest tools still required on the VM or does VM mobility is enough?

        • Hi David,

          Yes, with AOS 5.0 – steps are the same.
          Yes, you can delete VHDX and RAW.
          In fact, VM mobility drivers are preferable over just VirtIO drivers.

          Let me know if you have more questions.

  • José Gerez Morata

    I’ve followed your blog to migrate a Hyper-V VM R2 to Nutanix CE (2016.06.30 version). All went fine but when I try to power on the VM I get an error “libvirterror internal error process exited while connecting to monitor qemu could not load pc bios /usr/share/OVMF/OVMF_CODE.fd”
    If I disable UEFI in the VM config it powers on but doesn’t boot from the converted disk

    • Jose, is it Hyper-V Generation 2 VM, you are trying to move over to Nutanix CE?

      • José Gerez Morata

        Yes, it is

        • all right, so there wasis known bug (while migrating Gen2 VM to AHV) in some of the AHV version. Bug was fixed immediately in production AHV release. Looks like it was not fixed in Nutanix CE yet.
          Can you check if there is newer version of Nutanix CE (see one click upgrade), if it is, upgrade and try migration again. If it is not, can you post your error to Nutanix CE community forum? Let me know how it goes.

        • Got info from Engineering, Nutanix CE currently does not support migration of Hyper-V Generation 2 VM.