Bug 1979246
| Summary: | libkeyutils.so.1: cannot open shared object file: No such file or directory | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Jevin <ryder1ross> | ||||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||
| Status: | NEW --- | QA Contact: | |||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | unspecified | CC: | dwojewod, mhicks, ptoscano, tsydenovbatob | ||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2025-10-17 00:11:06 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Jevin
2021-07-05 11:50:52 UTC
I think there's already an Ubuntu bug about this: https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1933490 libguestfs does not need the library libkeyutils directly. However, it needs the library libtirpc.so.3: readelf -d ./guestfsd | grep NEEDED | grep libtirpc 0x0000000000000001 (NEEDED) Shared library: [libtirpc.so.3] That library needs libgssapi_krb5.so.2 which needs libkeyutils library: readelf -d /usr/lib64/libtirpc.so.3 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libgssapi_krb5.so.2] 0x0000000000000001 (NEEDED) Shared library: [libkrb5.so.3] 0x0000000000000001 (NEEDED) Shared library: [libk5crypto.so.3] 0x0000000000000001 (NEEDED) Shared library: [libcom_err.so.2] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] readelf -d /usr/lib64/libgssapi_krb5.so.2 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libkrb5.so.3] 0x0000000000000001 (NEEDED) Shared library: [libk5crypto.so.3] 0x0000000000000001 (NEEDED) Shared library: [libcom_err.so.2] 0x0000000000000001 (NEEDED) Shared library: [libkrb5support.so.0] 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [libkeyutils.so.1] 0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.1.1] 0x0000000000000001 (NEEDED) Shared library: [libresolv.so.2] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] So hardlinking both libkeyutils and libgssapi_krb5.so.2 resolved the issue. I ran the following commands to fix it: echo '/usr/lib64/libgssapi_krb5.so.2*' > /usr/lib64/guestfs/supermin.d/zz-libgssapi_krb5 echo '/usr/lib64/libkeyutils.so*' > /usr/lib64/guestfs/supermin.d/zz-libkeyutils Created attachment 2046699 [details]
RHEL9.4 output of virt-customize -v -a vmdisk.qcow2
Hi, I hit this issue on RHEL9.4 while using virt-customize on centos9-stream qcow2 image. The qcow2 file was generated with https://console.redhat.com/insights/image-builder. I have included the full output from the command in the attachment. That shouldn't be happening in RHEL, please open a support case at https://issues.redhat.com (product: RHEL component: libguestfs) Include the output of 'libguestfs-test-tool' in your bug report. Hi, I managed to sort this out and fix it on RHEL. In my case the problem was caused by duplicated packages. On my worksation I had two versions of keyutils and parted installed: keyutils-libs-1.6.1-4.el9.x86_64 keyutils-libs-1.6.3-1.el9.x86_64 parted-3.4-6.el9.x86_64 parted-3.5-2.el9.x86_64 After: dnf remove keyutils-libs-1.6.1-4.el9.x86_64 dnf remove parted-3.4-6.el9.x86_64 libguestfs-test-tool stopped reporting errors and I was able to customize my qcow2 image. Perhaps this will prove to be a clue to someone diagnosing a similar problem. This product has been discontinued or is no longer tracked in Red Hat Bugzilla. Reopening because Virtualization Tools has not been discontinued. |