计算节点安装及配置计算节点的Nova服务
安装Nova软件包
yum -y install openstack-nova-computecat /etc/passwd | grep novacat /etc/group | grep nova修改Nova配置文件
备份
cp /etc/nova/nova.conf /etc/nova/nova.bakgrep -Ev '^$|#' /etc/nova/nova.bak > /etc/nova/nova.conf编辑
vi /etc/nova/nova.conf修改[keystong_authtoken]和[api]
[api]
auth_strategy = keystone
[keystone_authtoken]
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
username = nova
password = 000000
project_name = project
user_domain_name = Default
project_domain_name = Default修改[placement]
[placement]
auth_url = http://controller:5000
auth_type = password
username = placement
password = 000000
project_name = project
user_domain_name = Default
project_domain_name = Default
region_name = RegionOne修改[glance]
[glance]
api_servers = http://controller:9292修改[oslo_concurrency]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp修改[DEFAULT]
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://rabbitmq:000000@controller:5672
my_ip = 192.168.20.165
use_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver修改[vnc]
[vnc]
enabled = true
server_listen = 0.0.0.0
server_proxyclient_address = $my_ip
novncproxy_base_url = http://192.168.20.160:6080/vnc_auto.html修改[libvirt]
[libvirt]
virt_type = qemu启动计算节点的Nova服务,并设置开机自启
systemctl start openstack-nova-compute.service && systemctl enable openstack-nova-compute.servicesystemctl start libvirtd.service && systemctl enable libvirtd.servicesystemctl status openstack-nova-compute.servicesystemctl status libvirtd.service
linlink~文档