Richard Parmiter

Virtualisation blog and Knowledge Base

  • You are here: 
  • Home
  • Move VM from Hyper-V to XenServer

Move VM from Hyper-V to XenServer

Posted on January 7th, 2011

There is a way to move a virtual machine from Hyper-V to XenServer without the need for XenConvert.

On Hyper-V do the following:

  • Power off the VM
  • Backup or migrate to a CIFS share
  • The backup or CIFS share will include the VHD files for the hard disks (one VHD per virtual hard disk)

On XenServer do the following:

  • Create a new VM with the correct configuration (CPUs, RAM, NICs etc) and correct number of Hard Drives.
  • Modify the name of the virtual disks: storage tab, select disk, properties, change name to be something unique (for example TEST or VM-C-Drive or VM-D-Drive). Do this for each disk.
  • Use the cli determine the SR uuid and vm disks uuid
  • > xe sr-list (note the uuid of the correct storage repository)
  • > xe vdi-list name-label=VM-C-Drive (or however named above) – (Note the UUID of each disk)

Copy the VHD files to the XenServer storage volume

  • Using WinSCP or similar copy to the following location (using the sr uuid determined above)
  • /var/run/sr-mount/{SR-UUID}/


  • The VHD files have the filename of the uuid of the virual disk as determined above.
  • Rename 0r delete the first hard disk assigned to this VM (the filename with the uuid of the VM-C-Drive disk)
  • Rename the Hyper-V disk 1 to the same filename {Disk1-uuid}.vhd
  • Repeat the process for each disk

Now you can power on the VM and it will boot from the hard disks copied from Hyper-V.

This seems like a lot of steps but it is pretty quick to do and means that XenConvert is not required (as was not possible in my case). The VM will configure the new devices during the first boot, reboot and then be ready to use.

  • Digg
  • StumbleUpon
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • FriendFeed
  • Google Buzz
  • LinkedIn
  • Live
  • MySpace
  • Reddit
  • RSS

Tags: , , , , , ,
Filed under Citrix XenServer |

2 Responses to “Move VM from Hyper-V to XenServer”

  1. Live Multi-Hypervisor Migration | Spector Ramblings Says:
    August 21st, 2012 at 8:35 pm

    […] am aware of tools such as Citrix’s VMware to XenServer conversion, Hyper-V to XenServer conversion, and KVM to VMware conversion. However, all these tools require the VM to be stopped, […]

  2. Mike OShea Says:
    November 3rd, 2013 at 4:15 pm

    Hi Richard,

    I am running xenserver 5.6 sp2 and am trying to follow your directions to move a hyper-v vm to xenserver. I have mounted a CIFS volume on my xen host and copied .vhd files for my server to the volume and can see them on the xenserver local console (migrating to the directory and using ls -l).
    What I can’t figure out is how to copy them to local storage. I navigated to /var/run/sr-mount after creating the target server, but there is nothing there. Are the local storage disks mounted somewhere else on 5.6?

    Thanks for any advice you can give.

Leave a Reply