Changes between Version 5 and Version 6 of GTD_Cloud_xen_ubuntu


Ignore:
Timestamp:
Dec 19, 2008, 10:59:15 AM (15 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GTD_Cloud_xen_ubuntu

    v5 v6  
    1313== 2. Install Xen-3.1.3 ==
    1414 * [http://www.xen.org/download/dl_31tarballs.html Xen-3.1.3]
     15 * [http://www.xen.org/download/index_3.1.4.html Xen-3.1.4]
    1516{{{
    1617$ cd /usr/src ; wget http://bits.xensource.com/oss-xen/release/3.1.3/xen-3.1.3.tar.gz
     
    4445###  Edit xen config for you demand  ###
    4546$ vim /etc/xen/xend-config.sxp
     47(network-script 'network-bridge netdev=eth0')
    4648
    4749###  Startup Xen  ###
     
    6163$ cd /etc/xen
    6264$ xm create vm01.cfg -c
     65$ route add default gw 140.110.X.X
     66$ ping ptt.cc
    6367//If vm01 can normal booting! God job!
    6468}}}
    6569
     70== 5. Problem ==
     711.Xen 3.1.4 的 網路問題
     72{{{
     73$ ifconfig
     74vif1.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff 
     75          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
     76          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
     77          TX packets:2 errors:0 dropped:1 overruns:0 carrier:0
     78          collisions:0 txqueuelen:32
     79          RX bytes:1252 (1.2 KB)  TX bytes:140 (140.0 B)
     80
     81xenbr100  Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff 
     82          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
     83          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
     84          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     85          collisions:0 txqueuelen:0
     86          RX bytes:1252 (1.2 KB)  TX bytes:0 (0.0 B)
     87
     88$ brctl show
     89bridge name    bridge id        STP enabled    interfaces
     90xenbr100        8000.feffffffffff    no        vif1.0
     91}}}
     92
     93>解決方法:需設定netdev=eth0
     94{{{
     95$ vim /etc/xen/xend-config.sxp
     96(network-script 'network-bridge netdev=eth0')
     97
     98$ ifconfig
     99vif0.100  Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff 
     100          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
     101          RX packets:178 errors:0 dropped:0 overruns:0 frame:0
     102          TX packets:369 errors:0 dropped:0 overruns:0 carrier:0
     103          collisions:0 txqueuelen:0
     104          RX bytes:34300 (33.4 KB)  TX bytes:30167 (29.4 KB)
     105
     106xenbr100  Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff 
     107          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
     108          RX packets:146 errors:0 dropped:0 overruns:0 frame:0
     109          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     110          collisions:0 txqueuelen:0
     111          RX bytes:9545 (9.3 KB)  TX bytes:0 (0.0 B)
     112
     113$ brctl show
     114bridge name    bridge id            STP enabled    interfaces
     115xenbr100        8000.feffffffffff    no                vif0.100
     116                                                                peth0
     117               
     118$ xm create vm01.cfg -c
     119$ route add default gw 140.110.138.254
     120
     121ctrl+]
     122
     123$ brctl show
     124bridge name    bridge id            STP enabled    interfaces
     125xenbr100        8000.feffffffffff    no                vif0.100
     126                                                                peth0
     127                                                                vif1.0
     128}}}