Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I thought that VMs exported as OVF were supposed to be completely portable, but now I see there are difference disk formats

I used the VMware ovf tool to export a VMX to OVF. The disk file created with the OVF is a VMDK.

I want to import the VM into RHEV, but the Red Hat documentation says that the accepted disk formats are RAW and COW. In contrast the VMware OVF tool says it can export to: monolithicSparse, monolithicFlat, twoGbMaxExtentSparse, twoGbMaxExtentFlat, streamOptimized, thin (vSphere target), thick (vSphere target).

How can I convert my VMDK OVF to a RAW OVF and then import it to RHEV? The documented virt-v2v tool seems to only work with VMware ESX, not vmx/vmdk/ovf images on disk.

share|improve this question

2 Answers 2

Try qemu-img, it supports various formats for input and input.

In a last try, you can finally mount the disk on a VM and tar or dd it to another place, more friendly to other tools.

share|improve this answer
    
Good idea, tried it, but it keeps generating an error: 'qemu-img: error while reading'. Have tried various vmware ovftool export options for the disk format, but no change. (would vote up but I have insufficient reputation) –  user62545 Apr 8 '11 at 15:30
    
@user updated the answer with another suggestion. –  coredump Apr 8 '11 at 15:32

OVF is basically an XML file that describes a VM, it doesn't contain it. There is a supported solution for moving VMs from VMWare, called virt-v2v.

The raw and cow formats are open formats supported by qemu, while all the vmware options are based on vmware's vmdk format.

This guide has a good description of the way virt-v2v should be used: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Virtualization_for_Servers/2.2/html/Administration_Guide/virt-v2v-scripts.html

share|improve this answer
    
The VMDK format is mostly "open" as well - the specification is available without a license to implementors. You do have to "request" access though. vmware.com/technical-resources/interfaces/vmdk.html. I beleive the same is true of the Microsoft/Xen .VHD format. –  rmalayter Jun 5 '11 at 0:39
    
qemu supports vmdk, however it's quite common for it not to be able to recognise a vmdk that originates from a vmware setup. I guess the format specifications are not strictly adhered to –  dyasny Jan 23 '12 at 20:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.