<div dir="ltr">Hi Richard,<div><br></div><div>Sorry for missing that TMPDIR, I was looking rather than actually reading.<br></div><div><br></div><div>I used the original ova I'd exported from VMWare, and that worked fine (after fixing perms). The command I ran was:</div><div><br></div><div>virt-v2v -x -v -i ova /mnt/import-vm/wvm2.ova -o rhev -os ovirt-engine:/mnt/export-vm -of qcow2<br></div><div><br></div><div>It returned without error and copied it to the export domain ok. It hasn't appeared in the list of VMs as yet in the GUI. I guess it is</div><div>in the process of doing so? It did show up in the list of importable VMs under the 'Import VM' tab under</div><div>the export domain. I tried importing it from there but it gave me:</div><div><br></div><div>2016-07-20 18:27:24,518 INFO [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (default task-317) [27b3ad4b] Lock freed to object 'EngineLock:{exclusiveLocks='[wvm2=<VM_NAME, ACTION_TYPE_FAILED_NAME_ALREADY_USED>, 7d40eaee-2f3f-4a4e-8254-4c2c3312ce5c=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName wvm2>]', sharedLocks='[7d40eaee-2f3f-4a4e-8254-4c2c3312ce5c=<REMOTE_VM, ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName wvm2>]'}'<br></div><div><br></div><div>So I guess it is doing the import still. </div><div><br></div><div>Cheers,</div><div><br></div><div>Campbell</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 20, 2016 at 4:05 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Jul 20, 2016 at 03:40:16PM +0100, Cam Mac wrote:<br>
> Hi Rich,<br>
><br>
><br>
> > > ><br>
> > ><br>
> > > I can try this but I'm not quite sure how to go about it. The ovf I<br>
> > created<br>
> > > via guest-image-ovf-creator is on an NFS mount<br>
<br>
</span>Originally you were trying to import OVAs from VMware, which is the<br>
only source of OVAs we actually test. If you're trying to import from<br>
VMware, get VMware to create the OVAs for you using the vSphere Export<br>
GUI or ovftool:<br>
<br>
<a href="http://libguestfs.org/virt-v2v.1.html#ova:-create-ova" rel="noreferrer" target="_blank">http://libguestfs.org/virt-v2v.1.html#ova:-create-ova</a><br>
<span class=""><br>
> I'm using 'virt-v2v -v -i ova wvm2.ovf -o rhev -os<br>
> ovirt-engine:/mnt/export-vm' (my export domain), though unfortunately it<br>
> fails<br>
><br>
> Error is:<br>
><br>
> [root@kvm-ldn-01 tmp]# virt-v2v -v -x -i ova wvm2.ovf -o rhev -os<br>
> ovirt-engine:/mnt/export-vm<br>
> virt-v2v: libguestfs 1.28.1 (x86_64)<br>
> [ 0.0] Opening the source -i ova wvm2.ovf<br>
> tar -xzf 'wvm2.ovf' -C '/var/tmp/ova.dEFSqi'<br>
> virt-v2v: error: could not parse ovf:Name from OVF document<br>
<br>
</span>I had a look at guest-image-ovf-creator.py anyway and the problem is<br>
that this script doesn't put any <VirtualSystem> section into the OVF<br>
document at all. I couldn't keep my eyes open long enough while<br>
reading the turgid DTMF OVF standards document to find out if this<br>
section is required or not, but virt-v2v certainly expects it. (That<br>
is just the first failure, there may be more.)<br>
<br>
Anyway, use an OVA generated by VMware.<br>
<span class=""><br>
> BTW: is there a way of specifying the extraction directory? My first<br>
> attempt filled up /var/tmp until I found another host<br>
> that luckily had a big enough partition.<br>
<br>
</span>Yes, you can set TMPDIR as mentioned in the manual.<br>
<br>
Rich.<br>
<span class=""><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
</span>virt-builder quickly builds VMs from scratch<br>
<a href="http://libguestfs.org/virt-builder.1.html" rel="noreferrer" target="_blank">http://libguestfs.org/virt-builder.1.html</a><br>
</blockquote></div><br></div>