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-devel

RE: [Xen-devel] new /etc/xen/network script

To: "Li Ge" <lge@xxxxxxxxxx>
Subject: RE: [Xen-devel] new /etc/xen/network script
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Sat, 13 Aug 2005 13:24:33 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 13 Aug 2005 12:22:49 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWfeeHg3ccvMyPsTYCUoo6kGdNAwwAh+h/w
Thread-topic: [Xen-devel] new /etc/xen/network script
 
> I modified the script based on what you suggested. Now after 
> starting xend, there is nothing changed in the output of ifconfig:

After adding 'which brctl' in the script it should have generated some
output in xend.log.

Please post xend.log

Ian
 
> x235:~ # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:09:6B:A5:B5:EE inet 
> addr:9.3.192.65 Bcast:9.3.192.255 Mask:255.255.255.0 UP 
> BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5356 
> errors:0 dropped:0 overruns:0 frame:0 TX packets:374 errors:0 
> dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 
> RX bytes:732337 (715.1 Kb) TX bytes:48514 (47.3 Kb)
> Interrupt:29
> 
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:36 errors:0 dropped:0 overruns:0 frame:0 TX 
> packets:36 errors:0 dropped:0 overruns:0 carrier:0 
> collisions:0 txqueuelen:0 RX bytes:2880 (2.8 Kb) TX 
> bytes:2880 (2.8 Kb)
> 
> Also I can not even do xm list:
> 
> x235:~ # ps -ef|grep xend
> root 22613 1 5 14:35 ? 00:00:00 python /usr/sbin/xend start 
> root 22614 22613 0 14:35 pts/0 00:00:00 python /usr/sbin/xend 
> start root 22615 22614 0 14:35 pts/0 00:00:00 python 
> /usr/sbin/xend start root 22616 22614 0 14:35 pts/0 00:00:00 
> python /usr/sbin/xend start root 22617 22614 0 14:35 pts/0 
> 00:00:00 python /usr/sbin/xend start root 22618 22614 0 14:35 
> pts/0 00:00:00 python /usr/sbin/xend start root 23070 10759 0 
> 14:35 pts/0 00:00:00 grep xend x235:~ # xm list (111, 
> 'Connection refused')
> Error: Error connecting to xend, is xend running?
> 
> Switching back to the original network script, the network 
> works again.
> 
> Not sure if I catched all the changes that you suggested. 
> Here is the diff between the new network file you sent and my 
> modified one:
> 
> 123c123,124
> < brctl addbr ${bridge}
> ---
> > #brctl addbr ${bridge}
> > create_bridge ${bridge}
> 180c181,182
> < if ! ifdown ${netdev} ] ; then
> ---
> > which ifdown
> > if ! ifdown ${netdev} ; then
> 195,196c197,200
> < add_to_bridge ${bridge} vif0.0
> < add_to_bridge ${bridge} p${netdev}
> ---
> > #add_to_bridge ${bridge} vif0.0
> > #add_to_bridge ${bridge} p${netdev}
> > brctl addif ${bridge} vif0.0
> > brctl addif ${bridge} p${netdev}
> 
> Li
> 
> 
> Inactive hide details for "Ian Pratt" 
> <m+Ian.Pratt@xxxxxxxxxxxx>"Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
> 
> 
> 
> 
>                               "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx> 
> 
>                               08/11/2005 05:17 PM
> 
> 
> 
> To
> 
> Li Ge/Austin/IBM@IBMUS        
> 
> 
> cc
> 
> <ian.pratt@xxxxxxxxxxxx>, "xen-devel" 
> <xen-devel@xxxxxxxxxxxxxxxxxxx>, 
> <xen-devel-bounces@xxxxxxxxxxxxxxxxxxx>, <ian.pratt@xxxxxxxxxxxx>     
> 
> 
> Subject
> 
> RE: [Xen-devel] new /etc/xen/network script   
>               
> 
> > Ok, I modifed the script. Here is the new result:
> > 
> > After I started xend, the network connection of dom0 lost. 
> 
> OK, this is interesting. It's the same symptoms as the old script.
> 
> It looks like peth0 is receiving packets. Please confirm this with:
> tcpdump -i peth0
> 
> What's odd is that there's no xen-br0 showing up in ifconfig. 
> I'd expect to see something like:
> 
> xen-br0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF  
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:949 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0 
>          RX bytes:54097 (52.8 Kb)  TX bytes:0 (0.0 b)
> 
> Can you post the output of 'brctl show'. You should see:
> 
> [root@commando-0 root]# brctl show
> bridge name     bridge id               STP enabled     interfaces
> xen-br0         8000.feffffffffff       no              vif0.0
>                                                        peth0
> 
> Also, please can you try replacing the following lines:
> 
> -        add_to_bridge ${bridge} vif0.0
> -        add_to_bridge ${bridge} p${netdev}
> +        brctl addif ${bridge} vif0.0
> +        brctl addif ${bridge} p${netdev}
> 
> and earlier:
> 
> + create_bridge ${bridge}
> - brctl addbr ${bridge}
> 
> 
> 
> Ian
> 
> 
> 

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