On Thu, Jun 25, 2015 at 06:09:55PM -0300, Daniel Henrique Barboza wrote:
Hi,
I've found a problem with supermin code running in an ibm_powerkvm
ppc64le distro.
Output of libguestfs-test-tool:
[...]
supermin: version: 5.1.10
[...]
supermin: ext2: populating from base image
supermin: ext2: copying files from host filesystem
supermin: open: /lib64/dbus-1/dbus-daemon-launch-helper: Permission denied
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=/opt/ibm/powerkvm-licenses
dest=/opt/ibm/powerkvm-licenses
dirname=/opt/ibm
basename=powerkvm-licenses
supermin: ext2fs_namei: parent directory not found: /opt/ibm: File
not found by ext2_lookup
supermin: failure: ext2fs_namei: parent directory not found
This is how the filesystem looks like. It seems that supermin tries
to copy the contents of
powerkvm-licenses, which is a link to /usr/share(...) and then it
has problems when returning
to the parent dir /opt/ibm .
$ cd /opt/ibm
$ ls -lah
total 16K
drwxr-xr-x. 4 root root 4.0K Jun 12 07:06 .
drwxr-xr-x. 3 root root 4.0K Mar 19 09:35 ..
drwxr-xr-x. 9 root root 4.0K May 7 14:33 powerkvm
lrwxrwxrwx. 1 root root 36 May 7 14:32 powerkvm-licenses ->
/usr/share/doc/pkvm/licenses
drwxr-xr-x. 6 root root 4.0K May 7 14:33 seprovider
I've tracked the problem down to the function 'ext2_copy_file' in
src/ext2fs-c.c
You might want to check if it works with the upstream supermin.
(Perhaps d7bb984889257f5b87963dcca6456fc6e4cc804e fixes it?)
However probably the easiest thing to do is to add /opt/ibm and
perhaps /opt/ibm/powerkvm and maybe /usr/share/doc/pkvm/licenses to
the appliance. Something like this:
cat > /usr/lib64/guestfs/supermin.d/00-directories <<EOF
/opt
/opt/ibm
/opt/ibm/powerkvm
/usr/share/doc/pkvm/licenses
EOF
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