Generally a better idea to build virtual machines from scratch when doing a migration to the datacenter. However, in some scenarios it might make sense to P2V a machine. This includes if you need to preserve the exact configuration of an existing machine, or if you don’t have the installation media for programs that are installed on that machine.
Before you begin the P2V process, you need to install the Nutanix VirtIO drivers for the virtual hardware that will be presented to the VM.
Microsoft has a tool called Disk2vhd that you can download for free to accomplish P2V migrations.
Disk2vhd is a simple .exe file. Double click on the .exe to run it.
If you want the .vhd file to be bootable you need to select the System volume as well as C:\
I recommend saving the .vhd to a volume other than C:\ such as a usb key, or network mounted drive.
If the .VHD is relatively small, you can upload it through the PRISM Image Configuration Service.
However, if it is fairly large the browser will probably timeout before the .VHD completes the upload.
The Image Configuration Service will also upload a file from a http source. You can easily create a http server using Microsoft IIS. In Windows Features, click the following options to install the IIS role:
You can then browse to the folder via HTTP, right click the file link, and copy the link to the Image Configuration Service.
When adding a new disk to the VM, select:
Operation: Clone from Image Service
Bus Type: SCSI
Power on the VM and enjoy your success.
Booting from UEFI partions:
If the machine you imaged is booting from a UEFI boot partition the VM will be stuck with the message: Booting from Hard Disk…
To enable UEFI booting:
SSH to a CVM
vm.update [vm name] uefi_boot=true
Power off the VM and power it back on. Happy UEFI booting!