Esxi to Hyper-V Migration

So over this past week I decided it was time to switch from user esxi to user hyper-v.

My setup:

  • Physical Server
    • HP Proliant ML310e G8
  • Virtual Machines
    • domain controller
    • remote gateway
    • team foundation server
    • certificate authority
    • windows 7
    • windows xp
    • file share
    • sql server
    • iis

Unfortunately I only have one server so the easy migration path of Virtual Machine Manager wasn’t going to work.  So here is what I did to make things work:

  1. Download Microsoft Virtual Machine Converter (http://www.microsoft.com/en-us/download/details.aspx?id=34591)
  2. Download Hyper-V Server 2012R2 (http://technet.microsoft.com/en-us/evalcenter/dn205299.aspx)
  3. Download hvremote.wsf (http://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6)
  4. Burn Hyper-V iso to a disc
  5. Copy hvremote.wsf to a flash drive
  6. Add Hyper-V Manager feature to workstation
  7. Install Microsoft Virtual Machine Converter
  8. Document the number of nics, cpus and ram for each virtual machine.
  9. Now because I am running a domain and the domain controller is a virtual machine
    1. Either remove a physical machine from the domain (I chose this option as I didn’t have another physical machine to run the domain controller on)
    2. Or find a way to make the domain controller network accessible during the migration
  10. Power down all the virtual machines.
  11. Copy the virtual machines from the esxi datastore using vshpere client to another disk that is windows friendly formatted.
  12. Shutdown esxi host.
  13. Run Provision soft during host start up and provision as windows server with manual setup of OS.
  14. Install Hyper-V
  15. Setup static ip networking for hyper-v host
  16. Enable remote desktop connections
  17. Check for Windows updates
  18. Go to the cmd window
  19. Navigate to the location of the hvremote.wsf script
  20. Follow the guide on http://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6 for your setup.
  21. From windows 8 or higher enable the Hyper-V Management Tools under Hyper-V
  22. Run Hyper-V Management Tools and try to connect to  your server.
  23. Start creating new VMs based on saved info from #8 attaching the converted disks.

Links

  • hvremote.wsf – http://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6
  • Hyper-V – http://technet.microsoft.com/en-us/evalcenter/dn205299.aspx
  • vmdk to vhd – http://ittechlog.wordpress.com/2012/09/11/converting-a-vmdk-to-vhd-with-microsoft-virtual-machine-converter-mvmc/
  • vmdk to vhd – http://gabrielbeaver.me/2012/09/migrate-from-vmware-vms-to-hyper-v-windows-8/
  • Hyper-V setup – http://gabrielbeaver.me/2012/09/hyper-v-on-windows-8/