WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Vif order

To: "'Pepe Charli'" <ppcharli@xxxxxxxxx>
Subject: RE: [Xen-users] Vif order
From: "Roger Lucas" <roger@xxxxxxxxxxxxx>
Date: Thu, 25 Jan 2007 20:07:15 -0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 25 Jan 2007 12:07:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <dc0813840701250720q4117893di89c1386a7cf18887@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <dc0813840701250720q4117893di89c1386a7cf18887@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdAllzTmmehvxSKRbCrDWPBVGSgCwAJV2Dw

Hi Pepe,

 

You can use the “/etc/iftab” configuration file in the DomU to bind a MAC address to a network interface.  I posted a fairly detailed mail about a week ago detailing the problem I found and my work-around using /etc/iftab.

http://lists.xensource.com/archives/html/xen-users/2007-01/msg00802.html

 

There is apparently a proper fix to Xen somewhere in a development branch, but using “/etc/iftab” is guaranteed to work.

 

You will need to explicitly assign a MAC address in the DomU definition file, however, so that you can match it to the definition in the iftab file rather than allowing Xen to randomly generate a MAC address.

 

HTH,

 

Roger

 


From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Pepe Charli
Sent: 25 January 2007 15:21
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Vif order

 

>I have more than one vif configured for each of my domUs using something
>like this in their config files:

>vif = [ 'mac=00:16:3E:00:21:0C','mac=00:16:3E:00:01:0C' ]
>
>It used to be the case (pre
3.0.3, although it's hard to say exactly
>when the change occured), I think, that the first one would always be

>vif1.0 and the second one would be vif1.1 (for the first domU).
>However, using a recent xen-unstable (post
3.0.3) the ordering of them
>seems to be effectively random, and there is a reasonable chance that

>the second will be vif1.0 and the first vif1.1.

I have the same problem with xen 3.0.4 over Centos
4.4 (with xen 3.0.3 work ok)

I have 3 domU with this config file:
     ...
     vif = [ 'bridge=xenbr0', 'bridge=xenbr1', 'bridge=xenbr2' ]

     ...
When I start the domUs I get this:

#brctl show
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              peth0
                                                       
vif0.0

                                                        vif17.1
                                                        vif18.2
                                                        vif4.1
xenbr1         
8000.feffffffffff
       no              peth1
                                                        vif0.1
                                                        vif17.2
                                                       

vif18.0
                                                        vif4.2
xenbr2          8000.feffffffffff       no              peth2
                                                        vif0.2
                                                       

vif17.0
                                                        vif18.1
                                                        vif4.0

Does anyone know a way to force the vif ordering ?


Thanks

Pepe
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>