[Libguestfs] virt-df error, help

Richard W.M. Jones rjones at redhat.com
Tue Dec 9 09:00:59 UTC 2014


[Please keep replies on the mailing list]

On Tue, Dec 09, 2014 at 10:44:17AM +0800, cuimingwen at incito.com.cn wrote:
> Hi, Rich,  my /tmp   size  is  sufficient
> My OS version:
> NAME="Ubuntu" 
> VERSION="14.04.1 LTS, Trusty Tahr" 
> ID=ubuntu 
> ID_LIKE=debian 
> PRETTY_NAME="Ubuntu 14.04.1 LTS" 
> VERSION_ID="14.04" 
> HOME_URL="http://www.ubuntu.com/" 
> SUPPORT_URL="http://help.ubuntu.com/" 
> BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
> 
> I get libguestfs from "apt-get install libguestfs-tools"
> 
> my libguestfs  version: 
> supermin 5.1.0

This is the wrong version of supermin for libguestfs 1.24.5, which
would explain why it did't work.  This would be an Ubuntu packaging bug.

> when  I install libguestfs-1.26.5 ,  after make install,
> the errors 
> ” ocamlfind: Package guestfs is already installed 

You really should *not* run 'make install' when building libguestfs
from source.  Use the './run' script in the top directory.  See the
README file which explains this.

> - (file /usr/lib/ocaml/guestfs/META already exists) 
> make[3]: *** [install-data-hook] Error 2 
> make[3]: Leaving directory `/home/incito/libguestfs-1.26.5/ocaml' 
> make[2]: *** [install-data-am] Error 2 
> make[2]: Leaving directory `/home/incito/libguestfs-1.26.5/ocaml' 
> make[1]: *** [install-am] Error 2 
> make[1]: Leaving directory `/home/incito/libguestfs-1.26.5/ocaml' 
> make: *** [install-recursive] Error 1 “
> 
> when I run ”libguestfs-test-tool"  errors below
> "root at 06MYRC5:/home/incito/libguestfs-1.26.5# libguestfs-test-tool 
> Display all 101 possibilities? (y or n) 
> root at 06MYRC5:/home/incito/libguestfs-1.26.5# libguestfs-test-tool 
> ************************************************************ 
> * IMPORTANT NOTICE 
> * 
> * When reporting bugs, include the COMPLETE, UNEDITED 
> * output below in your bug report. 
> * 
> ************************************************************ 
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 
> SELinux: sh: 1: getenforce: not found 
> guestfs_get_append: (null) 
> guestfs_get_autosync: 1 
> guestfs_get_backend: direct 
> libguestfs-test-tool: symbol lookup error: libguestfs-test-tool: undefined symbol: guestfs_get_backend_settings"

You've now got two conflicting versions of libguestfs installed.

You'll have to either reinstall the OS from scratch, or very carefully
try to work out what the 'make install' command installed and remove
it by hand.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list