Move a Hyper-V VM to XEN Server 6.2

Because XenConvert does not work on version XenServer 6.2, I need to find another way to import virtual machines running in Hyper-V (Windows 2008 R2) to XEN Server 6.2.

Xen Server support recomended this how ever it did not work in my environment:
– Create a NFS share on a Windows server.
– Add a new SR in XEN. NFS VHD and using the NFS share on the Windows server.
– Copy the VHD file from Hyper-V into the NFS share.
– Rename the VHD file to <uuid>.vhd. Use uuidgen to get a valid uuid.
– Rescan the storage  and you will see a new untitled virtual disk in the storage panel in XenCenter.
– Create a new VM but do not start it.
– Delete the disk associated to that VM.
– Attach the virtual disk you copied before from Hyper-V.
– Boot the VM and install XenTools.

This did not work, I didn’t see any new untitled virtual disks after rescaning the storage.

My solution:
Start XenCenter. File/Import.

Import source. Brows to the VHD file you want to import.
VM Definition. Add a name to the VM. In this example: SRV001. Add CPU’s and memory for this VM.

Location. Choose if you want the VM to have a home server.

Storage. Choose where you want to place the virtual disk.

Network. Choose network configuration for the VM.

OS Fixup Settings. Enable ‘Use Operating System Fixup’.

Transfer VM Settings. Here you must use the correct Network and IP (must be on the same IP network as the OS Fixup ISO SR.

If your Hyper-V VM consists of more then one VHD file you need to do this task for each VHD file. When import is done detach the disks from the other VM’s that a created under the imports. Attach those disks to the first created VM containing the VHD file for Windows C: drive for example. When this is done you can delete the VM’s from the import (they have now no assigned disks).

Start the VM. Install XenServer Tools. Remember that the Hyper-V integration is in embedded in Windows 2008 R2 and above and can not there for not be uninstalled from the VM.


Posted

in

by

Comments

One response to “Move a Hyper-V VM to XEN Server 6.2”

  1. simon Avatar
    simon

    Can I do this also with a vhdx-file?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.