Migrating a Xenserver Debian-VM to Hyper V 2012

Here is a quick and dirty guide to export xen vm to hyper v 2012 so it wouldn’t escape my mind.

The surgery was conducted on XCP 1.5, but probably work similarly on other versions (but I have no clue really).


  1. Shutdown your vm and export it via xencenter. This was painfully slow. took me 3 hours for a 150Gb vm which in the end produced a 99Gb large file.
  2. Get xenconvert 2.3.1 since later versions doesn’t have the ability to convert a vm exported to file. Also note that its quite picky on OS. It ran however fine on Windows 7 but not Server 2012.  This will allow you to create a VHD out of your Xen export.


  1. Create a new machine in Hyper-v and select the VHD which you just created.
  2. Boot the vm, while in grub choose to edit the parameters and remove the console=hvc0 part. Go on and boot.
    Without this part the boot procedure will almost immediately freeze without any error message.
  3. Log in and edit /etc/default/grub and remove console=hvc0
  4. Run update-grub and reboot the machine.
  5.  Edit /etc/inittab remove the ‘co hvc0’ line and you will get rid of the annoying co messages popping up in your face all the time.
  6. Uninstall all the xenserver guest utils.
  7. Reboot.
  8. ????
  9. Profit!!

Now dance & enjoy the built in kernel modules for Intergration Services the comes with Debian!


2 thoughts on “Migrating a Xenserver Debian-VM to Hyper V 2012

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s