1
2
3
4
5
6
|
openstack-config --
set
/etc/glance/glance-api
.conf database \
connection mysql:
//glance
:glancepass@controller
/glance
openstack-config --
set
/etc/glance/glance-registry
.conf database \
connection mysql:
//glance
:glancepass@controller
/glance
openstack-config --
set
/etc/glance/glance-api
.conf DEFAULT rpc_backend qpid
openstack-config --
set
/etc/glance/glance-api
.conf DEFAULT qpid_hostname controller
|
1
2
3
4
5
6
7
8
|
openstack-config --
set
/etc/glance/glance-api
.conf keystone_authtoken auth_uri http:
//controller
:5000
openstack-config --
set
/etc/glance/glance-api
.conf keystone_authtoken auth_host controller
openstack-config --
set
/etc/glance/glance-api
.conf keystone_authtoken auth_port 35357
openstack-config --
set
/etc/glance/glance-api
.conf keystone_authtoken auth_protocol http
openstack-config --
set
/etc/glance/glance-api
.conf keystone_authtoken admin_tenant_name service
openstack-config --
set
/etc/glance/glance-api
.conf keystone_authtoken admin_user glance
openstack-config --
set
/etc/glance/glance-api
.conf keystone_authtoken admin_password glance
openstack-config --
set
/etc/glance/glance-api
.conf paste_deploy flavor keystone
|
1
2
3
4
5
6
7
8
|
openstack-config --
set
/etc/glance/glance-registry
.conf keystone_authtoken auth_uri http:
//controller
:5000
openstack-config --
set
/etc/glance/glance-registry
.conf keystone_authtoken auth_host controller
openstack-config --
set
/etc/glance/glance-registry
.conf keystone_authtoken auth_port 35357
openstack-config --
set
/etc/glance/glance-registry
.conf keystone_authtoken auth_protocol http
openstack-config --
set
/etc/glance/glance-registry
.conf keystone_authtoken admin_tenant_name service
openstack-config --
set
/etc/glance/glance-registry
.conf keystone_authtoken admin_user glance
openstack-config --
set
/etc/glance/glance-registry
.conf keystone_authtoken admin_password glance
openstack-config --
set
/etc/glance/glance-registry
.conf paste_deploy flavor keystone
|
1
2
3
4
5
|
keystone endpoint-create \
--service-
id
=$(keystone service-list |
awk
'/ image / {print$2}'
) \
--publicurl=http:
//controller
:9292 \
--internalurl=http:
//controller
:9292 \
--adminurl=http:
//controller
:9292
|
1
2
3
4
|
service openstack-glance-api restart
service openstack-glance-registry start
chkconfig openstack-glance-api on
chkconfig openstack-glance-registry on
|
1
2
3
4
5
6
|
openstack-config --
set
/etc/nova/nova
.conf DEFAULT rpc_backend qpid
openstack-config --
set
/etc/nova/nova
.conf DEFAULT qpid_hostname controller
openstack-config --
set
/etc/nova/nova
.conf DEFAULT my_ip 192.168.1.11
openstack-config --
set
/etc/nova/nova
.conf DEFAULT vncserver_listen 192.168.1.11
openstack-config --
set
/etc/nova/nova
.conf DEFAULT vncserver_proxyclient_address
192.168.1.11
|
1
2
3
4
5
6
7
8
9
|
openstack-config --
set
/etc/nova/nova
.conf DEFAULT auth_strategy keystone
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken \
auth_uri http:
//controller
:5000
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken auth_host controller
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken auth_protocol http
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken auth_port 35357
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken admin_user nova
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken admin_tenant_name service
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken admin_password nova
|
1
2
3
4
5
|
keystone endpoint-create \
--service-
id
=$(keystone service-list |
awk
'/ compute / {print$2}'
) \
--publicurl=http:
//controller
:8774
/v2/
%\(tenant_id\)s \
--internalurl=http:
//controller
:8774
/v2/
%\(tenant_id\)s \
--adminurl=http:
//controller
:8774
/v2/
%\(tenant_id\)s
|
1
2
3
4
5
6
7
8
9
10
11
12
|
service openstack-nova-api start
service openstack-nova-cert start
service openstack-nova-consoleauth start
service openstack-nova-scheduler start
service openstack-nova-conductor start
service openstack-nova-novncproxy start
chkconfig openstack-nova-api on
chkconfig openstack-nova-certon
chkconfig openstack-nova-consoleauth on
chkconfig openstack-nova-scheduler on
chkconfig openstack-nova-conductor on
chkconfig openstack-nova-novncproxy on
|
1
2
3
|
service openstack-nova-api restart
service openstack-nova-scheduler restart
service openstack-nova-conductor restart
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# vi /etc/openstack-dashboard/local_settings
CACHES = {
'default'
:{
'BACKEND'
:
'django.core.cache.backends.memcached.MemcachedCache'
,
'LOCATION'
:
'127.0.0.1:11211'
}
}
########### config databases ##############
SESSION_ENGINE =
'django.core.cache.backends.db.DatabaseCache'
DATABASES = {
'default'
: {
'ENGINE'
:
'django.db.backends.mysql'
,
'NAME'
:
'dash'
,
'USER'
:
'dash'
,
'PASSWORD'
:
'DASH_DBPASS'
,
'HOST'
:
'192.168.1.11'
,
'default-character-set'
:
'utf8'
}
}
ALLOWED_HOSTS= [
'192.168.1.11'
,
'my-desktop'
]
OPENSTACK_HOST=
"controller"
|
1
2
3
4
5
6
7
8
9
|
SESSION_ENGINE =
'django.contrib.sessions.backends.cache'
CACHES = {
"default"
: {
"BACKEND"
:
"redis_cache.cache.RedisCache"
,
"LOCATION"
:
"127.0.0.1:6379:1"
,
"OPTIONS"
: {
"CLIENT_CLASS"
:
"redis_cache.client.DefaultClient"
,
}
}
|
1
2
3
4
|
service httpd start
service memcached start
chkconfig httpd on
chkconfig memcached on
|
1
2
3
4
5
6
7
8
|
openstack-config --
set
/etc/nova/nova
.conf DEFAULT auth_strategy keystone
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken auth_uri http:
//controller
:5000
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken auth_host controller
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken auth_protocol http
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken auth_port 35357
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken admin_user nova
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken admin_tenant_name service
openstack-config --
set
/etc/nova/nova
.conf keystone_authtoken admin_password nova
|
1
2
3
4
5
|
openstack-config --
set
/etc/nova/nova
.conf DEFAULT my_ip 192.168.1.31
openstack-config --
set
/etc/nova/nova
.conf DEFAULT vnc_enabled True
openstack-config --
set
/etc/nova/nova
.conf DEFAULT vncserver_listen 0.0.0.0
openstack-config --
set
/etc/nova/nova
.conf DEFAULT vncserver_proxyclient_address 192.168.1.31
openstack-config --
set
/etc/nova/nova
.conf DEFAULT novncproxy_base_url http:
//192
.168.1.11:6080
/vnc_auto
.html
|
1
2
3
4
5
6
|
service libvirtd start
service messagebus start
service openstack-nova-compute start
chkconfig libvirtd on
chkconfig messagebus on
chkconfig openstack-nova-compute on
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
openstack-config --
set
/etc/nova/nova
.conf DEFAULT network_api_class nova.network.api.API
openstack-config --
set
/etc/nova/nova
.conf DEFAULT security_group_api nova
openstack-config --
set
/etc/nova/nova
.conf DEFAULTnetwork_managernova.network.manager.FlatDHCPManager
openstack-config --
set
/etc/nova/nova
.conf DEFAULT \
firewall_driver nova.virt.libvirt.firewall.IptablesFirewallDriver
openstack-config --
set
/etc/nova/nova
.conf DEFAULT network_size 254
openstack-config --
set
/etc/nova/nova
.conf DEFAULT allow_same_net_traffic False
openstack-config --
set
/etc/nova/nova
.conf DEFAULT multi_host True
openstack-config --
set
/etc/nova/nova
.conf DEFAULT send_arp_for_ha True
openstack-config --
set
/etc/nova/nova
.conf DEFAULT share_dhcp_addressTrue
openstack-config --
set
/etc/nova/nova
.conf DEFAULT force_dhcp_release True
openstack-config --
set
/etc/nova/nova
.conf DEFAULT flat_network_bridge br100
openstack-config --
set
/etc/nova/nova
.conf DEFAULT flat_interface eth1
openstack-config --
set
/etc/nova/nova
.conf DEFAULT public_interface eth0
|
1
2
3
4
|
service openstack-nova-network start
service openstack-nova-metadata-api start
chkconfig openstack-nova-network on
chkconfig openstack-nova-metadata-api on
|
http://repos.fedorapeople.org/repos/openstack/guest-images/centos-6.5-20140117.0.x86_64.qcow2