Python のビルドとインストールを行う。
# pythonsetup.py build
# python setup.py install
Python のインストールが完了すると下記が出力される。
Installing nova-network script to /usr/local/bin
Installing nova-volume script to /usr/local/bin
Installing nova-objectstore script to /usr/local/bin
Installing nova-manage script to /usr/local/bin
Installing nova-scheduler script to /usr/local/bin
Installing nova-dhcpbridge script to /usr/local/bin
Installing nova-compute script to /usr/local/bin
Installing nova-instancemonitor script to /usr/local/bin
Installing nova-api script to /usr/local/bin
Installing nova-import-canonical-imagestore script to /usr/local/bin
・nova 管理者の作成
Installed /usr/local/lib/python2.6/dist-packages/nova-2010.1-py2.6.egg
# nova-manage user admin anne
Processing dependencies for nova==2010.1
Finished processing dependencies for nova==2010.1
下記のようにアクセスキーとシークレットキーの環境変数が設定される。
# export EC2_ACCESS_KEY=4e6498a2-blah-blah-blah-17d1333t97fd
# export EC2_SECRET_KEY=0a520304-blah-blah-blah-340sp34k05bbe9a7
新たなユーザ名、(サイト上では、anne)とプロジェクト名(サイト上では IRT)を作成す
る。
# nova-manage project create IRT anne
下記のような内容が表示される。
14
16.
Generating RSA privatekey, 1024 bit long modulus
.....++++++
..++++++
e is 65537 (0x10001)
Using configuration from ./openssl.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName
:PRINTABLE:'US'
stateOrProvinceName
:PRINTABLE:'California'
localityName
organizationName
:PRINTABLE:'MountainView'
:PRINTABLE:'AnsoLabs'
organizationalUnitName:PRINTABLE:'NovaDev'
commonName
:PRINTABLE:'anne-2010-10-12T21:12:35Z'
Certificate is to be certified until Oct 12 21:12:35 2011 GMT (365 days)
Write out database with 1 new entries
Data Base Updated
作成したプロジェクトの認証を得て、zip ファイルを作成する。
# nova-manage project zipfile IRT anne
カレントディレクトリにある nova.zip ファイルの展開を行う
# unzip nova.zip
カレントディレクトリで novarc ファイルを実行する
# . novarc
イメージファイルの取得するため、
ラックスペース CDN 上のイメージをダウンロード
する。
#
wget http://c2477062.cdn.cloudfiles.rackspacecloud.com/images.tgz
ダウンロードしたイメージファイルを解凍する。
# tar xvzf images.tgz
15