[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.  
 
x235:/tmp # 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:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:378 (378.0 b) 
 
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:81 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:6393 (6.2 Kb)  TX bytes:6393 (6.2 Kb) 
  
peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF 
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1 
          RX packets:964 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:94676 (92.4 Kb)  TX bytes:0 (0.0 b) 
          Interrupt:29 
  
vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:9 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:378 (378.0 b)  TX bytes:0 (0.0 b) 
 
x235:/var/log # ping 9.3.192.1 
PING 9.3.192.1 (9.3.192.1) 56(84) bytes of data. 
>From 9.3.192.65: icmp_seq=1 Destination Host Unreachable 
>From 9.3.192.65 icmp_seq=1 Destination Host Unreachable 
>From 9.3.192.65 icmp_seq=2 Destination Host Unreachable 
>From 9.3.192.65 icmp_seq=3 Destination Host Unreachable 
  
I did "ifdown eth0" and "ifup eth0" here. Still the network did not come up.  
 
This is new log info from /var/log/xend.log: 
 
[1970-08-11 12:37:38 xend] ERROR (process:37) [network] + ifdown eth0 ']' 
[1970-08-11 16:12:17 xend] INFO (SrvDaemon:300) Xend Daemon started 
[1970-08-11 16:12:18 xend] INFO (channel:163) Virq 3 on port 14 
[1970-08-11 16:12:18 xend] DEBUG (XendDomainInfo:178) info={'vcpu_to_cpu': [0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], 'cpu_time': 35616069146L, 'ssidref': 0, 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'running': 1, 'maxmem_kb': -4, 'paused': 0, 'crashed': 0, 'vcpus': 1, 'shutdown': 0, 'mem_kb': 250880, 'cpumap': [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0} 
[1970-08-11 16:12:18 xend] DEBUG (XendDomainInfo:179) config='None' 
[1970-08-11 16:12:18 xend] INFO (xsobj:326) DBMap>introduceDomain> 0 15447 <EventChannel dom1:0:15 dom2:0:16> /domain/5c25e1eb-75fc-4b63-879a-79e0f25cc3a7 
[1970-08-11 16:12:18 xend] DEBUG (XendDomainInfo:564) writing key  to path /cpus/cpu0 in store 
[1970-08-11 16:12:18 xend] INFO (SrvServer:78) unix path=/var/lib/xend/xend-socket 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + set -e 
[1970-08-11 16:12:18 xend] INFO (XendRoot:141) EVENT> xend.start 0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + OP=start 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + shift 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + export bridge=xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + bridge=xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + export antispoof=no 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + antispoof=no 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + bridge=xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + netdev=eth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + antispoof=no 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + echo '*network start bridge=xen-br0 netdev=eth0 antispoof=no' 
[1970-08-11 16:12:18 xend] INFO (process:35) [network] network start bridge=xen-br0 netdev=eth0 antispoof=no 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + op_start 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + '[' xen-br0 == null ']' 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + create_bridge xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + local bridge=xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl show 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + grep -q xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl addbr xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl stp xen-br0 off 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl setfd xen-br0 0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifconfig xen-br0 up 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifconfig 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + grep -q veth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifconfig veth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + grep -q veth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] ++ ifconfig eth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] ++ grep HWadd 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] ++ sed -e 's/.*\(..:..:..:..:..:..\).*/\1/' 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + mac=00:09:6B:A5:B5:EE 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + which ifdown 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifdown eth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ip link set eth0 name peth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ip link set veth0 name eth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifconfig peth0 -arp down 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifconfig peth0 hw ether fe:ff:ff:ff:ff:ff 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifconfig eth0 hw ether 00:09:6B:A5:B5:EE 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + add_to_bridge xen-br0 vif0.0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + local bridge=xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + local dev=vif0.0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl show 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + grep -q vif0.0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl addif xen-br0 vif0.0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + add_to_bridge xen-br0 peth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + local bridge=xen-br0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + local dev=peth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl show 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + grep -q peth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + brctl addif xen-br0 peth0 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ip link set vif0.0 up 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ip link set peth0 up 
[1970-08-11 16:12:18 xend] ERROR (process:37) [network] + ifup eth0 
 
Thanks, 
Li 
 
 "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx> 
 
 
 
"Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx> 
08/11/2005 03:52 PM  
 
 
 
 | 
 |  
 
 
 >  
> Please ignore the timestamp in the log. There was a timing  
> issue. I changed MMDDhhmm but forgot to change YY. 
>  
> After "ifdown eth0": 
 
Argghh. There's a really stupid bug in the script. 
 
Please edit the following line: 
 
-if ! ifdown ${netdev} ] ; then 
+if ! ifdown ${netdev} ; then 
 
I'm not sure that the extraneous ']' is actually the problem, though. 
 
Please can you add a `which ifdown` just before that line. 
 
Thanks, 
Ian 
 
  
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 
    
     |