Monday, November 4, 2013

Convert XenServer to Hyper V 2012

Built a new Windows Server 2012 Hyper-V environment for my test and non-critical machines.  Below are the steps that I used to move some of my machines out of XenServer and into Hyper-V.

This was using XenServer 6.0

  1. Export VM as OVF
    1. Shutdown the machine
    2. Right click and Export
    3. Choose the OVF format, location, and name
    4. Next through the rest of the screens
  2. This leaves you with a VHD that we can attach to and use.
  3. In Hyper-V create a new diskless VM in your cluster share
  4. Copy the VHD to the subfolder for the VM
  5. In the settings of the VM under the IDE Controller 0 add a new hard drive
    1. Browse to the VHD and OK
  6. Convert the VHD to VHDX
    1. In Hyper-V Manager select the VM and click "edit disk".
    2. Select the VHD, Next
    3. Click Convert, Next
    4. Select VHDX, Next
    5. Leave at Dynamically Expanding, Next
    6. Browse to the VM folder (where it will create the VHDX), typically the same location as where the VHD is currently.
    7. Name it (can be the same name since extension will be different)
    8. Finish and wait for it to create.
  7. Change the VM to point to the VHDX.
    1. Edit the VM and change the virtual hard disk path to point to the vhdx instead of the vhd.
  8. Ensure it boots properly
  9. Login and remove the XenServer tools (note it will be very slow at this point), Reboot
  10. Ensure integrated services is the latest version by inserting the disk and running the update.
  11. Remove integrated services disk
  12. Change IP address as needed
  13. After saving the IP, go back in and make sure the default gateway is listed properly.
  14. Remove the old VHD file.

No comments:

Post a Comment