yes, this is what i was asking for..

but I got the below message while compiling guestfsd daemon:

  configure: error: qemu must be installed

Since I am compiling on a virtual machine (CentOS 6.3), there is no qemu in it. How can I compile without qemu? P.S., I've tried --without-qemu, didn't work.

thanks.

On Wed, Sep 12, 2012 at 5:01 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Sep 12, 2012 at 04:39:48PM +0800, Richard Huang wrote:
> Hi Richard,
>
> I want to compile guestfsd only for some guests, including centos, debian,
> variable versions. But I didn't find scripts for it. Can you guide me how
> to do this?

I'm unclear exactly what the question is.  You can compile guestfsd
(just the daemon) this way:

  ./configure \
    --enable-daemon \
    --disable-appliance \
    --disable-fuse \
    --disable-perl \
    --disable-python \
    --disable-ruby \
    --disable-haskell \
    --disable-php \
    --disable-erlang \
    --disable-gobject
  make

  $ ls -l daemon/guestfsd
  -rwxrwxr-x. 1 rjones rjones 2073914 Sep 12 09:57 daemon/guestfsd

You still have to run that command on each distro/version that you
want to build a daemon for, assuming that's what you're trying to do.

Try:

  ./configure --help | grep -E -- '--(dis|en)able'

to get a list of things that can be enabled or disabled.  There is no
way currently to disable building the library, tools and language
bindings as a whole, although arguably we should add that.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org