Hi Cam, 

unfortunately there is no direct support for customizing TMPDIR in engine. It 
can be solved by calling `virt-v2v` indirectly: 

# cp /usr/bin/virt-v2v /usr/bin/virt-v2v-original 
# cat > /usr/bin/virt-v2v <<EOF 
> #!/usr/bin/sh 
> env TMPDIR=/path/to/custom/tmp /usr/bin/virt-v2v-original $@ 
> EOF 

This solution will only survive till next virt-v2v update.

Jakub


----- Original Message ----- 

> From: "Cam Mac" <iuco...@gmail.com>
> To: "users" <users@ovirt.org>
> Sent: Thursday, August 25, 2016 5:36:17 PM
> Subject: Re: [ovirt-users] change tmp directory when importing VMs

> Sorry to reply to my own post, but if the GUI uses virt-v2v, there is a
> TMPDIR option in there which defaults to /var/tmp, so my guess is that this
> is what sets it, the only question is: how do I do this for the GUI? I've
> had a poke around in /etc/ovirt* on the engine host and nodes, but haven't
> seen it anywhere.

> Cam

> On Thu, Aug 25, 2016 at 12:28 PM, Cam Mac < iuco...@gmail.com > wrote:

> > Hi,
> 

> > I'm importing VMs in ova format, and the size of the disk images (vmdk) is
> > such that it fills up the partition where /var/tmp is located when
> > untarring
> > the ova. Can this be set to somewhere else?
> 

> > Thanks,
> 

> > Cam
> 

> _______________________________________________
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to