[ovirt-users] change tmp directory when importing VMs
Jakub Niedermertl
jniederm at redhat.com
Tue Aug 30 13:49:51 UTC 2016
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" <iucounu at gmail.com>
> To: "users" <users at 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 < iucounu at 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 at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
More information about the Users
mailing list