Safa Rekik
2014-Feb-25 15:32 UTC
Re: [Libguestfs] Problem with febootstrap version while compiling guestfsd in centos6.5
Ah OK, and what about generating the libguestfs-live-service for centos ? I know that they may compatibilities issues with the distribution of source rpm for fedora >=16 Actually i prefer not have all our guests overburdened with the libguestfs package while we just need the daemon. Beside i believe that with the live-service packege, closing the guestfs handle does not cause the daemon to exit (correct me if i am wrong) Thank you 2014-02-25 16:15 GMT+01:00 Richard W.M. Jones <rjones@redhat.com>:> [Please keep replies on the list] > > On Tue, Feb 25, 2014 at 04:13:52PM +0100, Safa Rekik wrote: > > Actually i am trying to use libguestfs live in centos 6.5 guest. > > > > I couldn't find the libguestfs-live-service for centos so i am trying two > > things : either compiling guestfsd from source or generating an rpm for > > centos with rpmbuild (didn't try it yet). > > > > Please tell me if i am wrong or if there is a better way to use > libguestfs > > live. > > I believe libguestfs live is disabled in the RHEL/CentOS 6 package, so > the only way to do it is to build the whole libguestfs from source. > Just building the daemon won't work. > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > Fedora Windows cross-compiler. Compile Windows programs, test, and > build Windows installers. Over 100 libraries supported. > http://fedoraproject.org/wiki/MinGW >-- Safa REKIK
Richard W.M. Jones
2014-Feb-27 12:24 UTC
Re: [Libguestfs] Problem with febootstrap version while compiling guestfsd in centos6.5
On Tue, Feb 25, 2014 at 04:32:32PM +0100, Safa Rekik wrote:> Ah OK, and what about generating the libguestfs-live-service for centos ? I > know that they may compatibilities issues with the distribution of source > rpm for fedora >=16We don't want to support libguestfs-live on RHEL, and the only way to enable it in CentOS would be to enable it in RHEL too. FWIW RHEL 6 carries the following patch: https://github.com/libguestfs/libguestfs/commit/f87bb94ce53e991dd29f0b4731c688413c5b7024 You could modify the libguestfs RHEL 6 spec file, remove that patch. You'll also need to modify the spec file to add the live-service subpackage. As an example of what to do, see the Fedora spec file: http://pkgs.fedoraproject.org/cgit/libguestfs.git/plain/libguestfs.spec and search for the string 'live-service'. Actually I just realized that uses systemd units, not sysvinit, so that's not totally simple to emulate on RHEL 6.> Actually i prefer not have all our guests overburdened with the libguestfs > package while we just need the daemon.You can compile libguestfs on one machine, and copy the libguestfs-live-service RPM to the guests.> Beside i believe that with the live-service packege, closing the guestfs > handle does not cause the daemon to exit (correct me if i am wrong)This is correct, yes. 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
Safa Rekik
2014-Feb-27 13:01 UTC
Re: [Libguestfs] Problem with febootstrap version while compiling guestfsd in centos6.5
Thank you very much for your help, we will give it a try ! 2014-02-27 13:24 GMT+01:00 Richard W.M. Jones <rjones@redhat.com>:> On Tue, Feb 25, 2014 at 04:32:32PM +0100, Safa Rekik wrote: > > Ah OK, and what about generating the libguestfs-live-service for centos > ? I > > know that they may compatibilities issues with the distribution of source > > rpm for fedora >=16 > > We don't want to support libguestfs-live on RHEL, and the only way to > enable it in CentOS would be to enable it in RHEL too. > > FWIW RHEL 6 carries the following patch: > > > https://github.com/libguestfs/libguestfs/commit/f87bb94ce53e991dd29f0b4731c688413c5b7024 > > You could modify the libguestfs RHEL 6 spec file, remove that patch. > > You'll also need to modify the spec file to add the live-service > subpackage. As an example of what to do, see the Fedora spec file: > > http://pkgs.fedoraproject.org/cgit/libguestfs.git/plain/libguestfs.spec > and search for the string 'live-service'. > > Actually I just realized that uses systemd units, not sysvinit, so > that's not totally simple to emulate on RHEL 6. > > > Actually i prefer not have all our guests overburdened with the > libguestfs > > package while we just need the daemon. > > You can compile libguestfs on one machine, and copy the > libguestfs-live-service RPM to the guests. > > > Beside i believe that with the live-service packege, closing the guestfs > > handle does not cause the daemon to exit (correct me if i am wrong) > > This is correct, yes. > > 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 >-- Safa REKIK