Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 310219

Summary: app-emulation/libvirt-0.7.6-r1 should check a hypervisor use flag is selected
Product: Gentoo Linux Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: [OLD] ServerAssignee: Virtualization Team <virtualization>
Status: RESOLVED INVALID    
Severity: normal CC: qa
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Petteri Räty (RETIRED) gentoo-dev 2010-03-19 13:57:23 UTC
[ebuild   R   ] app-emulation/libvirt-0.7.6-r1  USE="caps libvirtd lvm nls numa -avahi -iscsi -lxc -network -nfs -openvz -parted -phyp -policykit -python -qemu -sasl (-selinux) -udev -uml -virtualbox -xen" 0 kB

host linux # virsh
error: no hypervisor driver available
error: failed to connect to the hypervisor

pkg_setup should check that one of the hypervisors is selected
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2010-04-29 02:08:11 UTC
Unfortunately people on the Gentoo Dev ML have railed against having a package fail in pkg_setup() and as such this prevention code was removed by Diego.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2010-04-29 07:58:55 UTC
(In reply to comment #1)
> Unfortunately people on the Gentoo Dev ML have railed against having a package
> fail in pkg_setup() and as such this prevention code was removed by Diego.
> 

I don't think QA wants ebuilds to be installable so they don't work at runtime. I do know that Diego wants the defaults to work.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-04-29 13:54:40 UTC
Actually the package works just fine. You're default config attempts to connect to qemu:///system, which is a localhost connection. However at work those exact same USE flags render a perfectly working libvirt... Why? Because I don't actually host any virtual machines locally. So my default in the config file has been changed to automatically connect to the main server I use for virtualization. There's a few people in #gentoo-virtualization that actually use the ebuild like this.

Please look at the -c | --connect option if you don't want to change your defaults.


People actually don't want ebuilds to fail in pkg_setup. There's been a giant stink about this. For anyone that wants to implement this in a "doesn't fail in pkg_setup" case is, if libvirtd is enabled then lxc, qemu, uml, virtualbox, or xen must be enabled.