<div dir="ltr"><div><div>Thanks Jakub. I thought I'd check if there was an official way before hacking it. I am going to try to set up a dedicated node running Fedora 23 as an import node with loads of disk space since I'll then be able to import Win 2012 as well, as hopefully the F23 version of virt-v2v supports 2012 (F24 does, but it isn't a supported oVirt node OS version). <br><br></div>Cheers,<br><br></div>Cam<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 30, 2016 at 2:49 PM, Jakub Niedermertl <span dir="ltr"><<a href="mailto:jniederm@redhat.com" target="_blank">jniederm@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Cam,<br>
<br>
unfortunately there is no direct support for customizing TMPDIR in engine. It can be solved by calling `virt-v2v` indirectly:<br>
<br>
# cp /usr/bin/virt-v2v /usr/bin/virt-v2v-original<br>
# cat > /usr/bin/virt-v2v <<EOF<br>
> #!/usr/bin/sh<br>
> env TMPDIR=/path/to/custom/tmp /usr/bin/virt-v2v-original $@<br>
> EOF<br>
<br>
This solution will only survive till next virt-v2v update.<br>
<br>
Jakub<br>
<br>
<br>
----- Original Message -----<br>
<br>
> From: "Cam Mac" <<a href="mailto:iucounu@gmail.com">iucounu@gmail.com</a>><br>
> To: "users" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
> Sent: Thursday, August 25, 2016 5:36:17 PM<br>
> Subject: Re: [ovirt-users] change tmp directory when importing VMs<br>
<div class="HOEnZb"><div class="h5"><br>
> Sorry to reply to my own post, but if the GUI uses virt-v2v, there is a<br>
> TMPDIR option in there which defaults to /var/tmp, so my guess is that this<br>
> is what sets it, the only question is: how do I do this for the GUI? I've<br>
> had a poke around in /etc/ovirt* on the engine host and nodes, but haven't<br>
> seen it anywhere.<br>
<br>
> Cam<br>
<br>
> On Thu, Aug 25, 2016 at 12:28 PM, Cam Mac < <a href="mailto:iucounu@gmail.com">iucounu@gmail.com</a> > wrote:<br>
<br>
> > Hi,<br>
><br>
<br>
> > I'm importing VMs in ova format, and the size of the disk images (vmdk) is<br>
> > such that it fills up the partition where /var/tmp is located when<br>
> > untarring<br>
> > the ova. Can this be set to somewhere else?<br>
><br>
<br>
> > Thanks,<br>
><br>
<br>
> > Cam<br>
><br>
<br>
</div></div><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>