在计算节点安装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的连通性