Bug 194224 - Xen can't create virtual interfaces when iproute2 is emerged with the minimal useflag
Bug#: 194224 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: xen@gentoo.org Reported By: lama@lamamail.de
Component: Applications
URL: 
Summary: Xen can't create virtual interfaces when iproute2 is emerged with the minimal useflag
Keywords:  
Status Whiteboard: 
Opened: 2007-09-29 22:22 0000
Description:   Opened: 2007-09-29 22:22 0000
I couldn't get networking to work in domUs. See below.

Reproducible: Always

Steps to Reproduce:
emerge iproute2 with USE="minimal"
Actual Results:  
When creating a domU I always got

Error: Device 0 (vif) could not be connected. Could not find bridge device
xenbr0

Expected Results:  
Created and connected the virtual interface to the bridge (which was present in
ifconfig -a all the time).

------- Comment #1 From Jakub Moc (RETIRED) 2007-09-29 22:25:16 0000 -------
So don't do it, what exactly are you expecting here?

------- Comment #2 From Micheal Marineau 2007-09-29 22:52:59 0000 -------
I guess I could die on install if iproute2 was built with minimal, but I would
bet lots of random crap breaks in general when a system is built with the
minimal use flag.

------- Comment #3 From Alexander Brüning 2007-09-30 00:41:45 0000 -------
> So don't do it, what exactly are you expecting here?

I had no clue what was wrong and came across the source of the problem by
accident. There should be a pointer somewhere that xen needs ip (or whatever)
to work correctly.

------- Comment #4 From Micheal Marineau 2007-09-30 01:03:03 0000 -------
(In reply to comment #3)
> > So don't do it, what exactly are you expecting here?
> 
> I had no clue what was wrong and came across the source of the problem by
> accident. There should be a pointer somewhere that xen needs ip (or whatever)
> to work correctly.
> 

K, next time I update the ebuild I'll add a check and a big fat warning to
catch that.

In general I would recommend not using the minimal use flag unless you know
exactly what functionality it is stripping for a package and you are worried
about space (ie tiny embedded systems).

------- Comment #5 From Alexander Brüning 2007-09-30 01:20:40 0000 -------
Okay, thank you :)

------- Comment #6 From Robert Buchholz 2007-09-30 01:44:29 0000 -------
Alexander, this is not a 'major' bug. Stop making it one.

------- Comment #7 From Alexander Brüning 2007-09-30 11:06:27 0000 -------
I think "major loss of function" is a pretty good description of not being able
to use networking with Xen and not knowing why. I bet I'm not the only one who
built a dom0 with USE="minimal".

------- Comment #8 From Micheal Marineau 2007-10-02 00:46:09 0000 -------
Updated xen-tools-3.1.0-r1 to issue a warning if iproute2 was built with
USE=minimal. Closing.