On Tue, May 05, 2015 at 04:30:40PM +0800, fu lirong wrote:
Hi ,all :
thanks for helping me ! I am using libguestfs-1.28.1 on ubuntu
12.04 to manage vm disk created by KVM. I downloaded
libguestfs-1.28.1.tar.gz ,and then executed
(1) ./autogen.sh (2) ./configure (3) make (4) make check
there is the error.
/usr/Libvmi/libguestfs-1.28.1/run --test guest-aux/make-fedora-img.pl
md_create: feature 'mdadm' is not available in this
build of libguestfs. Read 'AVAILABILITY' in the guestfs(3) man page for
how to check for the availability of features. at
/usr/Libvmi/libguestfs-1.28.1/tests/guests/guest-aux/make-fedora-img.pl
line 103.
/usr/Libvmi/libguestfs-1.28.1/run: command failed with exit code 2
make[2]: *** [stamp-fedora-md.img] Error 2
make[2]: Leaving directory `/usr/Libvmi/libguestfs-1.28.1/tests/guests'
You're doing quite well. This is likely an actual bug in the
libguestfs test suite, since we always run it with mdadm available.
Before we go on, does this command succeed?
make quickcheck
my questions are:
(1) I googled the problem. In guestfs(3) man page ,It seems like that I
don't install FUSE. In fact ,I have no idea about so many packages in
libguestfs such v2v , src ,tools,tests and so on ,and I want to know where
to find such kind information.
FUSE should be optional.
(2) I find that guestfsd is the daemon in guest, so ,do I have to
modify
the guest(such as run guestfsd in guest)?
No. See this diagram:
http://libguestfs.org/guestfs.3.html#architecture
The guest is not running, and does not need to run guestfsd.
(3) I just start the example : Inspect a disk image and display
operating systems it may contain. so I copy the code under
/libguestfs-1.28.1/prog.c , then I executed
(1) cc prog.c -o prog `pkg-config libguestfs --cflags --libs` ,
(2)./prog /var/lib/libvirt/images/vm.img
libguestfs: error: aug_init: aug_init: / (flags 48): Syntax error in lens
definition: /usr/share/guestfs/guestfs_lvm_conf.aug:28.25-.40:Could not
load module Quote for Quote.do_dquote
/usr/share/guestfs/guestfs_lvm_conf.aug:28.25-.40:Undefined variable
Quote.do_dquote
/usr/share/guestfs/guestfs_lvm_conf.aug:29.31-.44:Could not load module Rx
for Rx.relinteger
/usr/share/guestfs/guestfs_lvm_conf.aug:29.31-.44:Undefined variable
Rx.relinteger
/usr/share/guestfs/guestfs_lvm_conf.aug:32.20-.23:Undefined variable int
/usr/share/guestfs/guestfs_lvm_conf.aug:40.17-.29:Undefined variable
flat_literal
thanks for your patience, I Appreciate it so much .
Pino ^^ This is a libguestfs bug isn't it? But may be happening
because Lirong is using Ubuntu 12.04 or the old libguestfs 1.28.1
version?
Lirong: Could you share some information about what your program does?
I'm guessing it calls guestfs_inspect_os() ?
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