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

Bug 358197

Summary: app-emulation/libvirtd can't create virtual network if iproute2 is not installed
Product: Gentoo Linux Reporter: k953772
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED INVALID    
Severity: normal CC: virtualization
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description k953772 2011-03-10 10:19:14 UTC
libvirtd can't create virtual network if sys-apps/iproute2 is not installed.
When libvirtd create virtual network interface (virbr0), it called /sbin/ip command. But sys-apps/iproute2 is not mandatory for app-emulation/libvirt.

Maybe it is a mistake in ebuild:
    virt-network? ( net-dns/dnsmasq
        >=net-firewall/iptables-1.4.10
        net-firewall/ebtables
        sys-apps/iproute2 )"
All this packages are mandatory for libvirt virtual networks.

Reproducible: Always

Steps to Reproduce:
1.install app-emulation/libvirt (if sys-apps/iproute2 is not installed)
2. /etc/init.d/libvirtd start
3. virsh net-start default
at this step libvirt fails
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2011-03-16 09:51:10 UTC
"net-start default" is the exactly network that the USE=virt-network setting is for. Enable the USE flag if you want to use that type of setup.