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.