Re: [Libguestfs] compile guestfsd
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
thanks, that's what i was asking for. :-) 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
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
On Wed, Sep 12, Richard Huang wrote:
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.
Until there is a --disable-kvm-check use this: # disable qemu test. # If the package is built within kvm the configure test will fail # because it starts kvm within kvm # With QEMU in environment qemu and kvm packages are not needed at build time. export vmchannel_test=no export QEMU=/usr/bin/qemu-kvm ./configure --with-qemu=$QEMU [options] Olaf
On Wed, Sep 12, 2012 at 09:11:19PM +0800, Richard Huang wrote:
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.
As Olaf says, this is a bug in the configure script. 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
participants (3)
-
Olaf Hering -
Richard Huang -
Richard W.M. Jones