Hello, I tried to install guestfish on my Fedora 29 and used the commands from documentation sudo dnf install libguestfs-tools but I got an error when I tried to execute run. You will find below logs below: ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ PATH=/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/us r/sbin:/home/romain/bin XDG_RUNTIME_DIR=/run/user/1000 SELinux: Disabled guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: libvirt guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_hv: /usr/bin/qemu-kvm guestfs_get_memsize: 500 guestfs_get_network: 0 guestfs_get_path: /usr/lib64/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_smp: 1 guestfs_get_sockdir: /run/user/1000 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: x86_64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.39.11fedora=29,release=1.fc29,libvirt libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=libvirt libguestfs: launch: tmpdir=/tmp/libguestfsH1Xvb3 libguestfs: launch: umask=0022 libguestfs: launch: euid=1000 libguestfs: libvirt version = 4007000 (4.7.0) libguestfs: guest random name = guestfs-rakt1mfrsshbuiqs libguestfs: connect to libvirt libguestfs: opening libvirt handle: URI = qemu:///session, auth default+wrapper, flags = 0 libguestfs: successfully opened libvirt handle: conn = 0x55f938843730 libguestfs: qemu version (reported by libvirt) = 3000000 (3.0.0) libguestfs: get libvirt capabilities libguestfs: parsing capabilities XML libguestfs: build appliance libguestfs: begin building supermin appliance libguestfs: run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu x86_64 libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.19 supermin: rpm: detected RPM version 4.14 supermin: package handler: fedora/rpm supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/lib64/guestfs/supermin.d supermin: reading the supermin appliance supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/lib64/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/lib64/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/lib64/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/lib64/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/lib64/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/lib64/guestfs/supermin.d/udev- rules.tar.gz type gzip base image (tar) supermin: build: visiting /usr/lib64/guestfs/supermin.d/zz-packages-xfs type uncompressed packages supermin: mapping package names to installed packages supermin: resolving full list of package dependencies supermin: exception: Librpm.Multiple_matches(2) libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: Invalid argument [you can ignore this message if you are not using SELinux + sVirt] libguestfs: closing guestfs handle 0x55f938840880 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsH1Xvb3 What can I do? Best regards,
On Tue, Jan 22, 2019 at 06:03:36PM +0000, CHANU ROMAIN wrote:> Hello, > > I tried to install guestfish on my Fedora 29 and used the commands from > documentation sudo dnf install libguestfs-tools but I got an error when > I tried to execute run. You will find below logs below: > > ************************************************************ > * IMPORTANT NOTICE > * > * When reporting bugs, include the COMPLETE, UNEDITED > * output below in your bug report. > * > ************************************************************ > PATH=/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/us > r/sbin:/home/romain/bin > XDG_RUNTIME_DIR=/run/user/1000 > SELinux: Disabled > guestfs_get_append: (null) > guestfs_get_autosync: 1 > guestfs_get_backend: libvirt > guestfs_get_backend_settings: [] > guestfs_get_cachedir: /var/tmp > guestfs_get_hv: /usr/bin/qemu-kvm > guestfs_get_memsize: 500 > guestfs_get_network: 0 > guestfs_get_path: /usr/lib64/guestfs > guestfs_get_pgroup: 0 > guestfs_get_program: libguestfs-test-tool > guestfs_get_recovery_proc: 1 > guestfs_get_smp: 1 > guestfs_get_sockdir: /run/user/1000 > guestfs_get_tmpdir: /tmp > guestfs_get_trace: 0 > guestfs_get_verbose: 1 > host_cpu: x86_64 > Launching appliance, timeout set to 600 seconds. > libguestfs: launch: program=libguestfs-test-tool > libguestfs: launch: version=1.39.11fedora=29,release=1.fc29,libvirt > libguestfs: launch: backend registered: unix > libguestfs: launch: backend registered: uml > libguestfs: launch: backend registered: libvirt > libguestfs: launch: backend registered: direct > libguestfs: launch: backend=libvirt > libguestfs: launch: tmpdir=/tmp/libguestfsH1Xvb3 > libguestfs: launch: umask=0022 > libguestfs: launch: euid=1000 > libguestfs: libvirt version = 4007000 (4.7.0) > libguestfs: guest random name = guestfs-rakt1mfrsshbuiqs > libguestfs: connect to libvirt > libguestfs: opening libvirt handle: URI = qemu:///session, auth > default+wrapper, flags = 0 > libguestfs: successfully opened libvirt handle: conn = 0x55f938843730 > libguestfs: qemu version (reported by libvirt) = 3000000 (3.0.0) > libguestfs: get libvirt capabilities > libguestfs: parsing capabilities XML > libguestfs: build appliance > libguestfs: begin building supermin appliance > libguestfs: run supermin > libguestfs: command: run: /usr/bin/supermin > libguestfs: command: run: \ --build > libguestfs: command: run: \ --verbose > libguestfs: command: run: \ --if-newer > libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock > libguestfs: command: run: \ --copy-kernel > libguestfs: command: run: \ -f ext2 > libguestfs: command: run: \ --host-cpu x86_64 > libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d > libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d > supermin: version: 5.1.19 > supermin: rpm: detected RPM version 4.14 > supermin: package handler: fedora/rpm > supermin: acquiring lock on /var/tmp/.guestfs-1000/lock > supermin: build: /usr/lib64/guestfs/supermin.d > supermin: reading the supermin appliance > supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz > type gzip base image (tar) > supermin: build: visiting /usr/lib64/guestfs/supermin.d/daemon.tar.gz > type gzip base image (tar) > supermin: build: visiting /usr/lib64/guestfs/supermin.d/excludefiles > type uncompressed excludefiles > supermin: build: visiting /usr/lib64/guestfs/supermin.d/hostfiles type > uncompressed hostfiles > supermin: build: visiting /usr/lib64/guestfs/supermin.d/init.tar.gz > type gzip base image (tar) > supermin: build: visiting /usr/lib64/guestfs/supermin.d/packages type > uncompressed packages > supermin: build: visiting /usr/lib64/guestfs/supermin.d/udev- > rules.tar.gz type gzip base image (tar) > supermin: build: visiting /usr/lib64/guestfs/supermin.d/zz-packages-xfs > type uncompressed packages > supermin: mapping package names to installed packages > supermin: resolving full list of package dependencies > supermin: exception: Librpm.Multiple_matches(2)Ouch, yes, that's a new bug we've not seen before ... It's caused by librpm returning an unexpected value, but I'm not sure why: https://github.com/libguestfs/supermin/blob/1ed4bdd4d782d8f94b197283866cf24f86f7869b/src/librpm-c.c#L298 I'll have to have a look at the documentation for librpm. Do you have multiple installed RPMs with the same name? Rich.> libguestfs: error: /usr/bin/supermin exited with error status 1, see > debug messages above > libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: > Invalid argument [you can ignore this message if you are not using > SELinux + sVirt] > libguestfs: closing guestfs handle 0x55f938840880 (state 0) > libguestfs: command: run: rm > libguestfs: command: run: \ -rf /tmp/libguestfsH1Xvb3 > > > What can I do? > > Best regards, >-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hello, I dont think so. You will find below my RPMs package: rpm -qa | grep rpm ✔rpm-plugin-selinux- 4.14.2.1-2.fc29.x86_64python3-rpm-4.14.2.1-2.fc29.x86_64rpm-build-libs- 4.14.2.1-2.fc29.x86_64rpm-ostree-libs-2018.10-1.fc29.x86_64rpm- 4.14.2.1-2.fc29.x86_64rpm-libs-4.14.2.1-2.fc29.x86_64drpm-0.3.0- 14.fc29.x86_64rpm-plugin-systemd-inhibit-4.14.2.1-2.fc29.x86_64python- qt5-rpm-macros-5.11.3-1.fc29.noarchdeltarpm-3.6-28.fc29.x86_64rpm- 4.14.2.1-2.fc29.x86_64rpmfusion-free-release-29-1.noarchrpm-sign-libs- 4.14.2.1-2.fc29.x86_64 Dont hesitate to ask me more commamd's output or anything. BR Romain On Tue, 2019-01-22 at 19:31 +0000, Richard W.M. Jones wrote:> On Tue, Jan 22, 2019 at 06:03:36PM +0000, CHANU ROMAIN wrote: > > Hello, > > I tried to install guestfish on my Fedora 29 and used the commands > > fromdocumentation sudo dnf install libguestfs-tools but I got an > > error whenI tried to execute run. You will find below logs below: > > ************************************************************ > > * IMPORTANT NOTICE * * When reporting > > bugs, include the COMPLETE, UNEDITED * output below in your bug > > report. * ************************************************* > > ***********PATH=/usr/share/Modules/bin:/usr/local/bin:/usr/local/sb > > in:/usr/bin:/usr/sbin:/home/romain/binXDG_RUNTIME_DIR=/run/user/100 > > 0SELinux: Disabledguestfs_get_append: (null)guestfs_get_autosync: > > 1guestfs_get_backend: libvirtguestfs_get_backend_settings: > > []guestfs_get_cachedir: /var/tmpguestfs_get_hv: /usr/bin/qemu- > > kvmguestfs_get_memsize: 500guestfs_get_network: 0guestfs_get_path: > > /usr/lib64/guestfsguestfs_get_pgroup: 0guestfs_get_program: > > libguestfs-test-toolguestfs_get_recovery_proc: 1guestfs_get_smp: > > 1guestfs_get_sockdir: /run/user/1000guestfs_get_tmpdir: > > /tmpguestfs_get_trace: 0guestfs_get_verbose: 1host_cpu: > > x86_64Launching appliance, timeout set to 600 seconds.libguestfs: > > launch: program=libguestfs-test-toollibguestfs: launch: > > version=1.39.11fedora=29,release=1.fc29,libvirtlibguestfs: launch: > > backend registered: unixlibguestfs: launch: backend registered: > > umllibguestfs: launch: backend registered: libvirtlibguestfs: > > launch: backend registered: directlibguestfs: launch: > > backend=libvirtlibguestfs: launch: > > tmpdir=/tmp/libguestfsH1Xvb3libguestfs: launch: > > umask=0022libguestfs: launch: euid=1000libguestfs: libvirt version > > = 4007000 (4.7.0)libguestfs: guest random name = guestfs- > > rakt1mfrsshbuiqslibguestfs: connect to libvirtlibguestfs: opening > > libvirt handle: URI = qemu:///session, auth =default+wrapper, flags > > = 0libguestfs: successfully opened libvirt handle: conn > > 0x55f938843730libguestfs: qemu version (reported by libvirt) > > 3000000 (3.0.0)libguestfs: get libvirt capabilitieslibguestfs: > > parsing capabilities XMLlibguestfs: build appliancelibguestfs: > > begin building supermin appliancelibguestfs: run > > superminlibguestfs: command: run: /usr/bin/superminlibguestfs: > > command: run: \ --buildlibguestfs: command: run: \ -- > > verboselibguestfs: command: run: \ --if-newerlibguestfs: command: > > run: \ --lock /var/tmp/.guestfs-1000/locklibguestfs: command: run: > > \ --copy-kernellibguestfs: command: run: \ -f ext2libguestfs: > > command: run: \ --host-cpu x86_64libguestfs: command: run: \ > > /usr/lib64/guestfs/supermin.dlibguestfs: command: run: \ -o > > /var/tmp/.guestfs-1000/appliance.dsupermin: version: > > 5.1.19supermin: rpm: detected RPM version 4.14supermin: package > > handler: fedora/rpmsupermin: acquiring lock on /var/tmp/.guestfs- > > 1000/locksupermin: build: /usr/lib64/guestfs/supermin.dsupermin: > > reading the supermin appliancesupermin: build: visiting > > /usr/lib64/guestfs/supermin.d/base.tar.gztype gzip base image > > (tar)supermin: build: visiting > > /usr/lib64/guestfs/supermin.d/daemon.tar.gztype gzip base image > > (tar)supermin: build: visiting > > /usr/lib64/guestfs/supermin.d/excludefilestype uncompressed > > excludefilessupermin: build: visiting > > /usr/lib64/guestfs/supermin.d/hostfiles typeuncompressed > > hostfilessupermin: build: visiting > > /usr/lib64/guestfs/supermin.d/init.tar.gztype gzip base image > > (tar)supermin: build: visiting > > /usr/lib64/guestfs/supermin.d/packages typeuncompressed > > packagessupermin: build: visiting > > /usr/lib64/guestfs/supermin.d/udev-rules.tar.gz type gzip base > > image (tar)supermin: build: visiting > > /usr/lib64/guestfs/supermin.d/zz-packages-xfs type uncompressed > > packagessupermin: mapping package names to installed > > packagessupermin: resolving full list of package > > dependenciessupermin: exception: Librpm.Multiple_matches(2) > > Ouch, yes, that's a new bug we've not seen before ... > It's caused by librpm returning an unexpected value, butI'm not sure > why: > https://github.com/libguestfs/supermin/blob/1ed4bdd4d782d8f94b197283866cf24f86f7869b/src/librpm-c.c#L298 > > I'll have to have a look at the documentation for librpm. Do you > havemultiple installed RPMs with the same name? > Rich. > > libguestfs: error: /usr/bin/supermin exited with error status 1, > > seedebug messages abovelibguestfs: clear_socket_create_context: > > setsockcreatecon failed: NULL:Invalid argument [you can ignore this > > message if you are not usingSELinux + sVirt]libguestfs: closing > > guestfs handle 0x55f938840880 (state 0)libguestfs: command: run: > > rmlibguestfs: command: run: \ -rf /tmp/libguestfsH1Xvb3 > > > > What can I do? > > Best regards, > >
Hi, On Tuesday, 22 January 2019 19:03:36 CET CHANU ROMAIN wrote:> supermin: resolving full list of package dependencies > supermin: exception: Librpm.Multiple_matches(2) > libguestfs: error: /usr/bin/supermin exited with error status 1, see > debug messages aboveThis happens because librpm reports more than 1 RPM matching a NEVRA (Name/Epoch/Version/Release/Architecture), e.g. bash-4.4.23-6.fc29.x86_64. Unfortunately the error reporting does not provide all the information needed, I just sent a couple of patches to improve it: https://www.redhat.com/archives/libguestfs/2019-January/msg00200.html Nevertheless, you can run supermin manually to get more information on the "problematic" situation: $ mkdir /tmp/appliance $ supermin --build --verbose --verbose -f ext2 \ /usr/lib64/guestfs/supermin.d -o /tmp/appliance The verbosity level 2 will print more details, including the package considered problematic. -- Pino Toscano
I added Pino's patches into this version of supermin: https://bodhi.fedoraproject.org/updates/FEDORA-2019-640a4bb060 Please download and install this package (from the "Builds" tab) and run libguestfs-test-tool again, and it ought to give more information about which package on your system is causing the problem. Also run: rpm -qa and attach that as well as the output from libguestfs-test-tool above. Thanks, 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