On Wed, Apr 09, 2025 at 03:38:55AM +0000, Leon Blakey wrote:
Host has various /etc directories symlinked to a config git repo.
Running "virt-filesystems -a ./somevm.qcow2" fails with parent directory not
found. Commands ran as root. Filesystem is ZFS and /etc is same dataset as /.
Can Workaround by replacing symlink with regular copied directory.
You may also be able to workaround it by adding a file
/usr/lib/x86_64-linux gnu/guestfs/supermin.d/00-udev
(does that path really contain a space?) containing something like this:
/holo
/holo/hosts
/holo/hosts/lyoko
/holo/hosts/lyoko/etc
/holo/hosts/lyoko/etc/udev
/holo/hosts/lyoko/etc/ssh
/etc
/etc/udev
It should ensure that the directories exist early on so there's no
missing parent directory.
supermin: *** parent directory not found ***
supermin: When reporting this error:
supermin: please include ALL the debugging information below
supermin: AND tell us what system you are running this on.
src=/var/tmp/superminaa2b2a.tmpdir/base.d/etc/udev/udev.conf
dest=/etc/udev/udev.conf
dirname=/holo/hosts/lyoko/etc/udev
basename=udev.conf
supermin: ext2fs_namei: parent directory not found: /holo/hosts/lyoko/etc/udev: File not
found by ext2_lookup
supermin: failure: ext2fs_namei: parent directory not found
Did workaround with udev, next SSH fails. Logs are the same up to this point
supermin: ext2: creating empty ext2 filesystem
'/var/tmp/.guestfs-0/appliance.d.3zru7brm/root'
supermin: ext2: populating from base image
supermin: *** parent directory not found ***
supermin: When reporting this error:
supermin: please include ALL the debugging information below
supermin: AND tell us what system you are running this on.
src=/var/tmp/superminb70190.tmpdir/base.d/etc/ssh/ssh_config
dest=/etc/ssh/ssh_config
dirname=/holo/hosts/lyoko/etc/ssh
basename=ssh_config
supermin: ext2fs_namei: parent directory not found: /holo/hosts/lyoko/etc/ssh: File not
found by ext2_lookup
supermin: failure: ext2fs_namei: parent directory not found
This is basically a bug in supermin which we've never bothered to fix
as it affects us rarely enough, and fixing it requires changing how
supermin models the filesystem internally to use a tree rather than a
dumb list of strings, which is a bunch of work.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit