- 追加された行はこの色です。
- 削除された行はこの色です。
[[Eucalyptus (OSS Elastic Computing) 日本語情報]]
RHEL(Red Hat Enterprise Linux) 5 にセットアップしてみたときのメモ。CentOS 5 でも同じ手順でokだと思います。
※ 1.6.1で再度検証し更新する予定です。
#contents
----
* ダウンロード [#x2ff520d]
http://eucalyptus.cs.ucsb.edu/downloads から必要なファイルの殆どがインストール可能。
Main RPM
Cloud Controller RPM
Cluster Controller RPM
Gather Log RPM
Node Controller RPM
third-party RPM bundle
それぞれ必要なので、[[ダウンロードページ>http://eucalyptus.cs.ucsb.edu/downloads]] から、自分の環境にあわせて 32-bit か 64-bit の RPM をダウンロードします。
ちなみに自分の環境は、uname -a で確認できます。私の場合は、
$ uname -a
Linux sv.pocketstudio.jp 2.6.18-8.1.14.el5 #1 SMP Tue Sep 25 11:45:53 EDT 2007 i686 i686 i386 GNU/Linux
このように表示されました。i386 といった文字がありますので、32-bit 版ですね。x86_64 と表示されている環境であれば、64-bit 版をダウンロードします。
** ダウンロードとセットアップ [#ob08f395]
ダウンロードは、RPM を wget で拾ってきます。
# cd /usr/local/src/
# mkdir eucalyptus
# cd eucalyptus
作業用のディレクトリを作成、移動してから、必要なものは wget でサクサク拾います。
# wget http://eucalyptus.cs.ucsb.edu/downloads/68
--07:43:05-- http://eucalyptus.cs.ucsb.edu/downloads/68
eucalyptus.cs.ucsb.edu をDNSに問いあわせています... 128.111.45.35
eucalyptus.cs.ucsb.edu|128.111.45.35|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 720618 (704K) [application/x-redhat-package-manager]
Saving to: `eucalyptus-1.4-2.i386.rpm'
100%[=================================================>] 720,618 583K/s in 1.2s
07:43:07 (583 KB/s) - `eucalyptus-1.4-2.i386.rpm' を保存しました [720618/720618]
こんな感じで、最終的にはこれだけディレクトリにダウンロードされます。
[root@sv eucalyptus]# ll
合計 100528
-rw-r--r-- 1 root root 720618 1月 10 05:41 eucalyptus-1.4-2.i386.rpm
-rw-r--r-- 1 root root 819297 1月 10 05:15 eucalyptus-cc-1.4-2.i386.rpm
-rw-r--r-- 1 root root 77373974 1月 10 05:17 eucalyptus-cloud-1.4-2.i386.rpm
-rw-r--r-- 1 root root 127996 1月 10 05:19 eucalyptus-gl-1.4-2.i386.rpm
-rw-r--r-- 1 root root 372467 1月 10 05:19 eucalyptus-nc-1.4-2.i386.rpm
-rw-r--r-- 1 root root 23385303 1月 6 13:22 eucalyptus-rpm-deps-i386.tar.gz
-rw-r--r-- 1 root root 23385303 1月 6 13:22 eucalyptus-rpm-deps-i386.tar.gz
さて、次に、いったんサードパーティ製の RPM を展開しておきます。
# third-party RPM bundle, including:
* httpd
* httpd
* axis2c
* libvirt
こう書いてあるところ。
# tar xvfz eucalyptus-rpm-deps-i386.tar.gz
eucalyptus-rpm-deps-i386/
eucalyptus-rpm-deps-i386/euca-axis2c-1.4-1.i386.rpm
eucalyptus-rpm-deps-i386/euca-httpd-1.4-1.i386.rpm
eucalyptus-rpm-deps-i386/euca-libvirt-1.4-1.i386.rpm
# tar xvfz eucalyptus-rpm-deps-i386.tar.gz
eucalyptus-rpm-deps-i386/
eucalyptus-rpm-deps-i386/euca-axis2c-1.4-1.i386.rpm
eucalyptus-rpm-deps-i386/euca-httpd-1.4-1.i386.rpm
eucalyptus-rpm-deps-i386/euca-libvirt-1.4-1.i386.rpm
あとは、rpm コマンドでズトンとインストール・・・と思いましたが、なかなか思うようにはいきません。。
# rpm -ivh *.rpm ./eucalyptus-rpm-deps-i386/*.rpm
エラー: 依存性の欠如:
dhcp は eucalyptus-cc-1.4-2.i386 に必要とされています
jdk は eucalyptus-cloud-1.4-2.i386 に必要とされています
おや? dhcp と jdk が無いようです。
*** dhcp のインストール [#abcfb5b5]
# yum -y install dhcp
これで入ります。
これで入ります。
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
rhel-i386-server-5 100% |=========================| 1.3 kB 00:00
rhel-i386-server-vt-5 100% |=========================| 1.3 kB 00:00
rhn-tools-rhel-i386-serve 100% |=========================| 871 B 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for dhcp to pack into transaction set.
dhcp-3.0.5-18.el5.i386.rp 100% |=========================| 37 kB 00:00
---> Package dhcp.i386 12:3.0.5-18.el5 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
dhcp i386 12:3.0.5-18.el5 rhel-i386-server-5 875 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 875 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): dhcp-3.0.5-18.el5. 100% |=========================| 875 kB 00:01
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: dhcp ######################### [1/1]
Installed: dhcp.i386 12:3.0.5-18.el5
Complete!
*** jdk のインストール [#vfca5a50]
JDK をセットアップ済みであれば、そのままユーカリをインストールできるのですが、もし rpm -qi jdk と打っても何も出てこなければ、パッケージを入れる必要があります。パッケージを入れないままセットアップを行おうとしても
# rpm -ivh *.rpm ./eucalyptus-rpm-deps-i386/*.rpm
エラー: 依存性の欠如:
jdk は eucalyptus-cloud-1.4-2.i386 に必要とされています
こんな感じで警告が出るので注意。
さて、JDK ( Java SE Development Kit) のダウンロードは sun 社のサイトから>http://java.sun.com/javase/ja/6/download.html
【ダウンロード】ボタンを押して、Platformは「linux」、「I agree」にチェックを入れて【Continue】を押す。候補が2つ表示されるので ~.rpm.bin をダウンロードします。今日現在はこれが最新安定版。
jdk-6u13-linux-i586-rpm.bin
ダウンロードしたあとは、実行属性(x)を与えてバイナリとして実行します。
# chmod +x ./jdk-6u13-linux-i586-rpm.bin
# ./jdk-6u13-linux-i586-rpm.bin
そうすると、ツラツラとライセンス云々表示されるので、最後に【 yes 】を入力。
Do you agree to the above license terms? [yes or no]
yes
あとは放置しておくと、勝手に jdk パッケージがインストールされます。
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u13-linux-i586.rpm
inflating: sun-javadb-common-10.4.1-3.1.i386.rpm
inflating: sun-javadb-core-10.4.1-3.1.i386.rpm
inflating: sun-javadb-client-10.4.1-3.1.i386.rpm
inflating: sun-javadb-demo-10.4.1-3.1.i386.rpm
inflating: sun-javadb-docs-10.4.1-3.1.i386.rpm
inflating: sun-javadb-javadoc-10.4.1-3.1.i386.rpm
準備中... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Installing JavaDB
準備中... ########################################### [100%]
1:sun-javadb-common ########################################### [ 17%]
2:sun-javadb-core ########################################### [ 33%]
3:sun-javadb-client ########################################### [ 50%]
4:sun-javadb-demo ########################################### [ 67%]
5:sun-javadb-docs ########################################### [ 83%]
6:sun-javadb-javadoc ########################################### [100%]
Java(TM) SE Development Kit 6 successfully installed.
Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Sun products, services and training
* Access to early releases and documentation
Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK will be presented. If you do not register, none of
this information will be saved. You may also register your
JDK later by opening the register.html file (located in
the JDK installation directory) in a browser.
For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html
Press Enter to continue.....
Done.
正常にインストールされているかは rpm -qi コマンドで確認できます。
# rpm -qi jdk
Name : jdk Relocations: /usr/java
Version : 1.6.0_13 Vendor: Sun Microsystems, Inc.
Release : fcs Build Date: 2009年03月09日 20時39分26秒
Install Date: 2009年04月07日 08時33分04秒 Build Host: jdk-lin-1586
Group : Development/Tools Source RPM: jdk-1.6.0_13-fcs.src.rpm
Size : 140009695 License: Sun Microsystems Binary Code License (BCL)
Signature : (none)
Packager : Java Software <jre-comments@java.sun.com>
URL : http://java.sun.com/
Summary : Java(TM) Platform Standard Edition Development Kit
Description :
The Java Platform Standard Edition Development Kit (JDK) includes both
the runtime environment (Java virtual machine, the Java platform classes
and supporting files) and development tools (compilers, debuggers,
tool libraries and other tools).
The JDK is a development environment for building applications, applets
and components that can be deployed with the Java Platform Standard
Edition Runtime Environment.
** RPM をまとめてセットアップ [#cc7dc4b2]
必要な RPM ファイルをダウンロードしておけば、もう作業は終わったようなもの。
# rpm -ivh *.rpm ./eucalyptus-rpm-deps-i386/*.rpm
準備中... ########################################### [100%]
1:euca-libvirt ########################################### [ 13%]
2:euca-axis2c ########################################### [ 25%]
3:eucalyptus ########################################### [ 38%]
4:euca-httpd ########################################### [ 50%]
5:eucalyptus-gl ########################################### [ 63%]
6:eucalyptus-cc ########################################### [ 75%]
7:eucalyptus-cloud ########################################### [ 88%]
8:eucalyptus-nc ########################################### [100%]
これで、セットアップは完了。
----
参照
http://eucalyptus.cs.ucsb.edu/downloads