本文主要是介绍openstack Queens版本在centos7.1,最小化安装(安装nova(计算节点)),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
yum installopenstack-nova-compute -y
修改配置文件
/etc/nova/nova.conf
[DEFAULT]
my_ip = 10.0.2.112
use_neutron = True
firewall_driver =nova.virt.firewall.NoopFirewallDriver
enabled_apis=osapi_compute,metadata
transport_url = rabbit://openstack:test.2018@controller
[api]
auth_strategy=keystone
[glance]
api_servers=http://controller:9292
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = test.2018
[oslo_concurrency]
lock_path=/var/lib/nova/tmp
[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = test.2018
[vnc]
enabled = True
server_listen = 0.0.0.0
server_proxyclient_address =10.0.2.112
novncproxy_base_url = http://controller:6080/vnc_auto.html
若为0将需要将/etc/nova/nova.conf中的virt_type=kvm 修改为 virt_type=qemu
启动服务
# systemctl enable libvirtd.serviceopenstack-nova-compute.service
# systemctl startlibvirtd.service openstack-nova-compute.service
********************************************************************
在控制节点中查看
[root@con01 ~]# openstack computeservice list --service nova-compute
添加新主机
[root@con01 ~]# su -s /bin/sh -c "nova-manage cell_v2discover_hosts --verbose" nova
若不想手动添加 可修改/etc/nova/nova.conf配置文件
[scheduler]
discover_hosts_in_cells_interval = 300
这篇关于openstack Queens版本在centos7.1,最小化安装(安装nova(计算节点))的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!