Public bug reported:

the command virt-sparsify --inplace /path/disk.img works on Ubuntu
plucky but not on questing

error output from the command is as follows [trimmed nominal log
messages prior to the error]:

...
[    0.895387] Run /init as init process
supermin: mounting /proc
supermin: ext2 mini initrd starting up: 5.2.2
supermin: cmdline: panic=1 console=ttyS0 edd=off udevtimeout=6000 
udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory 
usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 
root=UUID=a33f02ea-a76f-4636-93e2-db88d5ba060d selinux=0 guestfs_verbose=1 
TERM=xterm-256color
supermin: uptime: 0.75 0.00
supermin: mounting /sys
supermin: internal insmod crc32-cryptoapi.ko.zst
[    0.902878] Invalid ELF header magic: != \x7fELF
insmod: init_module: crc32-cryptoapi.ko.zst: Invalid module format
supermin: internal insmod nfit.ko.zst
[    0.905085] Invalid ELF header magic: != \x7fELF
insmod: init_module: nfit.ko.zst: Invalid module format
supermin: internal insmod bluetooth.ko.zst
[    0.907446] Invalid ELF header magic: != \x7fELF
insmod: init_module: bluetooth.ko.zst: Invalid module format
supermin: internal insmod virtio_bt.ko.zst
[    0.909611] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_bt.ko.zst: Invalid module format
supermin: internal insmod virtio-rng.ko.zst
[    0.911760] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio-rng.ko.zst: Invalid module format
supermin: internal insmod crypto_engine.ko.zst
[    0.913953] Invalid ELF header magic: != \x7fELF
insmod: init_module: crypto_engine.ko.zst: Invalid module format
supermin: internal insmod virtio_crypto.ko.zst
[    0.916189] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_crypto.ko.zst: Invalid module format
supermin: internal insmod nd_btt.ko.zst
[    0.918394] Invalid ELF header magic: != \x7fELF
insmod: init_module: nd_btt.ko.zst: Invalid module format
supermin: internal insmod nd_pmem.ko.zst
[    0.920459] Invalid ELF header magic: != \x7fELF
insmod: init_module: nd_pmem.ko.zst: Invalid module format
supermin: internal insmod nd_virtio.ko.zst
[    0.922547] Invalid ELF header magic: != \x7fELF
insmod: init_module: nd_virtio.ko.zst: Invalid module format
supermin: internal insmod virtio_pmem.ko.zst
[    0.924683] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_pmem.ko.zst: Invalid module format
supermin: internal insmod rpmsg_core.ko.zst
[    0.926818] Invalid ELF header magic: != \x7fELF
insmod: init_module: rpmsg_core.ko.zst: Invalid module format
supermin: internal insmod rpmsg_ns.ko.zst
[    0.928929] Invalid ELF header magic: != \x7fELF
insmod: init_module: rpmsg_ns.ko.zst: Invalid module format
supermin: internal insmod virtio_rpmsg_bus.ko.zst
[    0.932228] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_rpmsg_bus.ko.zst: Invalid module format
supermin: internal insmod iommufd.ko.zst
[    0.935115] Invalid ELF header magic: != \x7fELF
insmod: init_module: iommufd.ko.zst: Invalid module format
supermin: internal insmod vfio.ko.zst
[    0.937795] Invalid ELF header magic: != \x7fELF
insmod: init_module: vfio.ko.zst: Invalid module format
supermin: internal insmod irqbypass.ko.zst
[    0.940950] Invalid ELF header magic: != \x7fELF
insmod: init_module: irqbypass.ko.zst: Invalid module format
supermin: internal insmod vfio-pci-core.ko.zst
[    0.943796] Invalid ELF header magic: != \x7fELF
insmod: init_module: vfio-pci-core.ko.zst: Invalid module format
supermin: internal insmod virtio-vfio-pci.ko.zst
[    0.946729] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio-vfio-pci.ko.zst: Invalid module format
supermin: internal insmod virtio_dma_buf.ko.zst
[    0.949695] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_dma_buf.ko.zst: Invalid module format
supermin: internal insmod virtio_input.ko.zst
[    0.952593] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_input.ko.zst: Invalid module format
supermin: internal insmod virtio_mem.ko.zst
[    0.955415] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_mem.ko.zst: Invalid module format
supermin: internal insmod virtio_rtc.ko.zst
[    0.958182] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_rtc.ko.zst: Invalid module format
supermin: internal insmod vdpa.ko.zst
[    0.960887] Invalid ELF header magic: != \x7fELF
insmod: init_module: vdpa.ko.zst: Invalid module format
supermin: internal insmod virtio_vdpa.ko.zst
[    0.963616] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_vdpa.ko.zst: Invalid module format
supermin: internal insmod virtiofs.ko.zst
[    0.966400] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtiofs.ko.zst: Invalid module format
supermin: internal insmod crc-itu-t.ko.zst
[    0.969119] Invalid ELF header magic: != \x7fELF
insmod: init_module: crc-itu-t.ko.zst: Invalid module format
supermin: internal insmod crc7.ko.zst
[    0.971805] Invalid ELF header magic: != \x7fELF
insmod: init_module: crc7.ko.zst: Invalid module format
supermin: internal insmod crc8.ko.zst
[    0.974422] Invalid ELF header magic: != \x7fELF
insmod: init_module: crc8.ko.zst: Invalid module format
supermin: internal insmod soundcore.ko.zst
[    0.977070] Invalid ELF header magic: != \x7fELF
insmod: init_module: soundcore.ko.zst: Invalid module format
supermin: internal insmod snd.ko.zst
[    0.979799] Invalid ELF header magic: != \x7fELF
insmod: init_module: snd.ko.zst: Invalid module format
supermin: internal insmod snd-timer.ko.zst
[    0.981772] Invalid ELF header magic: != \x7fELF
insmod: init_module: snd-timer.ko.zst: Invalid module format
supermin: internal insmod snd-pcm.ko.zst
[    0.983573] Invalid ELF header magic: != \x7fELF
insmod: init_module: snd-pcm.ko.zst: Invalid module format
supermin: internal insmod virtio_snd.ko.zst
[    0.985349] Invalid ELF header magic: != \x7fELF
insmod: init_module: virtio_snd.ko.zst: Invalid module format
supermin: picked 8:16 as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[    0.988837] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
[    0.996669] EXT4-fs (sdb): mounted filesystem 
a33f02ea-a76f-4636-93e2-db88d5ba060d r/w without journal. Quota mode: none.
supermin: deleting initramfs files
supermin: chroot
Starting /init script ...
/init: line 20: mkdir: command not found
/init: line 25: ln: command not found
+ [[ panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 
no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb 
cryptomgr.notests tsc=reliable 8250.nr_uarts=1 
root=UUID=a33f02ea-a76f-4636-93e2-db88d5ba060d selinux=0 guestfs_verbose=1 
TERM=xterm-256color == *guestfs_network=1* ]]
+ [[ panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 
no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb 
cryptomgr.notests tsc=reliable 8250.nr_uarts=1 
root=UUID=a33f02ea-a76f-4636-93e2-db88d5ba060d selinux=0 guestfs_verbose=1 
TERM=xterm-256color == *guestfs_rescue=1* ]]
+ [[ panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 
no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb 
cryptomgr.notests tsc=reliable 8250.nr_uarts=1 
root=UUID=a33f02ea-a76f-4636-93e2-db88d5ba060d selinux=0 guestfs_verbose=1 
TERM=xterm-256color == *guestfs_noreboot=1* ]]
+ [[ panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 
no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb 
cryptomgr.notests tsc=reliable 8250.nr_uarts=1 
root=UUID=a33f02ea-a76f-4636-93e2-db88d5ba060d selinux=0 guestfs_verbose=1 
TERM=xterm-256color == *guestfs_boot_analysis=1* ]]
+ mkdir -p /dev/pts /dev/shm
/init: line 47: mkdir: command not found
+ mount -t devpts /dev/pts /dev/pts
mount: /dev/pts: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
+ mount -t tmpfs -o mode=1777 shmfs /dev/shm
mount: /dev/shm: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
+ mkdir -p /sysroot
/init: line 51: mkdir: command not found
+ test -f /etc/fedora-release
+ mkdir -p /run
/init: line 70: mkdir: command not found
+ mount -t tmpfs -o nosuid,size=20%,mode=0755 tmpfs /run
+ mkdir -p /run/lock
/init: line 72: mkdir: command not found
+ ln -s ../run/lock /var/lock
/init: line 73: ln: command not found
+ [[ panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 
no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb 
cryptomgr.notests tsc=reliable 8250.nr_uarts=1 
root=UUID=a33f02ea-a76f-4636-93e2-db88d5ba060d selinux=0 guestfs_verbose=1 
TERM=xterm-256color == *selinux=1* ]]
+ test -e /etc/mtab
+ ln -s /proc/mounts /etc/mtab
/init: line 82: ln: command not found
+ test -d /etc/crypto-policies/back-ends
+ mkdir -p /run/tmpfiles.d
/init: line 95: mkdir: command not found
+ kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
++ dd if=/dev/urandom bs=16 count=1 status=none
++ od -x -A n
/init: line 99: dd: command not found
/init: line 99: od: command not found
+ machine_id=
+ echo ''
+ systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot
\x1b[0;1;31m/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to replace 
specifiers in '/var/log/journal/%m': Structure needs cleaning\x1b[0m
\x1b[0;1;39m/usr/lib/tmpfiles.d/legacy.conf:14: Duplicate line for path 
"/run/lock", ignoring.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:12: Failed to 
resolve group 'audio': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:13: Failed to 
resolve group 'audio': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:14: Failed to 
resolve group 'disk': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to 
resolve group 'kvm': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to 
resolve group 'kvm': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:20: Failed to 
resolve group 'kvm': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:10: Failed to resolve user 
'systemd-network': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:11: Failed to resolve user 
'systemd-network': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:12: Failed to resolve user 
'systemd-network': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:21: Failed to resolve group 
'systemd-journal': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:22: Failed to replace specifiers 
in '/run/log/journal/%m': Structure needs cleaning\x1b[0m
\x1b[0;1;38:5:185mFailed to parse ACL 
"d:group::r-x,d:group:adm:r-x,group::r-x,group:adm:r-x", ignoring: No such file 
or directory\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:24: Failed to replace specifiers 
in '/run/log/journal/%m': Structure needs cleaning\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:27: Failed to replace specifiers 
in '/var/log/journal/%m': Structure needs cleaning\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:28: Failed to replace specifiers 
in '/var/log/journal/%m/system.journal': Structure needs cleaning\x1b[0m
\x1b[0;1;38:5:185mFailed to parse ACL 
"d:group::r-x,d:group:adm:r-x,group::r-x,group:adm:r-x", ignoring: No such file 
or directory\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:30: Failed to replace specifiers 
in '/var/log/journal/%m': Structure needs cleaning\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:31: Failed to replace specifiers 
in '/var/log/journal/%m/system.journal': Structure needs cleaning\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/uuidd-tmpfiles.conf:5: Failed to resolve user 
'uuidd': No such process\x1b[0m
+ for f in /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd 
/sbin/udevd /lib/udev/udevd /usr/lib/udev/udevd
+ '[' -x /lib/systemd/systemd-udevd ']'
+ UDEVD=/lib/systemd/systemd-udevd
+ break
+ '[' -z /lib/systemd/systemd-udevd ']'
+ /lib/systemd/systemd-udevd --daemon
Starting systemd-udevd version 257.9-0ubuntu1
+ udevadm trigger
+ udevadm settle --timeout=600
+ shopt -s nullglob
+ for f in /sys/block/sd*/device/timeout
+ echo 300
+ for f in /sys/block/sd*/device/timeout
+ echo 300
+ shopt -u nullglob
+ ip addr add 127.0.0.1/8 brd + dev lo scope host
+ ip link set dev lo up
+ test '' = 1
+ mdadm -As --auto=yes --no-degraded
mdadm: --auto is deprecated and will be removed in future releases.
mdadm: No arrays found in config file or automatically
+ mkdir -p /tmp/lvm
/init: line 154: mkdir: command not found
+ touch /tmp/lvm/lvm.conf
/init: line 155: touch: command not found
+ command -v lvmdevices
+ command -v vgimportdevices
+ LVM_SYSTEM_DIR=/tmp/lvm
+ export LVM_SYSTEM_DIR
+ lvmetad
/init: line 169: lvmetad: command not found
+ modprobe dm_mod
+ lvm pvscan --cache --activate ay
+ mdadm -As --auto=yes --run
mdadm: --auto is deprecated and will be removed in future releases.
mdadm: No arrays found in config file or automatically
+ ldmtool create all
[]
+ test 1 = 1
+ test '' '!=' 1
+ uname -a
/init: line 183: uname: command not found
+ ls -lR /dev
/init: line 184: ls: command not found
+ cat /proc/mounts
/init: line 185: cat: command not found
+ cat /proc/mdstat
/init: line 186: cat: command not found
+ lvm config
+ lvm pvs
+ lvm vgs
+ lvm lvs
+ ip a
1: \x1b[36mlo: \x1b[0m<LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state 
UNKNOWN group default qlen 1000
    link/loopback \x1b[33m00:00:00:00:00:00\x1b[0m brd 
\x1b[33m00:00:00:00:00:00\x1b[0m
    inet \x1b[35m127.0.0.1\x1b[0m/8 brd \x1b[35m127.255.255.255 \x1b[0mscope 
host lo
       valid_lft forever preferred_lft forever
    inet6 \x1b[34m::1\x1b[0m/128 scope host proto kernel_lo 
       valid_lft forever preferred_lft forever
+ ip r
+ cat /etc/resolv.conf
/init: line 193: cat: command not found
+ lsmod
Module                  Size  Used by
+ date
/init: line 196: date: command not found
+ echo -n 'clocksource: '
clocksource: + cat 
/sys/devices/system/clocksource/clocksource0/current_clocksource
/init: line 198: cat: command not found
+ echo -n 'uptime: '
uptime: + cat /proc/uptime
/init: line 201: cat: command not found
+ cmd=guestfsd
++ grep -Eo 'guestfs_channel=[^[:space:]]+' /proc/cmdline
+ eval
+ test x '!=' x
+ test 1 = 1
+ cmd='guestfsd --verbose'
+ test '' = 1
+ false
+ test '' = 1
+ echo guestfsd --verbose
guestfsd --verbose
+ guestfsd --verbose
lvm_system_dir = /tmp/lvm
OCaml daemon loaded
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: ls -1v /dev/disk/by-path
ls: No such file or directory
guestfsd: failed to initialize device name translation cache: ls: No such file 
or directory
+ sync
/init: line 284: sync: command not found
+ test '' = 1
+ reboot -f
Rebooting.
[    1.596407] sd 0:0:1:0: [sdb] Synchronizing SCSI cache
[    1.597046] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[    1.598823] ACPI: PM: Preparing to enter system sleep state S5
[    1.599620] reboot: Restarting system
[    1.600069] reboot: machine restart
libguestfs: child_cleanup: 0x5614031e5000: child process died
libguestfs: sending SIGTERM to process 12561
libguestfs: qemu maxrss 264320K
libguestfs: trace: launch = -1 (error)
virt-sparsify: error: libguestfs error: guestfs_launch failed, see earlier 
error messages
libguestfs: trace: close
libguestfs: closing guestfs handle 0x5614031e5000 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfs0Fmfud
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsKHbGqE
dave@fuzzy:~$

ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: guestfs-tools 1.52.3-1ubuntu2
ProcVersionSignature: Ubuntu 6.17.0-4.4-generic 6.17.0-rc5
Uname: Linux 6.17.0-4-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.33.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Wed Sep 17 11:09:57 2025
SourcePackage: guestfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: guestfs-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug questing third-party-packages wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2124980

Title:
  virt-sparsify fails on questing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/guestfs-tools/+bug/2124980/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to