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

Bug 466748

Summary: app-emulation/libvirt should not require several kernel configuration options
Product: Gentoo Linux Reporter: Jan Matějka (RETIRED) <yac>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED INVALID    
Severity: normal CC: virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan Matějka (RETIRED) gentoo-dev 2013-04-22 04:58:16 UTC
The options:
 *   CONFIG_CGROUP_DEVICE:       is not set when it should be.
 *   CONFIG_BLK_CGROUP:  is not set when it should be.
 *   CONFIG_DEVPTS_MULTIPLE_INSTANCES:   is not set when it should be.
 *   CONFIG_VETH:        is not set when it should be.
 *   CONFIG_MEMCG:       is not set when it should be.
 *   CONFIG_MEMCG:       is not set when it should be.
 *   CONFIG_BRIDGE_NF_EBTABLES:  is not set when it should be.
 *   CONFIG_NETFILTER_XT_TARGET_CHECKSUM:        is not set when it should be.


Installed versions:  1.0.2-r2{tbz2}(21:21:42 04/21/13)(caps elibc_glibc libvirtd lxc macvtap nls pcap python qemu udev vepa virt-network -audit -avahi -firewalld -fuse -iscsi -lvm -nfs -numa -openvz -parted -phyp -policykit -rbd -sasl -selinux -uml -virtualbox -xen)


Reproducible: Always

Steps to Reproduce:
1. emerge libvirt
2.
3.
Comment 1 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2013-04-22 05:07:03 UTC
please attach kernel configuration
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2013-04-24 17:56:07 UTC
You're building with a number of USE flags that do in fact require those options. Firstly you are building with LXC support, which heavily uses cgroups so the following options are required by that:
 *   CONFIG_CGROUP_DEVICE:       is not set when it should be.
 *   CONFIG_BLK_CGROUP:  is not set when it should be.
 *   CONFIG_DEVPTS_MULTIPLE_INSTANCES:   is not set when it should be.
 *   CONFIG_VETH:        is not set when it should be.
 *   CONFIG_MEMCG:       is not set when it should be.
 *   CONFIG_MEMCG:       is not set when it should be.
(While virtual ethernet devices aren't cgroup related it is how LXC containers get ethernet adapters and each LXC instance needs its own /dev/pts so that's why you've got that.)

You are also building with libvirt managed networking, which allows it to do a number of things with network traffic, which requires:
 *   CONFIG_BRIDGE_NF_EBTABLES:  is not set when it should be.
 *   CONFIG_NETFILTER_XT_TARGET_CHECKSUM:        is not set when it should be.

Now you might argue "But I made a VM without needing those" and you might be correct but in the course of using those APIs from libvirt, they will need these kernel features so we can't really no-op one function and not the whole API.