Bug 1288201

Summary: virt-builder writes temporary files to /tmp
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Pino Toscano <ptoscano>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-04 10:09:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2015-12-03 19:40:03 UTC
Description of problem:

Although virt-builder obeys $TMPDIR, by default (if TMPDIR is not
set) it will try to write temporary files to /tmp.  Since the
temporary image files are very large, it ought to write them
to /var/tmp.  Otherwise people suffering from tmp-on-tmpfs
brokenness will have problems.

(Reported by adamw on IRC).

Version-Release number of selected component (if applicable):

libguestfs 1.30 and above.

How reproducible:

100%

Steps to Reproduce:
1. With restricted space in /tmp run virt-builder.

Comment 1 Pino Toscano 2015-12-04 10:09:34 UTC
Fixed with
https://github.com/libguestfs/libguestfs/commit/a090a48f44e8d0c6e3410855b087cc936b1ee1ad
which is libguestfs >= 1.31.29.