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

[Xen-users] Random swap of interfaces at domU startup

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Random swap of interfaces at domU startup
From: Frédéric VANNIÈRE <frederic@xxxxxxxxxxx>
Date: Thu, 18 Jan 2007 20:01:44 +0100
Delivery-date: Thu, 18 Jan 2007 11:01:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

I'm using xen 3.0.4 with a custom kernel (with drbd) and
quite often xen inverts eth0 and eth1. In order to have correct
interfaces I need to restart the domU

The virtual interfaces vifX.0 and vifX.1 should be connected
to xenbr0 and xenbr1 respectively but sometimes they are connected
to xenbr1 and xenbr0.





configuration file:
-------------------
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 2048
name = "xxxx-secours"
disk = [ "phy:xen_data/xxxx-secours,hda1,w",
         "phy:xen_data/xxxx-secours_swap,hda2,w",
         "phy:xen_data/xxxx-secours_drbd,hda3,w"]
root = "/dev/hda1 ro"
vif = [
    "mac=00:26:3E:7B:0B:22,bridge=xenbr0,ip=192.168.2.144",
    "mac=00:26:3E:7B:0B:23,bridge=xenbr1,ip=10.1.0.20",
      ]
gateway = "192.168.2.1"
netmask = "255.255.255.0"
hostname = "xxxx-secours"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"


xm list
-------
Name                          ID   Mem VCPUs      State   Time(s)
Domain-0                       0   257     1     r-----   7338.2
xxxx-secours                 11  2048      1     -b----    354.9
yyyy-secours                  13   728     1     -b----    437.0



brctl show all  when OK
-----------------------
xenbr0          8000.feffffffffff       no              peth0
                                                        vif0.0
                                                        vif11.0
                                                        vif13.0
xenbr1          8000.feffffffffff       no              peth1
                                                        vif0.1
                                                        vif11.1
                                                        vif13.1



brctl show all  when inverted
------------------------------
xenbr0          8000.feffffffffff       no              peth0
                                                        vif0.0
                                                        vif11.0
                                                        vif13.1
xenbr1          8000.feffffffffff       no              peth1
                                                        vif0.1
                                                        vif11.1
                                                        vif13.0






_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users