libguestfs doesn't work

Bug #1933490 reported by Jacob Sievert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libguestfs (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I try to execute libguestfs-test-tool I get the following crash:

The ouput of the command is attached below.

Revision history for this message
Jacob Sievert (jsievert121) wrote :
Revision history for this message
Richard Jones (rjones-redhat) wrote :

> guestfsd: error while loading shared libraries: libkeyutils.so.1: cannot open shared object file: No such file or directory

This is a new one to me. The missing library comes from something
called "keyutils" that as far as I know we don't use directly. It may
be an indirect dependency of another library.

A workaround would be something like this:

  echo '/usr/lib/libkeyutils.so*' > /usr/lib/guestfs/supermin.d/zz-keyutils

(You might need to adjust the paths)

It would be interesting to find out exactly which binary or library needs
this library, which you can do by unpacking guestfsd (probably in
/usr/lib/guestfs/supermin.d/daemon.tar.gz) and examining it with
the "eu-readelf -d" command, looking for NEEDED lines. You'll probaby
need to reduce through all the dependent libraries, since as I say
I don't think guestfsd itself needs this library.

Also it would be interesting to know if this bug happens with libguestfs
is built from sources.

Revision history for this message
Richard Jones (rjones-redhat) wrote :

s/reduce/recurse/

Revision history for this message
Jacob Sievert (jsievert121) wrote :

Okay that on with the correct path didn't work

`echo '/usr/lib/x86_64-linux-gnu/libkeyutils.so*' > zz-keyutils`

I should maybe append the version of libguestfs and the os-version:
guestfish 1.40.2

NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"

I will search and try to find the dependency.

Revision history for this message
Jacob Sievert (jsievert121) wrote :

okay now a colleague tried to reproduce that with a fresh install and couldn't do that.

I will try to debug it further but it seems that it's an inconsistent result of to much meddling with the OS.

Revision history for this message
Jacob Sievert (jsievert121) wrote :

Okay it occured again and I forgot to document my search for the library sorry.

But now I could fix it with hardlinking two libraries:

for Ubuntu 20.04:
```
echo '/usr/lib/x86_64-linux-gnu/libparted.so.2*' > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-parted

echo '/usr/lib/x86_64-linux-gnu/libkeyutils.so*' > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-keyutils

```

I will try to find the responsible dependency again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.