vi /etc/glance/glance-registry-paste.ini
[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
auth_host=IP1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = cloud
重启glance相关服务以及初始化数据库
service glance-api restart; service glance-registry restart
glance-manage db_sync
3. 验证操作
wget https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
source admin-openrc.sh
glance image-create --name cloud --is-public true --container-format bare --disk-format qcow2 < cirros-0.3.0-x86_64-disk.img
glance image-list
十、安装并配置nova服务1、安装Nova软件包
apt-get install nova-api nova-cert novnc nova-consoleauth nova-scheduler nova-novncproxy
nova-doc nova-conductor nova-network
2、修改配置文件
vim /etc/nova/api-paste.ini
[filter:authtoken]
auth_host = IP1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = service_pass
signing_dirname = /tmp/keystone-signing-nova
vim /etc/nova/nova.conf (配置nova)
3、初始化数据库并重启nova服务
nova-manage db sync
cd /etc/init.d/; for i in $(ls nova-*); do sudo service $i restart; done
4、查看服务状态及镜像
nova-manage service list
Binary Host Zone Status State Updated_At
nova-cert ctrl nova enabled :-) 2015-11-26 05:03:41
nova-consoleauth ctrl nova enabled :-) 2015-11-26 05:03:48
nova-scheduler ctrl nova enabled :-) 2015-11-26 05:03:45
nova-network ctrl nova enabled :-) 2015-11-26 05:03:46
运行Nova 的客户端命令,列出当前可用的镜像,测试是否能正常运行:
nova image-list
1. 安装软件包
apt-get install -y bridge-utils
2. 修改配置文件
vi /etc/network/interfaces
auto br100
iface br100 inet static
address IP2
netmask 255.255.255.0
network XX.XX.XX.XX
broadcast 10.18.0.255
gateway 10.18.0.254
dns-nameservers 61.139.2.69
bridge_ports eth0
bridge_stp off
bridge_maxwait 0
bridge_fd 0
3、 重启网络服务
brctl addbr br100
1、安装cinder软件包 没装
apt-get install cinder-api cinder-scheduler cinder-volume iscsitarget iscsitarget-dkms
2、修改配置文件
vim /etc/cinder/api-paste.ini
vim /etc/cinder/cinder.conf
3、初始化数据库
cinder-manage db sync
4、验证服务组件
cinder list