25. DevStackのソースを取得
1. githubよりDevStackを取得
$ cd ~
$ git clone https://github.com/openstack-dev/devstack.git
$ cd devstack/
2. 安定版のHavanaを使うようにブランチを設定
$ git checkout -b havana remotes/origin/stable/havana
3. ブランチの設定が完了すると以下のメッセージを
表示
Branch havana set up to track remote branch
stable/havana from origin.
Switched to a new branch ’havana'
25
27. Fixed IPとFloating IPの仕組み
① FIXED_RANGEで
割り当てられる。
サービ
①同士は通信でき
インスタン
ス
るが、③とは通信
ス
できない
①
①
② FLOATING_RANG
②
Eで割り当てられ
る。実際には②と
①との間で静的
③
クライアント
NATを行ってい
る。
③→②→①と繋が
27
る
30. インストールが成功すると
Horizon is now available at http://192.168.1.100/
Keystone is serving at
http://192.168.1.100:5000/v2.0/
Examples on using novaclient command line is in
exercise.sh
The default users are: admin and demo
The password: openstack
This is your host ip: 192.168.1.100
stack.sh completed in 2470 seconds.
30
44. Pingを発行
$ ping 192.168.1.226
PING 192.168.1.226 (192.168.1.226): 56 data bytes
64 bytes from 192.168.1.226: icmp_seq=0 ttl=63 time=1.015 ms
64 bytes from 192.168.1.226: icmp_seq=1 ttl=63 time=1.233 ms
64 bytes from 192.168.1.226: icmp_seq=2 ttl=63 time=1.484 ms
^C
--- 192.168.1.226 ping statistics --3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 1.015/1.244/1.484/0.192 ms
44
45. インスタンスにSSH接続
$ ssh cirros@192.168.1.226
The authenticity of host '192.168.1.226 (192.168.1.226)' can't be established.
RSA key fingerprint is c0:50:ba:99:35:e7:a7:1c:e8:f3:0b:10:67:ed:7f:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.226' (RSA) to the list of known hosts.
cirros@192.168.1.226's password: cubswin:)
$ uname -a
Linux cirros 3.2.0-37-virtual #58-Ubuntu SMP Thu Jan 24 15:48:03 UTC 2013
x86_64 GNU/Linux
$ ifconfig eth0
eth0
Link encap:Ethernet HWaddr FA:16:3E:76:8B:4B
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
45