Changes between Version 5 and Version 6 of Eucalyptus/Install


Ignore:
Timestamp:
May 6, 2009, 2:00:10 PM (16 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Eucalyptus/Install

    v5 v6  
     1[[PageOutline]]
    12= Eucalyptus 安裝 =
    2 == 1.序言 ==
     3== 【1.序言】 ==
    34 * Eucalyptus的安裝主要有兩種方法:
    45   1. __'''''從 Source 安裝'''''__
     
    78 * Eucalyptus 太長了 @@,之後文章用 Euc 簡稱
    89----
    9 == 2.安裝步驟 ==
     10== 【2.安裝步驟】 ==
    1011 * 主要參考 [http://open.eucalyptus.com/wiki/EucalyptusAdministratorGuide_v1.4 Eucalyptus Administrator Guide v1.4]安裝步驟,此文件主要分為5部份:(1)__必要的環境設定__,(2)__安裝__,(3)__配置__,(4)__管理__,(5)__問題排解__
    1112=== '''''__『2.1 必要的環境設定』__''''' ===
     
    4243{{{
    4344#!sh
    44 ### 解壓縮 ###
     45### 1.解壓縮 ###
    4546$ su
    4647$ sudo tar zvxf eucalyptus-1.4-src.tar.gz -C ~
    4748
    48 ### 設定環境變數 ###
     49### 2.設定環境變數 ###
    4950$ echo "export EUCALYPTUS_SRC=/root/" >> /root/.bashrc
    5051$ echo "export EUCALYPTUS=/opt/eucalyptus" >> /root/.bashrc
    5152$ source /root/.bashrc
    5253
    53 ### 安裝 Euc 相依的軟體 ###
     54### 3.安裝 Euc 相依的軟體 ###
    5455$ tar zvxf eucalyptus-1.4-src-deps.tar.gz -C $EUCALYPTUS_SRC
    5556$ mkdir -p $EUCALYPTUS/packages/
    5657
    57 $ tar zxvf $EUCALYPTUS_SRC/eucalyptus-src-deps/axis2-1.4.tgz  -C $EUCALYPTUS/packages/
     58### 3.1 Axis2 ###
     59$ cd $EUCALYPTUS_SRC/eucalyptus-src-deps/
     60$ tar zxvf axis2-1.4.tgz  -C $EUCALYPTUS/packages/
    5861
     62### 3.2 Apache(httpd) ###
     63$ tar zvxf httpd-2.2.8.tar.gz
     64$ cd httpd-2.2.8
     65$ CFLAGS="-DBIG_SECURITY_HOLE" ./configure --prefix=$EUCALYPTUS/packages/httpd-2.2.8 --with-included-apr
     66$ make ; make install
     67
     68### 3.3 Axis2/C ###
     69$ cd $EUCALYPTUS_SRC/eucalyptus-src-deps/
     70$ export AXIS2C_HOME=$EUCALYPTUS/packages/axis2c-1.5.0
     71$ tar zvxf axis2c-src-1.5.0.tar.gz
     72$ cd axis2c-src-1.5.0
     73$ ./configure --with-apache2=$EUCALYPTUS/packages/httpd-2.2.8/include --prefix=${AXIS2C_HOME}
     74$ make ; make install
     75
     76### 3.4 Rampart/C ###
     77$ cd $EUCALYPTUS_SRC/eucalyptus-src-deps/
     78$ export AXIS2C_HOME=$EUCALYPTUS/packages/axis2c-1.5.0
     79$ export LD_LIBRARY_PATH=${AXIS2C_HOME}/lib:$LD_LIBRARY_PATH
     80$ tar zvxf rampartc-src-1.2.0.tar.gz
     81$ cd rampartc-src-1.2.0
     82$ ./configure --prefix=${AXIS2C_HOME} --enable-static=no --with-axis2=${AXIS2C_HOME}/include/axis2-1.5.0
     83$ make ; make install
     84$ vim $AXIS2C_HOME/axis2.xml
     85  <phase name="Security"/>
     86
     87### 3.5 Libvirt ###
     88$ cd $EUCALYPTUS_SRC/eucalyptus-src-deps/
     89$ tar zvxf libvirt-0.4.6.tar.gz
     90$ cd libvirt-0.4.6
     91$ ./configure --prefix=$EUCALYPTUS/packages/libvirt-0.4.6 --without-storage-disk --without-storage-iscsi --without-storage-fs --without-storage-lvm --without-libvirtd --without-remote --without-lxc --without-kvm --without-qemu --without-sasl --without-openvz
     92$ make ; make install
     93
     94### 3.6 Other software ###
     95 * Java Development Kit (JDK), version 1.6 or above
     96 * Apache ant, version 1.6 or above
     97 * GNU C compiler
     98 * Make
    5999}}}
    60100
     101 * __2.2.2__ Building Eucalyptus
     102{{{
     103$ cd $EUCALYPTUS_SRC
     104$ ./configure --with-axis2=$EUCALYPTUS/packages/axis2-1.4 --with-axis2c=$EUCALYPTUS/packages/axis2c-1.5.0 --with-libvirt=$EUCALYPTUS/packages/libvirt-0.4.6/ --prefix=$EUCALYPTUS
     105$ make ; make install
     106}}}
     107
     108 * __2.2.3__ Eucalyptus on multiple machines
     109{{{
     110### 設定 Euc 設定檔的位置 ###
     111$ $EUCALYPTUS/usr/sbin/euca_conf -d $EUCALYPTUS $EUCALYPTUS/etc/eucalyptus/eucalyptus.conf
     112
     113### 將 $EUCALYPTUS/ 同步複製到其他 nodes ###
     114$ rsync -a $EUCALYPTUS/ hostname1:$EUCALYPTUS/
     115$ rsync -a $EUCALYPTUS/ hostname2:$EUCALYPTUS/
     116$ ...
     117}}}
     118
     119=== '''''__『2.3 配置』__''''' ===
     120 * __2.3.1__ 系統配置
     121 * __2.3.2__ 網路配置
    61122----
    62 == Reference ==
     123== 【Reference】 ==
    63124 * [http://open.eucalyptus.com/wiki/EucalyptusAdministratorGuide_v1.4 Eucalyptus Administrator Guide v1.4]