<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Re: [Fedora-xen] Fedora Core 8 + Xenbr0 + network bridging?</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:45109576;
        mso-list-type:hybrid;
        mso-list-template-ids:-129702454 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l1
        {mso-list-id:2081246763;
        mso-list-type:hybrid;
        mso-list-template-ids:590124676 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Mark:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Well, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I carefully went through your PDF document
for setting up a bonded pair on RHEL 5.1 and at the end of the day this does
not work for me.  This is the procedure more or less I have tried:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<ul style='margin-top:0in' type=disc>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Make
     sure eth0 and eth1 work as normal eth devices without LACP<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Edit
     /etc/modprobe.conf to add the bonding kernel module<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Edit
     /etc/sysconfig/network-scripts/ifcfg-eth0 and ifcfg-eth1 to be slave
     devices with the master as bond0<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Create
     /etc/sysconfig/network-scripts/ifcfg-bond0 with static IP info<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Plug
     into LACP enabled ports on switch and reboot the box<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>At this
     point bond0 works fine, as expected, we have been doing this all day long
     on non-xen kernels for years<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>NOW…following
     your document<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Remove
     the /etc/libvirt/qemu/networks/autostart/* so that the pointless
     192.168.122.x NAT network does not get created<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Grab
     the network-scripts-bridge-bond-vlan script from the link in the message
     and put into /etc/xen/scripts<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Edit
     /etc/xen/xend-config.sxp and replace (network-script network-bridge) with (network-script
     network-bridge-bond-vlan)<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Restart
     networking<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>At this
     point networking for the physical host in invariably completely hosed, and
     there is no xen networking at all<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo1'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>It is
     noteworthy to add that I did not make any modifications to the network-scripts-bridge-bond-vlan
     script as you suggest since I am on a single vlan (so far) and the default
     setup in the script seems sane for a single NON-VLAN bond0 configuration<o:p></o:p></span></font></li>
</ul>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>So in a nutshell the it seems that libvirt
interface just does not seem to use the xen scripts…rather it’s own
(undocumented?) crap.  After a week of head-banging on this we really have no
choice but to abandon Redhat in favor of Suse 10.3, which incidentally works
right out of the box with bridge, NAT, bond, you name it.  I suggest RH staff
install a copy of this to see how they did it, you don’t even have to
jump through hoops to configure a bond from the command line, you can do this
with their stock GUI tools if you so choose.  I am not knocking RedHat, but we need
something that “just works” and so far for xen + bond + RH has been
a non-starter for us after much effort.  By the way, to get networking
un-foobar’ed on the physical machine I have to run system-config-network
and remove all Ethernet devices, then reboot, then redefine eth0 and eth1 as as
normal DHCP devices.  I can then go re-setup the bond0 device from the command
line.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If anyone has step-by-step directions on
how to do this with RHEL 5.1 I am happy to try again at some future point.  The
goals are simple:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<ul style='margin-top:0in' type=disc>
 <li class=MsoNormal style='color:navy;mso-list:l0 level1 lfo2'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Step
     one: create a bond0 from eth0 and eth1 that can be used as a bridged
     device by xen on a single VLAN<o:p></o:p></span></font></li>
 <li class=MsoNormal style='color:navy;mso-list:l0 level1 lfo2'><font size=2
     color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>Step
     two: create a bond0 (aliases?) that can be assigned multiple VLANs, AND have
     these VLAN devices available to be used by xen<o:p></o:p></span></font></li>
</ul>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I would settle for item #1 really.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>/Christian<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Christian Lahti <br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, December 01, 2007
3:56 PM<br>
<b><span style='font-weight:bold'>To:</span></b> mnielsen@redhat.com;
fedora-xen@redhat.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [Fedora-xen] Fedora
Core 8 + Xenbr0 + network bridging?</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div id=idOWAReplyText29821>

<div>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Hi Mark:</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thank you very much for your response, I did indeed read the
original poster as Dale by mistake :)  So what you are saying makes
perfect sense to me and sounds like exactly what we are after, I will have 3
vlans to bridge myself ultimately.  My next question is the relative
merits of RHEL5.1 as compared to Fedora 8.  Obviously I would prefer the
stable enterprise release rather than bleeding edge Fedora, but has fully
virtualized windows performance been fixed in this release?  At any rate I
am looking forward to getting this up and running tomorrow!</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>/Christian</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Mark
Nielsen [mailto:mnielsen@redhat.com]<br>
<b><span style='font-weight:bold'>Sent:</span></b> Sat 12/1/2007 3:19 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Christian Lahti<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Fedora-xen] Fedora
Core 8 + Xenbr0 + network bridging?</span></font><o:p></o:p></p>

</div>

<div>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>hmm, did
you mean "Hi Mark" ??<br>
<br>
I have 8 Dell 2950s running RHEL 5.1 (new libvirt with that funky NAT<br>
they added). I have 4 NICs in each; 2 copper, 2 fiber. I bond the 2<br>
copper (eth0 and eth1) and call it bond0. bond0 carries my "private"
IP<br>
for cluster suite communications on the dom0 (physical) cluster.<br>
<br>
Then I bond eth2 and eth3 (fiber) in to bond1. I lay down the public<br>
network for the dom0 cluster on bond1.100 (for example, that would be<br>
VLAN 100). I also add many (up to 10 or so now) VLANs on bond1<br>
(bond1.20, bond1.21, bond1.22, etc). Then I create xen bridges to each<br>
of these bond/VLAN devices. This allows me to put any particular VM on<br>
any particular (or combination up to 3) of these xen bridged bonded VLAN<br>
device.<br>
<br>
My document explains, in detail, how to do all of this :) The only added<br>
step is that I have to "undefine" (virsh net-undefine default) the<br>
default network that the new libvirt creates (virbr0). Even with this<br>
new NAT thing they added, I've been told (by our devs) that the<br>
preferred way to do static network configurations is with the method I<br>
lay out. NAT is more for dynamic networks (cable modems, dial-up, wifi,<br>
etc).<br>
<br>
I'm pretty sure there weren't any significant changes in Fedora 8 (we've<br>
dropped the word "core" now, btw) that don't exist in RHEL 5.1 with<br>
respects to the network. 5.0 -> 5.1 is when that NAT change came down<br>
the pipe.<br>
<br>
Mark<br>
<br>
p.s. I'm happy to answer any other questions you may have about my<br>
document. I'm quite certain that, if you follow it, you'll have what<br>
you're looking for.<br>
<br>
Christian Lahti wrote:<br>
> Hi Dale:<br>
> <br>
> I work with David who posted the original question to the mailing<br>
> list.  I think we need to give a bit more background info on what we<br>
> are trying to do.  We are running a mixed environment of mostly
CentOS<br>
> 3, 4and 5, we do have a few windows servers and XP systems as well. <br>
> We are looking to virtualize all these platforms.  Normally we have a<br>
> bonded pair of NICs for the physical hosts, we were able to get this<br>
> running using CentOS 5 x86_64 with no problems, the guest machines use<br>
> the bonded pair in bridged mode as expected after a bit of tweaking. <br>
> The biggest issue we found with EL5 is that windows guest performace<br>
> is dismal at best, hence our decision to have a look at Fedora Core 8<br>
> x86_64.  I am happy to report that performance for all of our guest<br>
> platforms is *very* good with FC8, but it seems that libvirt changed<br>
> the way networking is setup for Xen.  The default NAT configuration
is<br>
> pretty useless for production server environment.  Thanks to the<br>
> mailing list we are now able to bridge a single NIC on FC8 (like eth0<br>
> for example), but we cannot figure out how to get a bridge for bond0<br>
> (comprised of eth0 and eth1) defined and available to Xen.  All the<br>
> tweaks that worked find on EL5 have not worked so far on FC8.  I am<br>
> going to review your document tomorrow and give it a try, but any idea<br>
> on whether your methodology will work on FC8 and libvirt?  I am<br>
> willing to blow a Sunday to get this worked out once and for all :)<br>
> <br>
> Basically we are after good performance on both para and fully<br>
> virtualized guests using a bonded pair of GB NICs for speed and<br>
> redundancy.  If this can be achieved with enterprise linux then that<br>
> would be preferable, but we will go FC8 if the bonding thing can be<br>
> sorted out.  By the way Xensource 4.x looks to be a respin of RHEL5<br>
> and has pretty good performance but their free version is limited to<br>
> 32bit (and hence 4GB ram).  Adding the clustering failover is the
next<br>
> step of course :)<br>
> <br>
> Thanks again for the help so far.<br>
> <br>
> /Christian<br>
> <br>
> <br>
> <br>
> >>>>>>>>>>><br>
> just FYI for the list, I have a how-to for a bonded and VLAN tagged
network.<br>
><br>
> <a href="http://www.certifried.com">http://www.certifried.com</a><br>
><br>
> ODT and PDF formats available.<br>
><br>
>  <br>
> It might not be the best way, but I've sent it out to my colleagues<br>
> several times and have never received any negative feedback.<br>
> Mark<br>
><br>
><br>
><br>
> Dale Bewley wrote:<br>
>  <br>
><br>
>     I haven't done bonding, but you should be able to
bond them and then compose a bridge on top of this bonded device I would think.<br>
><br>
>     --<br>
>     Dale Bewley - Unix Administrator - Shields Library
- UC Davis<br>
>     GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD 
1753 064D 2583 B098 A0F3<br>
><br>
>     --<br>
>     Fedora-xen mailing list<br>
>     Fedora-xen redhat com<br>
>     <a
href="https://www.redhat.com/mailman/listinfo/fedora-xen">https://www.redhat.com/mailman/listinfo/fedora-xen</a><br>
>        <br>
><br>
>
****************************************************************************<br>
> Checked by MailWasher server (www.Firetrust.com)<br>
> WARNING. No FirstAlert account found.<br>
> To reduce spam further activate FirstAlert.<br>
> This message can be removed by purchasing a FirstAlert Account.<br>
>
****************************************************************************<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> --<br>
> Fedora-xen mailing list<br>
> Fedora-xen@redhat.com<br>
> <a href="https://www.redhat.com/mailman/listinfo/fedora-xen">https://www.redhat.com/mailman/listinfo/fedora-xen</a><br>
>  </span></font><o:p></o:p></p>

</div>

</div>

</body>

</html>