Im having an issue running “virt-sparsify”, getting the following error:
root@server:# virt-sparsify --check-tmpdir warn --compress ws1709.qcow2
ws1709core.qcow2
Input disk virtual size = 34359738368 bytes (32.0G)
Create overlay file in /tmp to protect source disk ...
Examine source disk ...
Fatal error: exception Guestfs.Error("/usr/bin/supermin-helper exited with
error status 1.
To see full error messages you may need to enable debugging.
See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs")
Debug output:
root@server: # libguestfs-test-tool
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SELinux: sh: 1: getenforce: not found
guestfs_get_append: (null)
guestfs_get_backend: direct
guestfs_get_autosync: 1
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_hv: /usr/bin/qemu-system-x86_64
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs_get_smp: 1
guestfs_get_tmpdir: /tmp
guestfs_get_trace: 0
guestfs_get_verbose: 1
host_cpu: x86_64
Launching appliance, timeout set to 600 seconds.
libguestfs: launch: program=libguestfs-test-tool
libguestfs: launch: version=1.24.5
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfsxEv0vt
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: command: run: /usr/bin/supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/guestfs/supermin.d
supermin helper [00000ms] whitelist = (not specified)
supermin helper [00000ms] host_cpu = x86_64
supermin helper [00000ms] dtb_wildcard = (not specified)
supermin helper [00000ms] inputs:
supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d
supermin helper [00000ms] outputs:
supermin helper [00000ms] kernel = (none)
supermin helper [00000ms] dtb = (none)
supermin helper [00000ms] initrd = (none)
supermin helper [00000ms] appliance = (none)
checking modpath /lib/modules/3.13.0-32-generic is a directory
checking modpath /lib/modules/3.19.0-68-generic is a directory
checking modpath /lib/modules/3.13.0-58-generic is a directory
picked kernel vmlinuz-3.19.0-68-generic
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d
supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/daemon.img.gz
supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/init.img
supermin helper [00000ms] visiting /usr/lib/guestfs/supermin.d/udev-rules.img
supermin helper [00000ms] adding kernel modules
supermin helper [00023ms] finished creating appliance
libguestfs: checksum of existing appliance:
8b61a04874843524a7b5c03f33b95dabf61f2fbdc20e633d59fc8d872c061678
libguestfs: [00024ms] begin building supermin appliance
libguestfs: [00024ms] run supermin-helper
libguestfs: command: run: /usr/bin/supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/guestfs/supermin.d
libguestfs: command: run: \ --output-kernel /var/tmp/guestfs.jgjlPT/kernel
libguestfs: command: run: \ --output-initrd /var/tmp/guestfs.jgjlPT/initrd
libguestfs: command: run: \ --output-appliance /var/tmp/guestfs.jgjlPT/root
supermin helper [00000ms] whitelist = (not specified)
supermin helper [00000ms] host_cpu = x86_64
supermin helper [00000ms] dtb_wildcard = (not specified)
supermin helper [00000ms] inputs:
supermin helper [00000ms] inputs[0] = /usr/lib/guestfs/supermin.d
supermin helper [00000ms] outputs:
supermin helper [00000ms] kernel = /var/tmp/guestfs.jgjlPT/kernel
supermin helper [00000ms] dtb = (none)
supermin helper [00000ms] initrd = /var/tmp/guestfs.jgjlPT/initrd
supermin helper [00000ms] appliance = /var/tmp/guestfs.jgjlPT/root
checking modpath /lib/modules/3.13.0-32-generic is a directory
checking modpath /lib/modules/3.19.0-68-generic is a directory
checking modpath /lib/modules/3.13.0-58-generic is a directory
picked kernel vmlinuz-3.19.0-68-generic
supermin helper [00006ms] finished creating kernel
supermin helper [00224ms] finished mke2fs
supermin helper [00224ms] visiting /usr/lib/guestfs/supermin.d
supermin helper [00224ms] visiting /usr/lib/guestfs/supermin.d/daemon.img.gz
supermin helper [00240ms] visiting /usr/lib/guestfs/supermin.d/init.img
supermin helper [00241ms] visiting /usr/lib/guestfs/supermin.d/udev-rules.img
/usr/bin/supermin-helper: ext2: parent directory not found: /lib: File not found
by ext2_lookup
libguestfs: error: /usr/bin/supermin-helper exited with error status 1, see
debug messages above
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /var/tmp/guestfs.jgjlPT
libguestfs-test-tool: failed to launch appliance
libguestfs: closing guestfs handle 0xed7150 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsxEv0vt
Many thanks
Simon
This e-mail message and any attachments to it are intended only for the named
recipients and may contain legally privileged and/or confidential information.
If you are not one of the intended recipients, do not duplicate or forward this
e-mail message.
Richard W.M. Jones
2018-Feb-01 22:32 UTC
Re: [Libguestfs] Having issues with virt-sparsify
On Thu, Feb 01, 2018 at 08:13:36PM +0000, Simon Ruzgar wrote:> libguestfs: launch: version=1.24.5...> /usr/bin/supermin-helper: ext2: parent directory not found: /lib: File not found by ext2_lookupThis is quite an old version of libguestfs/supermin, and we've fixed a lot of bugs in this area since then. If you cannot upgrade to a recent version then I suggest running supermin-helper with lots more verbosity to see exactly what file it's failing on:> libguestfs: command: run: /usr/bin/supermin-helper > libguestfs: command: run: \ --verbose > libguestfs: command: run: \ --copy-kernel > libguestfs: command: run: \ -f ext2 > libguestfs: command: run: \ --host-cpu x86_64 > libguestfs: command: run: \ /usr/lib/guestfs/supermin.d > libguestfs: command: run: \ --output-kernel /var/tmp/guestfs.jgjlPT/kernel > libguestfs: command: run: \ --output-initrd /var/tmp/guestfs.jgjlPT/initrd > libguestfs: command: run: \ --output-appliance /var/tmp/guestfs.jgjlPT/root/usr/bin/supermin-helper -v -v -v --copy-kernel -f ext2 --host-cpu x86_64 /usr/lib/guestfs/supermin.d --output-kernel /var/tmp/kernel --output-initrd /var/tmp/initrd --output-appliance /var/tmp/root Hopefully it should give a bit more information. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Thanks so much for taking the time to get back to me, one of my collwges ran it
with debug on and narrowed it down to this:
https://askubuntu.com/questions/302289/error-mounting-disk-image-using-guestmount
I agree we should probably upgrade (
<http://www.ultimatesoftware.com/>
Simon Ruzgar
Cloud Engineer, UCloud
2000 Ultimate Way | Weston, FL 33326, Phase 3
Office: +1 (954) 331-6889| Mobile: +1 (561) 542-4574
simon_ruzgar@ultimatesoftware.com
Visit US: www.ultimatesoftware.com <http://www.ultimatesoftware.com/>
Follow US: LinkedIn <http://www.linkedin.com/company/ultimate-software> |
Twitter <https://twitter.com/UltimateHCM> | People First Blog
<http://www.ultimatesoftware.com/our-blog>
<http://reviews.greatplacetowork.com/ultimate-software>
On 2/1/18, 5:32 PM, "Richard W.M. Jones" <rjones@redhat.com>
wrote:
On Thu, Feb 01, 2018 at 08:13:36PM +0000, Simon Ruzgar wrote:
> libguestfs: launch: version=1.24.5
...
> /usr/bin/supermin-helper: ext2: parent directory not found: /lib: File
not found by ext2_lookup
This is quite an old version of libguestfs/supermin, and we've fixed a
lot of bugs in this area since then.
If you cannot upgrade to a recent version then I suggest running
supermin-helper with lots more verbosity to see exactly what file it's
failing on:
> libguestfs: command: run: /usr/bin/supermin-helper
> libguestfs: command: run: \ --verbose
> libguestfs: command: run: \ --copy-kernel
> libguestfs: command: run: \ -f ext2
> libguestfs: command: run: \ --host-cpu x86_64
> libguestfs: command: run: \ /usr/lib/guestfs/supermin.d
> libguestfs: command: run: \ --output-kernel
/var/tmp/guestfs.jgjlPT/kernel
> libguestfs: command: run: \ --output-initrd
/var/tmp/guestfs.jgjlPT/initrd
> libguestfs: command: run: \ --output-appliance
/var/tmp/guestfs.jgjlPT/root
/usr/bin/supermin-helper -v -v -v --copy-kernel -f ext2 --host-cpu x86_64
/usr/lib/guestfs/supermin.d --output-kernel /var/tmp/kernel --output-initrd
/var/tmp/initrd --output-appliance /var/tmp/root
Hopefully it should give a bit more information.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
This e-mail message and any attachments to it are intended only for the named
recipients and may contain legally privileged and/or confidential information.
If you are not one of the intended recipients, do not duplicate or forward this
e-mail message.