在計算節點安裝html
# 阿里雲源詳見2.3配置linux
# yum install openstack-nova-compute數據庫
# vim /etc/nova/nova.confvim
1:[DEFAULT]api
2306:use_neutron=truebash
2465:firewall_driver=nova.virt.firewall.NoopFirewallDriverdom
2629:enabled_apis=osapi_compute,metadatamemcached
3021:transport_url = rabbit://openstack:123456@192.168.10.205oop
3069:[api]ui
3085:auth_strategy=keystone
4937:[glance]
4955:api_servers=http://192.168.10.100:9292
5596:[keystone_authtoken]
5597:auth_uri = http://192.168.10.100:5000
5598:auth_url = http://192.168.10.100:35357
5599:memcached_servers = 192.168.10.100:11211
5600:auth_type = password
5601:project_domain_name = default
5602:user_domain_name = default
5603:project_name = service
5604:username = nova
5605:password = nova
7233:[oslo_concurrency]
7248:lock_path=/var/lib/nova/tmp
8079:[placement]
8080:os_region_name = RegionOne
8081:project_domain_name = Default
8082:project_name = service
8083:auth_type = password
8084:user_domain_name = Default
8085:auth_url = http://192.168.10.100:35357/v3
8086:username = placement
8087:password = placement
9667:[vnc]
9683:enabled=true
9706:vncserver_listen=0.0.0.0
9718:vncserver_proxyclient_address=192.168.10.202
9738:novncproxy_base_url=http://192.168.10.100:6080/vnc_auto.html
# egrep -c '(vmx|svm)' /proc/cpuinfo
40
# systemctl enable libvirtd.service openstack-nova-compute.service
# systemctl start libvirtd.service openstack-nova-compute.service
# 在控制端配置
# source admin-openstack.sh
#按期主動發現:
# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
# openstack hypervisor list
+----+-------------------------+-----------------+----------------+-------+
| ID | Hypervisor Hostname | Hypervisor Type | Host IP | State |
+----+-------------------------+-----------------+----------------+-------+
| 1 | linux-host2.exmaple.com | QEMU | 192.168.10.202 | up |
+----+-------------------------+-----------------+----------------+-------+
# 設置按期主動發現
# vim /etc/nova/nova.conf
8577 [scheduler]
8684 discover_hosts_in_cells_interval=300
#重啓nova服務
# bash nova- restart.sh
# nova host-list
# nova service-list
# openstack image list
# openstack compute service list
#列出服務組件是否成功註冊
# nova-status upgrade check
# openstack catalog list
#列出keystone服務中的端點,以驗證keystone的連通性