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:
- Download Microsoft Virtual Machine Converter (http://www.microsoft.com/en-us/download/details.aspx?id=34591)
- Download Hyper-V Server 2012R2 (http://technet.microsoft.com/en-us/evalcenter/dn205299.aspx)
- Download hvremote.wsf (http://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6)
- Burn Hyper-V iso to a disc
- Copy hvremote.wsf to a flash drive
- Add Hyper-V Manager feature to workstation
- Install Microsoft Virtual Machine Converter
- Document the number of nics, cpus and ram for each virtual machine.
- Now because I am running a domain and the domain controller is a virtual machine
- 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)
- Or find a way to make the domain controller network accessible during the migration
- Power down all the virtual machines.
- Copy the virtual machines from the esxi datastore using vshpere client to another disk that is windows friendly formatted.
- Shutdown esxi host.
- Run Provision soft during host start up and provision as windows server with manual setup of OS.
- Install Hyper-V
- Setup static ip networking for hyper-v host
- Enable remote desktop connections
- Check for Windows updates
- Go to the cmd window
- Navigate to the location of the hvremote.wsf script
- Follow the guide on http://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6 for your setup.
- From windows 8 or higher enable the Hyper-V Management Tools under Hyper-V
- Run Hyper-V Management Tools and try to connect to your server.
- 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/