-   Linux - Virtualization and Cloud (
-   -   Can KVM access a Hyper-V virtual machine directly (

Nick_C 03-05-2012 05:21 AM

Can KVM access a Hyper-V virtual machine directly
Anyone know if it is possible to use a Hyper-V VM directly in KVM? just that I notice the storage format for the virtual disk now includes vdi which as far as I know is the format used by hyper-v.

acid_kewpie 03-05-2012 05:55 AM

Well it doesn't make sense to use one vm in another, as it's only disk images you'd use.

Hyper-V uses VHD format, not VDI, and you appear to be able to convert them - but not use directly.

dyasny 03-05-2012 06:50 AM

running the same VMs between different hypervisors is more than just taking the image, same as moving the physical hard drive between different physical machines will mean the installed OS will have problems with drivers.

Nick_C 03-05-2012 07:21 AM

Interesting article, the following paragraph suggests that maybe the hyper-v VM can actually be opened directly:

So obviously the next thing I thought of is that if kvm-img supports vpc as a file format, perhaps KVM can boot it. Well it can. So if you are so inclined you could simply copy the file from the Hyper-V server to the KVM server and start it (and uninstall the Integration Components if applicable) I plan on investigating the perfomance implications of this choice though that is not part of this article.
According to this article the file format on Hyper-V is actually vpc (.vhd file).

I tried to create a new VM in VMM and pointed it towards an existing .vhd file but encountered the problem that vpc is not listed as a file format in VMM, that only includes raw/qcow2/vdi/vmdk not vpc.

On a different subject does KVM support OVF.

dyasny 03-05-2012 10:12 AM

first of all, $format support by qemu-img is not necessarily a sign of _good_ support or of _online_ support.

as for OVF, RHEV/oVirt support OVF, however, OVF is just an xml file that describes a VM, the standard is very vague, and OVFs from different vendors can easily turn out to be incompatible

All times are GMT -5. The time now is 11:38 PM.