Migrate Windows Server 2003 to Nutanix AHV
Migrate Windows Server 2003 to Nutanix AHV from VMware vSphere esxi.
Today’s migration topic is migrate Windows Server 2003 R2 to Nutanix AHV from VMware vSphere ESXi to Nutanix AHV.
NOTE: Windows 2003 (any version) server is not on the list of supported Guest Operating Systems for Nutanix AHV. To get latest list of supported Guest OS, log in to portal.nutanix.com
- AOS 4.6.1 or newer
- AHV 20160217.2 or newer
- network connection between legacy VMware vSphere and Nutanix Acropolis
- mounted container from Nutanix Acropolis on legacy VMware ESXi farm
- basic knowledge about Nutanix Acropolis and VMware vSphere
- Images with VirtIO drivers in two versions:
- lastest – for virtIO drivers – you can download it from Fedora project
- VM local administrator password
- Remove all snapshots from VM
Step #1 – Storage migrate virtual machine VMDK files to Nutanix container
Use vSphere client and migrate VM disks to Nutanix AHV container.
Step #2 – Install MergeIDE.bat
MergeIDE.bat. This is a really important step that will prepare the system to boot using an IDE driver when we bring it up in KVM. Skipping this step will likely result in blue screen errors and much frustration.
MergeIDE can be downloaded at:
NOTE: restart VM after installation and shut server down.
Step #3 – Create image from -flat.vmdk file
From acli, run image.create command to create disk image from -flat.vmdk file
<acropolis> image.create win2k3r2vmw source_url=nfs://127.0.0.1//ctr01/Win2k3x64/Win2k3x64-flat.vmdk wait=true image_type=kDiskImage container=GSO-MGT-NFS01
List images, as you can see image is available on the list.
Image name Image UUID
Step #4 – Create new VM
Create new VM from Prism Element and make sure you VM boot disk is on IDE BUS and use image created in Step #3. Mount ISO with latest VirtIO drivers to CDROM, attach network card and add small (1GB) disk on PCI bus.
Take VM snapshot and Power VM on.
Step #5 – install drivers
Follow Add new hardware wizard and install on drivers. Make sure you choose drivers for Windows 2003.
Step #6 -change boot disk bus to PCI
Shutdown VM first. Clone the IDE hard disks as PCI hard disks now that the VirtIO PCI drivers are installed in the Windows OS. The “vmdisk_uuid” of the IDE hard disk must be known to perform the cloning. To get the vmdisk_uuid run the following command. Detailed disk information is listed for each disk attached to the VM.
From acli run vm.get command to get details and find boot disk vmdisk_uuid
<acropolis> vm.get Win2k3x64
Note down vmdisk_uuid and run vm.disk_create command. By default new disk is created on PCI bus and with source disk size.
<acropolis> vm.disk_create Win2k3x64 clone_from_vmdisk=c9fe9ced-2fb2-4e8a-bb19-e1cdd8c07cb5 bus=pci
Step #6 – Remove IDE drive
Get VM details and check if new disk is in the configuration. In my example, old boot disk is on ide.1 BUS.
Device bus Device index
You can remove IDE.1 disk form either Prism Element or via acli. Power VM on. and … DONE
After migration clean up VM from unnecessary software, like VMware tools, and verify hardware in device manager
14’th Nov 2016 : updated procedure to mach as many Widows 2003 flavors as possible