I download libguestfs from github and fetch to the *origin master*. I tried to build libguestfs in my own linux distro and I followd the http://libguestfs.org/guestfs-building.1.html#using-a-prebuilt-binary-appliance to replace with supermin I download the appliance-1.30.1.tar.xz and appliance-1.30.1.tar.xz.sig and extract the tarball to /home/user/appliance and export LIBGUESTFS_PATH=/*home/user/appliance* Then I build libguestfs below:> ./autogen.sh --disable-appliance --disable-daemon > makemake install DESTDIR=/tmp It builds fine. And guestfish version is 1.37.18 But I got error when I execute guestfish:> guestfish > add --rw disk.qcow2 > run > error: libguestfs: error: cannot find any suitable libguestfs supermin, > fixed or old-style appliance on LIBGUESTFS_PATHBut I echo $LIBGUESTFS_PATH, it's */home/user/appliance* I don't know how come going wrong
Richard W.M. Jones
2017-Jul-28 16:20 UTC
Re: [Libguestfs] cannot find any suitable libguestfs supermin
On Fri, Jul 28, 2017 at 11:34:38PM +0800, lampahome wrote:> > guestfish > > add --rw disk.qcow2 > > run > > error: libguestfs: error: cannot find any suitable libguestfs supermin, > > fixed or old-style appliance on LIBGUESTFS_PATH > > > But I echo $LIBGUESTFS_PATH, it's */home/user/appliance* > > I don't know how come going wrongYou need to download this appliance: http://download.libguestfs.org/binaries/appliance/appliance-1.36.1.tar.xz and unpack it under /home/user/appliance/ . Directly inside the /home/user/appliance directory you should see files called "initrd", "kernel", "README.fixed" and "root". If it still doesn't work then you'll have to post the complete output of ‘libguestfs-test-tool’. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
lampahome
2017-Jul-29 08:33 UTC
Re: [Libguestfs] cannot find any suitable libguestfs supermin
2017-07-29 0:20 GMT+08:00 Richard W.M. Jones <rjones@redhat.com>:> > You need to download this appliance: > > http://download.libguestfs.org/binaries/appliance/ > appliance-1.36.1.tar.xz > > and unpack it under /home/user/appliance/ . > > Directly inside the /home/user/appliance directory you should see > files called "initrd", "kernel", "README.fixed" and "root". > > If it still doesn't work then you'll have to post the complete output > of ‘libguestfs-test-tool’. >I download the newset package and extract in my path(/share/CACHEDEV1_DATA/appliance/) and set env It doesn't work. and I run the libugestfs-test-tool: libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 libguestfs: trace: set_path "/share/CACHEDEV1_DATA/appliance" libguestfs: trace: set_path = 0 libguestfs: trace: set_verbose true libguestfs: trace: set_verbose = 0 LIBGUESTFS_PATH=/share/CACHEDEV1_DATA/appliance LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found libguestfs: trace: add_drive_scratch 104857600 libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: disk_create "/tmp/libguestfsbaZQUg/scratch.1" "raw" 104857600 libguestfs: trace: disk_create = 0 libguestfs: trace: add_drive "/tmp/libguestfsbaZQUg/scratch.1" "format:raw" "cachemode:unsafe" libguestfs: trace: add_drive = 0 libguestfs: trace: add_drive_scratch = 0 libguestfs: trace: get_append libguestfs: trace: get_append = "NULL" guestfs_get_append: (null) libguestfs: trace: get_autosync libguestfs: trace: get_autosync = 1 guestfs_get_autosync: 1 libguestfs: trace: get_backend libguestfs: trace: get_backend = "direct" guestfs_get_backend: direct libguestfs: trace: get_backend_settings libguestfs: trace: get_backend_settings = [] guestfs_get_backend_settings: [] libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" guestfs_get_cachedir: /var/tmp libguestfs: trace: get_hv libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64" guestfs_get_hv: /usr/bin/qemu-system-x86_64 libguestfs: trace: get_memsize libguestfs: trace: get_memsize = 500 guestfs_get_memsize: 500 libguestfs: trace: get_network libguestfs: trace: get_network = 0 guestfs_get_network: 0 libguestfs: trace: get_path libguestfs: trace: get_path = "/share/CACHEDEV1_DATA/appliance" guestfs_get_path: /share/CACHEDEV1_DATA/appliance libguestfs: trace: get_pgroup libguestfs: trace: get_pgroup = 0 guestfs_get_pgroup: 0 libguestfs: trace: get_program libguestfs: trace: get_program = "libguestfs-test-tool" guestfs_get_program: libguestfs-test-tool libguestfs: trace: get_recovery_proc libguestfs: trace: get_recovery_proc = 1 guestfs_get_recovery_proc: 1 libguestfs: trace: get_smp libguestfs: trace: get_smp = 1 guestfs_get_smp: 1 ./libguestfs-test-tool: symbol lookup error: ./libguestfs-test-tool: undefined symbol: guestfs_get_sockdir should I do something?