[ovirt-users] change tmp directory when importing VMs

Yaniv Kaul ykaul at redhat.com
Tue Aug 30 20:52:27 UTC 2016


Can you please file a bug about this? I assume we could add a vdsm.conf
entry to use a different temp dir.
TIA,
Y.

On Tue, Aug 30, 2016 at 6:16 PM, Cam Mac <iucounu at gmail.com> wrote:

> 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).
>
> Cheers,
>
> Cam
>
> On Tue, Aug 30, 2016 at 2:49 PM, Jakub Niedermertl <jniederm at redhat.com>
> wrote:
>
>> 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
>>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160830/f6a38184/attachment-0001.html>


More information about the Users mailing list