Migrate Windows 2012R2 from Citrix XenServer to Nutanix AHV

NOTE: UPDATED VERSION IS AVAILABLE UNDER BELOW LINK Migrate Windows 2012R2 from Citrix XenServer to Nutanix AHV – Update

So far I have blogged out about:

And today, yet another migration post. this time how to Migrate Windows 2012R2 from Citrix XenServer to Nutanix AHV.

Pre-requsities:
  • Installed XenServer tools on VM
  • Installed Nutanix virtIO drivers
  • Linux VM with qemu-img installed
  • username and password for local user with Admin rights to server
  • remove all snapshots from VM
  • basic knowledge about Citrix XenServer, XenCenter and Nutanix AHV is a must 🙂

Migration:

  • Create new container on Nutanix AHV
  • Mount new container as NFS storage on Citrix XenServer
  • Move virtual machine disks to new storage
  • Stop VM
  • Log in to XenServer over ssh and:
    • run command: xe list-vm
    • note down VM’s name and UUID
    • run command:  xe vm-disk-list uuid=<vmUUID> 
    • note down UUID for VDI files

       
  • Log in to Linux with qemu-img installed – you can use either AHV host or some other linux box
  • Mount new container from Nutanix to linux host
  • run qemu-img and convert all disks from VHD to RAW format supported by Nutanix AHV
    command example: qemu-img convert -f vpc UUID.vhd -O raw output_file.img

Below example of converting 3 disks from VHD to RAW

  • Create new VM in Nutanix Acropolis, use
    • Operation: CLONE FORM ADSF FILE
    • bus type: SCSI
      Select RAW disk image

      Select RAW disk image

       

  • Take VM snapshot before you start it up
  • Boot Windows in SAFE MODE
  • In device manager, check in Show hidden devices and remove all devices when you can see XEN ir Citrix in the name
    Remove XenServer hardware from VM

    Remove XenServer hardware from VM

     

  • Reboot VM
  • Uninstall all drivers and software which are related to Citrix
    Uninstall all drivers and software

    Uninstall all drivers and software

     

  • Reboot server
  • Assign IP address to VM and you are done 🙂

VIDEO – Migrate Windows 2012R2 from Citrix XenServer to Nutanix AHV

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).