Why does so much virt stuff depend on glusterfs?

Daniel P. Berrange berrange at redhat.com
Wed Jul 24 10:36:26 UTC 2013


On Wed, Jul 24, 2013 at 11:08:41AM +0100, Richard W.M. Jones wrote:
> On Wed, Jul 24, 2013 at 10:17:14AM +0100, Daniel P. Berrange wrote:
> > On Tue, Jul 23, 2013 at 09:46:30PM +0100, Richard W.M. Jones wrote:
> > > On Tue, Jul 23, 2013 at 03:00:46PM -0400, Bill Nottingham wrote:
> > > > Richard W.M. Jones (rjones at redhat.com) said: 
> > > > > On Tue, Jul 23, 2013 at 06:15:32PM +0100, Richard W.M. Jones wrote:
> > > > > > However for some reason I can't quite understand, libvirt-daemon
> > > > > > depends on 'qemu'.  That may be a bug?
> > > > > 
> > > > > I meant to write: "'libvirt-daemon-qemu' depends on 'qemu'".
> > > > 
> > > > Isn't it simplest for that to depend on a virtual 'qemu-system', which is
> > > > provided by qemu-kvm on KVM arches, and qemu-system-XYZ on non-KVM arches?
> > > 
> > > Right, which is why I said this may be a bug.  Dan Berrange (CC'd on
> > > this subthread) will know.
> > 
> > The libvirt-daemon-qemu package is intended to pull in the QEMU emulators.
> > If you only want to pull in KVM, then you should depend on the separate
> > libvirt-daemon-kvm package instead.
> 
> In libguestfs I have:
> 
>   Requires:      libvirt-daemon-qemu >= 0.10.2-3
>   %ifarch %{ix86} x86_64
>   Requires:      libvirt-daemon-kvm >= 0.10.2-3
>   %endif
> 
> because I don't know if I'm going to be needing TCG or can use KVM.

But the qemu-kvm binary can still run in TCG mode - you don't need to
install the QEMU emulators too. So your dep could be

   %ifarch %{ix86} x86_64
   Requires:      libvirt-daemon-kvm >= 0.10.2-3
   %else
   Requires:      libvirt-daemon-qemu >= 0.10.2-3
   %endif

thus avoiding install of QEMU emulators unless they're the only
option available.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


More information about the devel mailing list