Chinaunix首页 | 论坛 | 博客
  • 博客访问: 268460
  • 博文数量: 78
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 852
  • 用 户 组: 普通用户
  • 注册时间: 2013-05-06 11:01
个人简介

不做第二个别人,永远做第一个自己。

文章分类

全部博文(78)

文章存档

2014年(60)

2013年(18)

分类: 云计算

2014-04-10 11:02:59

# Install Nova
[root@cloud01 ~]# yum –enablerepo=epel-openstack-grizzly,epel -y install openstack-nova openstack-swift-plugin-swift3 
[root@cloud01 ~]# openstack-db –init –service nova –password password 
Please enter the password for the ‘root’ MySQL user:
Verified connectivity to MySQL.
Creating ‘nova’ database.
Updating ‘nova’ database password in /etc/nova/nova.conf
Initializing the nova database, please wait…
Complete!
[root@cloud01 ~]# vim /etc/nova/nova.conf 
# line 19: add and change like follows
auth_strategy = keystone


libvirt_type = kvm
volume_api_class = nova.volume.cinder.API
enabled_apis = ec2,osapi_compute,metadata
# interface for public
public_interface = em1
# interface for using
flat_interface = lo
# define bridhe interface

flat_network_bridge = br100

[keystone_authtoken]


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

 
[root@cloud01 ~]# 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  ]
# start cert again because it is down at first boot
[root@cloud01 ~]# /etc/rc.d/init.d/openstack-nova-cert start 
Starting openstack-nova-cert:                              [  OK  ]
[root@cloud01 ~]# nova-manage service list
Binary                               Host                                    Zone             Status     State             Updated_At
nova-conductor            cloud01                              internal          enabled    :-)        2013-09-29 08:02:24
nova-scheduler             cloud01                              internal          enabled    :-)        2013-09-29 08:02:24
nova-consoleauth         cloud01                              internal          enabled    :-)       2013-09-29 08:02:24
nova-network                cloud01                              internal          enabled    :-)        2013-09-29 08:02:26
nova-compute              cloud01                                nova              enabled    :-)       2013-09-29 08:02:25
nova-cert                       cloud01                              internal          enabled    :-)        2013-09-29 08:02:21
[root@cloud01 ~]# vim ~/keystonerc
export OS_USERNAME=admin
export OS_PASSWORD=adminpassword
export OS_TENANT_NAME=admin
export OS_AUTH_URL=
export PS1=’[\u@\h \W(keystone)]\$ ‘
 
[root@cloud01 ~]# chmod 600 ~/keystonerc
[root@cloud01 ~]# source ~/keystonerc
[root@cloud01 ~(keystone)]# echo “source ~/keystonerc” >> ~/.bash_profile
阅读(473) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~