OpenStack Grizzly - Nova 設定2013/08/13 |
OpenStack Compute Service(Nova)をインストールします。
|
|
[1] | Nova インストール |
# EPEL OpenStack, EPELからインストール [root@dlp ~]# yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-nova openstack-swift-plugin-swift3
|
[2] | Nova の基本設定 |
# データベース設定 (「password」は任意のパスワードを設定) [root@dlp ~]# openstack-db --init --service nova --password password Please enter the password for the 'root' MySQL user: # MySQL root パスワード Verified connectivity to MySQL. Creating 'nova' database. Updating 'nova' database password in /etc/nova/nova.conf Initializing the nova database, please wait... Complete!
[root@dlp ~]#
vi /etc/nova/nova.conf # 19行目から:以下のように追記/変更
auth_strategy = keystone
libvirt_type = kvm volume_api_class = nova.volume.cinder.API enabled_apis = ec2,osapi_compute,metadata # パブリック用のインターフェース public_interface = eth0 # 使用するネットワークインターフェース flat_interface = lo # 使用するブリッジインターフェイスを定義 flat_network_bridge = br100
[keystone_authtoken]
[root@dlp ~]# admin_tenant_name = service admin_user = nova admin_password = servicepassword auth_host = 127.0.0.1 auth_port = 35357 auth_protocol = http signing_dir = /tmp/keystone-signing-nova for service in api objectstore compute conductor network scheduler cert consoleauth; do /etc/rc.d/init.d/openstack-nova-$service start chkconfig openstack-nova-$service on done Starting openstack-nova-api: [ OK ] Starting openstack-nova-objectstore: [ OK ] Starting openstack-nova-compute: [ OK ] Starting openstack-nova-conductor: [ OK ] Starting openstack-nova-network: [ OK ] Starting openstack-nova-scheduler: [ OK ] Starting openstack-nova-cert: [ OK ] Starting openstack-nova-consoleauth: [ OK ] # 初回のみ cert が失敗するので再度起動 [root@dlp ~]# /etc/rc.d/init.d/openstack-nova-cert start Starting openstack-nova-cert: [ OK ] # 動作確認 [root@dlp ~]# nova-manage service list Binary Host Zone Status State Updated_At nova-conductor dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-scheduler dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-consoleauth dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-network dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 nova-compute dlp.srv.world nova enabled :-) None nova-cert dlp.srv.world internal enabled :-) 2013-08-13 04:04:19 |
Sponsored Link |
|