[fedora-virt] ANNOUNCE: Augeas support added to libguestfs

Richard W.M. Jones rjones at redhat.com
Sun Apr 12 10:53:10 UTC 2009

On Sun, Apr 12, 2009 at 11:35:49AM +0200, Ján ONDREJ (SAL) wrote:
> Building in mock requires all buildrequires available in an repository.

You can add custom repositories to mock (just add them to the relevant
file in /etc/mock/<dist>.cfg).

Then create your own mini-repository with the two missing packages,
something like:

mkdir my-repo
cd my-repo
cp .../fakechroot-2.9-1*.rpm .../febootstrap-1.5-1*.rpm .
createrepo .

and add the path to my-repo to the mock config as a custom repository.

> Do you need some help with building libguestfs and all dependencies for
> Fedora?

Yes - it's something I'm going to try to get to this week.  I'll
follow up with the BZs once I've done them.

Actually, I'm not certain what the status is of fakechroot 2.9 +
patches, so that also needs looking into.

> > What are the missing deps?  You need to have febootstrap and a patched
> > version of fakechroot (from
> > http://et.redhat.com/~rjones/febootstrap/files/).  Everything should
> > be covered by the BuildRequires in the src rpm, unless I've missed
> > something.
> Btw, when installing febootstrap, it requires fakechroot >=
> 2.9-1.fc11.rwmj3. It's not a good idea to require some "fcXX" in Requires,
> try to name your package 2.9.1.rwmj3.fc11.

It's only temporary.  This needs to go into rawhide proper, and I
think there is still one patch waiting on approval from upstream, so
that's something to check this week.

> [root at work i386]# rpm -Uhv ../noarch/febootstrap-1.5-1.fc10.noarch.rpm fakechroot-2.9-1.fc10.rwmj3.i386.rpm
> fakechroot-libs-2.9-1.fc10.rwmj3.i386.rpm error: Failed dependencies:
>         fakechroot >= 2.9-1.fc11.rwmj3 is needed by febootstrap-1.5-1.fc10.noarch
> After running rpm with --nodeps, libguestfs 0.8 does not build:
> ../src/guestfs_protocol.c: In function 'xdr_str':
> ../src/guestfs_protocol.c:11: warning: unused variable 'buf'
> ../src/guestfs_protocol.c: In function 'xdr_guestfs_lvm_int_pv':
> ../src/guestfs_protocol.c:23: warning: unused variable 'i'
> ../src/guestfs_protocol.c:21: warning: unused variable 'buf'
> ../src/guestfs_protocol.c: In function 'xdr_guestfs_lvm_int_pv_list':
> ../src/guestfs_protocol.c:58: warning: unused variable 'buf'
> ...
> gcc -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protec
> tor --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unw
> ind-tables   -o guestfsd guestfsd-augeas.o guestfsd-devsparts.o guestfsd-dir.o g
> uestfsd-file.o guestfsd-guestfsd.o guestfsd-ls.o guestfsd-lvm.o guestfsd-mount.o
>  guestfsd-proto.o guestfsd-stubs.o guestfsd-sync.o guestfsd-guestfs_protocol.o  
> -laugeas
> guestfsd-augeas.o: In function `do_aug_load':
> /usr/src/rpmbuild/BUILD/libguestfs-0.8/daemon/augeas.c:272: undefined reference to `aug_load'
> guestfsd-augeas.o: In function `do_aug_defnode':
> /usr/src/rpmbuild/BUILD/libguestfs-0.8/daemon/augeas.c:113: undefined reference to `aug_defnode'
> guestfsd-augeas.o: In function `do_aug_defvar':
> /usr/src/rpmbuild/BUILD/libguestfs-0.8/daemon/augeas.c:97: undefined reference to `aug_defvar'
> collect2: ld returned 1 exit status
> Can I disable augeas usage when building rpm?

Well, you'll need to change the code.  See daemon/configure.ac and

What was the problem with just installing augeas-devel?  It's in
Fedora 10 updates & Rawhide.

> Btw, where there is no "edit filename" command in guestfish? Something
> similar to "virsh edit ...", invoke editor on file downloaded from image and
> then store changed filename back.

Yes, good idea!

Have a look at how the guestfish alloc command is implemented.

> I am using LVM on host machine, so I don't need to send lvcreate command to
> VM. Just send sync (is it possible with KVM? For xen it's an xm sysrq s
> command), pause it, take snapshot, save memory without stopping (it is a
> problem yet) and resume it. Scripts for xen using xen migration to simulate
> this.

Ok - probably something to discuss with qemu and/or KVM upstream.


Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw

More information about the Fedora-virt mailing list