Hi,
I'm experiencing a weird behavior when tried to use guestmount with a XFS formatted volume. I have created a RHEL 8 virtual machine using libvirt. I have retrieved the disk image on a RHEL 7.7 server to mount the image root filesystem and explore it.
The command returns an error message:
# guestmount -a /disks/jamesdream.qcow2 -m /dev/sda1 /mnt/
libguestfs: error: mount_options: mount exited with status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
guestmount: ‘/dev/sda1’ could not be mounted.
guestmount: Did you mean to mount one of these filesystems?
guestmount: /dev/sda1 (xfs)
guestmount: /dev/rhel/root (xfs)
guestmount: /dev/rhel/swap (swap)
I have also run the same command with -x and -v options and the log is attached.
Seeing that it's not working on RHEL 7, I've tried the same command on another RHEL 8.1 machine and it works. Looking at libguestfs-tools package version, it appears that the package on RHEL 7.7 (1.40.2-5.el7_7.2) is more recent than on RHEL 8.1 (1.38.4-14.module+el8.1.0+4066+0f1aadab). Is that normal ?
Thanks for your help.
--