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?
Richard W.M. Jones
2017-Jul-29 10:00 UTC
Re: [Libguestfs] cannot find any suitable libguestfs supermin
On Sat, Jul 29, 2017 at 04:33:38PM +0800, lampahome wrote:> 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:Please don't provide partial information. Include the command you type and *all* the output, without editing or removing any part of it.> ./libguestfs-test-tool: symbol lookup error: ./libguestfs-test-tool: > undefined symbol: guestfs_get_sockdirIn this case you want to use: ./run libguestfs-test-tool using the ./run script as described here: http://libguestfs.org/guestfs-building.1.html#the-.-run-script Rich. -- 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/
lampahome
2017-Jul-29 12:17 UTC
Re: [Libguestfs] cannot find any suitable libguestfs supermin
2017-07-29 18:00 GMT+08:00 Richard W.M. Jones <rjones@redhat.com>:> > > 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: > > Please don't provide partial information. Include the command you > type and *all* the output, without editing or removing any part of it. > > export LIBGUESTFS_PATH=/share/CACHEDEV1_DATA/appliance[/share/CACHEDEV1_DATA/guestfk/usr/local/bin] # ./libguestfs-test-tool ./libguestfs-test-tool: /usr/lib/libsasl2.so.2: no version information available (required by /usr/local/lib/libvirt.so.0) ./libguestfs-test-tool: /usr/lib/libdbus-1.so.3: no version information available (required by /usr/local/lib/libvirt.so.0) ./libguestfs-test-tool: /usr/lib/libldap_r-2.4.so.2: no version information available (required by /usr/local/lib/libcurl-gnutls.so.4) ./libguestfs-test-tool: /lib/liblber-2.4.so.2: no version information available (required by /usr/local/lib/libcurl-gnutls.so.4) ./libguestfs-test-tool: /usr/lib/libgpg-error.so.0: no version information available (required by /usr/local/lib/libgcrypt.so.20) ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ 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> ./libguestfs-test-tool: symbol lookup error: ./libguestfs-test-tool: > > undefined symbol: guestfs_get_sockdir > > In this case you want to use: > > ./run libguestfs-test-tool >when I run "./run libguestfs-test-tool", it says "./run: line 57: cd: /home/use/git/libguestfs: No such file or directory" because I don't want the prefix "git" so I run "make install DESTDIR=/share/CACHEDEV1_DATA/" when I build. how to remove the prefix "git" dependency?