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

With new version of Acropolis 4.6.1 there is quicker way for migrate virtual machines from Citrix XenServer platform to Nutanix Acropolis. Thanks to one of my colleagues from Nutanix, I can share procedure he tested and validated.

Requirements:

  • AOS 4.6.1 or newer
  • AHV 20160217.2 or newer
  • Citrix XenSever 6.1 or 6.5
  • mounted Nutanix container as NFS storage to Citrix XenServer
  • installed Nutanix VM Mobility 1.0.1 for Windows – download it from portal.nutanix.com – make sure you have installed prior migration

Step #1: Remove all Citrix\Xen related devices.

In device manager, check in Show hidden devices and remove all devices when you can see XEN or Citrix in the name

Remove XenServer hardware from VM

Remove XenServer hardware from VM

Step #2 – Uninstall all drivers and software which are related to Citrix and reboot virtual machine.

Uninstall all drivers and software

Uninstall all drivers and software

Step #3 – Move VM disks to Nutanix Acropolis

Move VM disks from legacy storage to Nutanix container. Which was mounted before as NFS datastore.

Step #4 – Shutdown VM

Step #5 – identify VM disk

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

Step #5 – Create image

There are two ways of doing it. Command line or through Prism UI.

Command line – log in to CVM, start acli and run image.create with parameters.

List all images.

Prism Element 

NOTE: make sure you have

  • Log in Prism Element, From right top choose – Image configuration –> Upload Image
Prism Element

Prism Element

  • Provide following:
    • image name,
    • annotation,
    • image type – choose disk
    • choose destination container
    • source – select “From URL and provide path to VHD file like in below example: nfs://127.0.0.1/’container name’/’VHD file name’

      Create image from VHD disk

      Create image from VHD disk

Step #6 – Create VM

Create new VM in Prism with following:

  • VM name,
  • number of vCPU
  • RAM size
  • add new disk:
    • TYPE: DISK
    • OPERATION: clone from image  services
    • BUS TYPE: SCSI
    • IMAGE: choose image you’ve created in previous step
    • SIZE: make sure disk size is equal or bigger than source disk
  • do not forget about network card
  • Select Save
  • Power VM on.

Than would it. VM should boot up smoothly on 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).

  • Christian Pedersen

    This is not working for me – if i move the VM while running i get a VHD chain on the destination – which is NOT good because im unable to “chain” the VHD again into Container

    I need to stop the VM – copy the VM and then the progress works.. Am i missing something or do i just have to work for the SM GC Process to do a coalesce on the storage before i can do the NFS import of the VHD??