[Libguestfs] Problem with virt-sysprep
Stuart Young
StuartY at annaisystems.com
Wed Apr 9 17:58:10 UTC 2014
Hi Richard,
That did it! I had /tmp symlinked so changing it back solved the
problem. Thank you so much - you saved me a lot of time and sweat!
Bests,
Stuart
On 04/08/2014 03:07 PM, Richard W.M. Jones wrote:
> On Mon, Apr 07, 2014 at 10:12:05PM -0700, Stuart Young wrote:
>> Hi there,
>>
>> I was wondering if you could help me with a problem I'm having with
>> virt-sysprep. It's a recurrent problem running virt-sysprep:
>>
>> Examining the guest ...
>> Fatal error: exception Guestfs.Error("guestfs_launch failed.
>> See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
>> and/or run 'libguestfs-test-tool'.")
>>
>> So I ran virt-sysprep and libguestfs-test-tool after setting these:
>>
>> export LIBGUESTFS_DEBUG=1
>> export LIBGUESTFS_TRACE=1
>>
>> ... and have attached the output files.
> Thanks for the detailed debugging information. The bug is really very
> strange:
>
> mkdtemp: /tmp/lvmKOCUDb: No such file or directory
>
> It comes from this code in the appliance:
>
> https://github.com/libguestfs/libguestfs/blob/master/daemon/lvm-filter.c#L72
>
> That link is to the latest upstream code. It hasn't changed at all
> since 1.20 (or for years before that), so I find it quite baffling why
> it is failing now.
>
> Is /tmp (on your host) a regular directory or have you moved it or
> symlinked it or done something else to it?
>
> You could try the following which should cause a real /tmp directory
> to be created in the appliance:
>
> mkdir tmp
> echo tmp | cpio --quiet -o -H newc > /usr/lib64/guestfs/supermin.d/00-tmp.img
> rmdir tmp
>
> Rich.
>
--
Stuart Young
Director of Bioinformatics
Annai Systems
2100 Palomar Airport Road, Suite 210,
Carlsbad, CA 92008
Mobile: 305-781-2286
Email: stuarty at annaisystems.com
More information about the Libguestfs
mailing list