<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:12px"><pre style="" class="">>><i style="" class=""> On 21/10/14 02:27, Paul Jansen wrote:
</i>>>><i style="" class=""> I've just been doing some searching to try and work out how to get a
</i>>>><i style="" class=""> vmware windows VM into ovirt.
</i>>>><i style="" class=""> It seems that the newest virtv2v has dropped support for importing
</i>>>><i style="" class=""> from an ESXi standalone machine - and now only works with vcenter. I
</i>>>><i style="" class=""> didn't have any success with using the current virt-v2v attaching to
</i>>>><i style="" class=""> an ESXi host.
</i>>>><i style="" class="">
</i>>>><i style="" class=""> I've prepared the VM by first removing the vmware tools and have
</i>>>><i style="" class=""> installled the various virtio drivers, as well as running the
</i>>>><i style="" class=""> 'mergeide' registry file to enable IDE. I've used 'qemu-img' to
</i>>>><i style="" class=""> convirt this VMDK file to QCOW2. It does not appear that there is a
</i>>>><i style="" class=""> straightforward way for me to import this new qcow2 disk into ovirt.
</i>>>><i style="" class="">
</i>>>><i style="" class=""> It seems my best option at the moment is to export the VMware VM as
</i>>>><i style="" class=""> an OVA and then try and use a newer virt-v2v to import this into ovirt.
</i>>>><i style="" class=""> Alternatively I could construct a VM in virt-manager and attach the
</i>>>><i style="" class=""> converted qcow2 disk to it, and then use virt-v2v to import this into
</i>>>><i style="" class=""> ovirt.
</i>>>><i style="" class="">
</i>>>><i style="" class=""> Can someone suggest an alternative course of action? It seems
</i>>>><i style="" class=""> strange that I can't just import a disk into ovirt, construct a VM
</i>>>><i style="" class=""> and attach the disk.
</i>>>><i style="" class="">
</i>>>><i style="" class=""> Is there anything int he works to make this process easier?
</i>>>><i style="" class="">
</i>>>><i style="" class=""> Thanks,
</i>>>><i style="" class=""> Paul
</i>>>><br style="">>Wrote this awhile back as a quick qcow to ovf implementation to import
>into ovirt-engine/rhevm. There are newer options but this does the job
>really quick. Will wrap the qcow image into an exploded ova structure or
>zipped. You can then import it directly into engine with
>engine-image-uploader.
>
<a style="" class="" href="https://jboggs.fedorapeople.org/guest-image-ovf-creator.py">>https://jboggs.fedorapeople.org/guest-image-ovf-creator.py</a>
<br>Thanks for all the replies with suggestions on how to tackle this.<br style="" class=""></pre><pre style="" class="">I've tried Joey's script above and it does the trick nicely.<br>Having 'qemu-img', Joey's script referenced above plus engine-image-uploader on a machine allowed me to convert a VMDK file to QCOW2 and then push the resulant QCOW2 disk - wrapped in a basic VM - up to my ovirt export domain.<br>From there I was able to import it as a template, and then create a machine based on that template.<br>This was relatively simple.<br><br>I'm looking forward to seeing some integration in the oVirt UI that may handle this in future.<br>I have a VMware vcenter installation and often use the 'deploy from OVF template' menu item - which I just pass a http URI with the OVF/OVA and have it deploy a VM on my cluster. This would be great to see in ovirt.<br><br></pre></div></body></html>