在控制节点执行以下操作。
1
|
yum -y install openstack-nova-api openstack-nova-conductor openstack-nova-novncproxy openstack-nova-scheduler |
vi /etc/nova/nova.conf
1 2 3 4 5 6 7 8 9 10 |
[DEFAULT] enabled_apis = osapi_compute,metadata transport_url = rabbit://openstack:PASSWORD@controller my_ip = 192.168.100.120 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver allow_resize_to_same_host = true [filter_scheduler] enabled_filters=RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter |
1 2 3 4 5 |
[api_database] connection = mysql+pymysql://nova:PASSWORD@controller/nova_api [database] connection = mysql+pymysql://nova:PASSWORD@controller/nova |
1 2 3 4 5 6 7 8 9 10 11 12 |
[api] auth_strategy = keystone [keystone_authtoken] auth_url = http://controller:5000/v3 memcached_servers = controller:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = nova password = PASSWORD |
1 2 3 4 5 6 7 8 9 10 11 12 |
[neutron] url = http://controller:9696 auth_url = http://controller:5000 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = PASSWORD service_metadata_proxy = true metadata_proxy_shared_secret = PASSWORD |
1 2 3 4 5 6 7 |
[vnc] enabled = true server_listen = $my_ip server_proxyclient_address = $my_ip novncproxy_host=0.0.0.0 novncproxy_port=6080 novncproxy_base_url=http://192.168.100.120:6080/vnc_auto.html |
注意将192.168.100.120改成相应的控制节点管理IP地址。
1 2 |
[glance] api_servers = http://controller:9292 |
1 2 |
[oslo_concurrency] lock_path = /var/lib/nova/tmp |
1 2 3 4 5 6 7 8 9 |
[placement] region_name = RegionOne project_domain_name = Default project_name = service auth_type = password user_domain_name = Default auth_url = http://controller:5000/v3 username = placement password = PASSWORD |
1 2 3 4 |
su -s /bin/sh -c "nova-manage api_db sync" nova su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1 --verbose" nova su -s /bin/sh -c "nova-manage db sync" nova |
1
|
su -s /bin/sh -c "nova-manage cell_v2 list_cells" nova |
1 2 3 4 5 |
systemctl enable openstack-nova-api.service openstack-nova-scheduler.service \ openstack-nova-conductor.service openstack-nova-novncproxy.service systemctl start openstack-nova-api.service openstack-nova-scheduler.service \ openstack-nova-conductor.service openstack-nova-novncproxy.service |