On Thu, Jun 16, 2022 at 06:16:22AM -0400, Marcos J Tavarez wrote:
marcos@marcos-MacBookPro:~$ cd /home/marcos/qemu_vms
marcos@marcos-MacBookPro:~/qemu_vms$ ls
2017-04-10-raspbian-jessie.img 2017-04-10-raspbian-jessie.zip
qemu-rpi-kernel-master.zip
marcos@marcos-MacBookPro:~/qemu_vms$ sudo mount -v -o offset=47185920 -t ext4 ~
/qemu_vms/2017-04-10-raspbian-jessie.img/mnt/raspbian
[sudo] password for marcos:
mount: /home/marcos/qemu_vms/2017-04-10-raspbian-jessie.img/mnt/raspbian: can't
find in /etc/fstab.
marcos@marcos-MacBookPro:~/qemu_vms$ virt-filesystems -a
2017-04-10-raspbian-jessie.img --all --long --uuid -h
libguestfs: error: /usr/bin/supermin exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
marcos@marcos-MacBookPro:~/qemu_vms$ libguestfs-test-tool
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
PATH=/usr/lib/ccache:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/
sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
/games:/usr/local/games:/snap/bin:/snap/bin
XDG_RUNTIME_DIR=/run/user/1000
SELinux: sh: 1: getenforce: not found
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: direct
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_hv: /usr/bin/qemu-system-x86_64
guestfs_get_memsize: 1280
guestfs_get_network: 0
guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_smp: 1
guestfs_get_sockdir: /run/user/1000
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.46.2
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/libguestfsAKALOx
libguestfs: launch: umask=0002
libguestfs: launch: euid=1000
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d
supermin: version: 5.2.1
supermin: package handler: debian/dpkg
supermin: acquiring lock on /var/tmp/.guestfs-1000/lock
supermin: build: /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
supermin: reading the supermin appliance
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
base.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
daemon.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
excludefiles type uncompressed excludefiles
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
hostfiles type uncompressed hostfiles
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
init.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages
type uncompressed packages
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
packages-hfsplus type uncompressed packages
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
packages-reiserfs type uncompressed packages
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
packages-xfs type uncompressed packages
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/
udev-rules.tar.gz type gzip base image (tar)
supermin: mapping package names to installed packages
supermin: resolving full list of package dependencies
supermin: build: 216 packages, including dependencies
supermin: build: 8426 files
supermin: build: 4965 files, after matching excludefiles
supermin: build: 4968 files, after adding hostfiles
supermin: build: 4965 files, after removing unreadable files
supermin: build: 4971 files, after munging
supermin: kernel: looking for kernel using environment variables ...
supermin: kernel: looking for kernels in /lib/modules/*/vmlinuz ...
supermin: kernel: looking for kernels in /boot ...
supermin: kernel: kernel version of /boot/vmlinuz-5.18.0-051800rc1-generic =
5.18.0-051800rc1-generic (from filename)
supermin: kernel: picked modules path /lib/modules/5.18.0-051800rc1-generic
supermin: kernel: kernel version of /boot/vmlinuz-5.15.0-39-generic =
5.15.0-39-generic (from filename)
supermin: kernel: picked modules path /lib/modules/5.15.0-39-generic
supermin: kernel: kernel version of /boot/vmlinuz-5.15.0-37-generic =
5.15.0-37-generic (from filename)
supermin: kernel: picked modules path /lib/modules/5.15.0-37-generic
supermin: kernel: picked vmlinuz /boot/vmlinuz-5.18.0-051800rc1-generic
supermin: kernel: kernel_version 5.18.0-051800rc1-generic
supermin: kernel: modpath /lib/modules/5.18.0-051800rc1-generic
cp: cannot open '/boot/vmlinuz-5.18.0-051800rc1-generic' for reading:
Permission denied
supermin: cp -p '/boot/vmlinuz-5.18.0-051800rc1-generic' '/var/tmp
/.guestfs-1000/appliance.d.5fqk1kxl/kernel': command failed, see earlier errors
libguestfs: error: /usr/bin/supermin exited with error status 1, see debug
messages above
Does /boot/vmlinuz-5.18.0-051800rc1-generic and is it readable? What
distro is this? It might be this Ubuntu bug or similar.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725
You can work around the bug with:
$ sudo chmod 0644 /boot/vmlinuz*
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