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).
- 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.
- 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.
- Create a new machine in Hyper-v and select the VHD which you just created.
- 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.
- Log in and edit /etc/default/grub and remove console=hvc0
- Run update-grub and reboot the machine.
- 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.
- Uninstall all the xenserver guest utils.
Now dance & enjoy the built in kernel modules for Intergration Services the comes with Debian!