libguestfs-tools failure that I can't figure out
host OS version 4.18.0-147.8.1.el8_1.x86_64 #1 SMP Thu Apr 9 13:49:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux CentOS Linux release 8.1.1911 (Core) guest vm OS version 3.10.0-1127.8.2.el7.x86_64 #1 SMP Tue May 12 16:57:42 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux CentOS Linux release 7.8.2003 (Core) trying to run virt-sysprep but it fails (see attached) ran libguestfs-test-tool, saw similar or same errors but I don't know which lines are significant (see other attached file) some things that caught my attention were "Failed to connect to virtio-serial channel." "guestfsd: open: /dev/virtio-ports/org.libguestfs.channel.0: No such file or directory" libguestfs package versions (installed using yum) libguestfs-tools-1.38.4-14.module_el8.1.0+248+298dec18.noarch libguestfs-java-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-rsync-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-xfs-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-gfs2-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-java-devel-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-devel-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-gobject-devel-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-man-pages-uk-1.38.4-14.module_el8.1.0+248+298dec18.noarch libguestfs-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-benchmarking-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-rescue-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-winsupport-8.0-4.module_el8.1.0+248+298dec18.x86_64 libguestfs-gobject-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-tools-c-1.38.4-14.module_el8.1.0+248+298dec18.x86_64 libguestfs-man-pages-ja-1.38.4-14.module_el8.1.0+248+298dec18.noarch libguestfs-javadoc-1.38.4-14.module_el8.1.0+248+298dec18.noarch libguestfs-bash-completion-1.38.4-14.module_el8.1.0+248+298dec18.noarch libguestfs-inspect-icons-1.38.4-14.module_el8.1.0+248+298dec18.noarch related package versions (just in case?) # rpm -qa | grep libvirt libvirt-daemon-driver-nwfilter-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-gconfig-2.0.0-1.el8.x86_64 libvirt-daemon-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-scsi-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-logical-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-disk-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-libs-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-secret-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-rbd-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-gobject-2.0.0-1.el8.x86_64 libvirt-daemon-driver-qemu-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-iscsi-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 pcp-pmda-libvirt-4.3.2-3.el8_1.x86_64 libvirt-bash-completion-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-core-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-config-network-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-devel-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 python3-libvirt-4.5.0-2.module_el8.1.0+248+298dec18.x86_64 libvirt-daemon-driver-nodedev-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-mpath-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-storage-gluster-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-config-nwfilter-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-kvm-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-interface-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-client-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-daemon-driver-network-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 libvirt-glib-2.0.0-1.el8.x86_64 supermin-5.1.19-9.module_el8.1.0+248+298dec18.x86_64 # rpm -qa | grep qemu qemu-guest-agent-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 qemu-img-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 qemu-kvm-block-iscsi-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 qemu-kvm-common-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 qemu-kvm-block-ssh-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 libvirt-daemon-driver-qemu-4.5.0-35.3.module_el8.1.0+297+df420408.x86_64 qemu-kvm-block-gluster-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 qemu-kvm-core-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 ipxe-roms-qemu-20181214-3.git133f4c47.el8.noarch qemu-kvm-block-rbd-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 qemu-kvm-block-curl-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64 qemu-kvm-2.12.0-88.module_el8.1.0+297+df420408.3.x86_64
On Sat, May 23, 2020 at 04:26:24AM -0600, Ben Wellborn wrote:
+ systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot systemd-tmpfiles: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory
This is the problem. I'm absolutely certain I've seen this bug before but I cannot find it right now. Can you try to see which version of libpcap systemd is linked to? eg: $ ldd /usr/lib/systemd/systemd | grep libpcap libpcap.so.1 => /lib64/libpcap.so.1 (0x00007f50a9af7000) You can also see how the supermin appliance is being rebuilt and whether libpcap is included by doing: $ supermin --build -v -v -v --copy-kernel -f ext2 /usr/lib64/guestfs/supermin.d -o /tmp/appliance.d which will produce a lot of interesting debug output. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Thanks so much for responding. I ran the commands, and attached the output in a text file. Tried to scan the build command output for clues but I'm not sure I can spot anything. since it's short and easy to paste into an email, here's the output of the ldd command: ~]# ldd /usr/lib/systemd/systemd | grep libpcap libpcap.so.1 => /usr/local/lib/libpcap.so.1 (0x00007f91f78f8000) and the libpcap files: ~]# ls -al /usr/local/lib/libpcap* -rw-r--r--. 1 root root 452966 May 13 05:14 /usr/local/lib/libpcap.a lrwxrwxrwx. 1 root root 16 May 17 21:06 /usr/local/lib/libpcap.so.1 -> libpcap.so.1.8.1 -rwxr-xr-x. 1 root root 1861296 May 13 05:14 /usr/local/lib/libpcap.so.1.8.1 Thanks, Ben On 5/23/20 9:20 AM, Richard W.M. Jones wrote:
supermin --build -v -v -v --copy-kernel -f ext2 /usr/lib64/guestfs/supermin.d -o /tmp/appliance.d
participants (2)
-
Ben Wellborn -
Richard W.M. Jones