openstack安装-计算节点-nova计算服务安装

Posted heruiguo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了openstack安装-计算节点-nova计算服务安装相关的知识,希望对你有一定的参考价值。

一、安装nova相关服务

yum install openstack-nova-compute

 二、修改配置

修改标红部分为计算节点的IP地址

openstack-config --set  /etc/nova/nova.conf   DEFAULT  enabled_apis  osapi_compute,metadata
openstack-config --set  /etc/nova/nova.conf   DEFAULT  transport_url rabbit://openstack:[email protected]
openstack-config --set  /etc/nova/nova.conf   DEFAULT  my_ip  192.168.70.11
openstack-config --set  /etc/nova/nova.conf   DEFAULT  use_neutron  true
openstack-config --set  /etc/nova/nova.conf   DEFAULT  firewall_driver nova.virt.firewall.NoopFirewallDriver
openstack-config --set  /etc/nova/nova.conf   api auth_strategy  keystone
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  auth_url  http://192.168.70.10:5000/v3
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  memcached_servers  192.168.70.10:11211
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  auth_type password
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  project_domain_name  default
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  user_domain_name  default
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  project_name  service
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  username  nova
openstack-config --set  /etc/nova/nova.conf   keystone_authtoken  password  nova
openstack-config --set  /etc/nova/nova.conf   vnc enabled true
openstack-config --set  /etc/nova/nova.conf   vnc server_listen 0.0.0.0
openstack-config --set  /etc/nova/nova.conf   vnc server_proxyclient_address  $my_ip
openstack-config --set  /etc/nova/nova.conf   vnc  novncproxy_base_url  http://192.168.70.10:6080/vnc_auto.html
openstack-config --set  /etc/nova/nova.conf   api_servers http://192.168.70.10:9292
openstack-config --set  /etc/nova/nova.conf   oslo_concurrency lock_path  /var/lib/nova/tmp
openstack-config --set  /etc/nova/nova.conf   placement  region_name RegionOne
openstack-config --set  /etc/nova/nova.conf   placement  project_domain_name  Default
openstack-config --set  /etc/nova/nova.conf   placement  project_name  service
openstack-config --set  /etc/nova/nova.conf   placement  auth_type  password
openstack-config --set  /etc/nova/nova.conf   placement  user_domain_name   Default
openstack-config --set  /etc/nova/nova.conf   placement  auth_url  http://192.168.70.10:5000/v3
openstack-config --set  /etc/nova/nova.conf   placement  username  placement
openstack-config --set  /etc/nova/nova.conf   placement  password  placement
openstack-config --set  /etc/nova/nova.conf   libvirt  virt_type kvm
openstack-config --set  /etc/nova/nova.conf   scheduler discover_hosts_in_cells_interval 300

3、重启服务

systemctl start libvirtd.service openstack-nova-compute.service 
systemctl status libvirtd.service openstack-nova-compute.service
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl list-unit-files |grep libvirtd.service
systemctl list-unit-files |grep openstack-nova-compute.service

 



以上是关于openstack安装-计算节点-nova计算服务安装的主要内容,如果未能解决你的问题,请参考以下文章

七OpenStack服务-Nova(计算节点)

安装rocky版本:openstack-nova-compute.service 计算节点服务无法启动

openstack篇 NOVA组件概念和部署

openstack篇 NOVA组件概念和部署

openstack篇 NOVA组件概念和部署

S1_搭建分布式OpenStack集群_07 nova服务配置 (计算节点)