Skip to content

计算节点安装及配置计算节点的Nova服务

安装Nova软件包

yum -y install openstack-nova-compute
cat /etc/passwd | grep nova
cat /etc/group | grep nova

修改Nova配置文件

备份

cp /etc/nova/nova.conf /etc/nova/nova.bak
grep -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.service
systemctl start libvirtd.service && systemctl enable libvirtd.service
systemctl status openstack-nova-compute.service
systemctl status libvirtd.service

所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自linlink~文档