https://docs.openstack.org/nova/queens/install/compute-install-rdo.html
计算节点和控制节点时间同步
yum install -y ntpdate
ntpdate time1.aliyun.com
****计算节点操作****
yum install openstack-nova-compute -y
****控制节点操作****
复制控制节点主机(192.168.2.11)的配置文件到计算节点的主机
scp /etc/nova/nova.conf 192.168.2.12:/etc/nova/
****计算节点操作****
vim /etc/nove/nove.conf
[api_database]
...
#删除
3479 connection=mysql+pymysql://nova:nova@192.168.2.11/nova_api
[database]
...
#删除
4452 connection=mysql+pymysql://nova:nova@192.168.2.11/nova
[vnc]
...
#修改
9925 vncserver_listen=192.168.2.12
9936 vncserver_proxyclient_address=192.168.2.12
#打开注释并修改
9954 novncproxy_base_url=http://192.168.2.11:6080/vnc_auto.html
确定您的计算节点是否支持虚拟机的硬件加速:
egrep -c '(vmx|svm)' /proc/cpuinfo
#结果为1就是支持
#结果为0就是不支持
#如果此命令返回值0,则您的计算节点不支持硬件加速,您必须配置libvirt为使用QEMU而不是KVM。
编辑文件中的[libvirt]部分,/etc/nova/nova.conf如下所示
[libvirt]
#...
#打开注释并修改
virt_type = qemu
注意:生产场景用(物理环境)kvm
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl start libvirtd.service openstack-nova-compute.service
****控制节点操作****
source admin-openstack.s
openstack compute service list
[root@linux-node-1 ~]# openstack compute service list
+----+----------------+--------------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+----------------+--------------+----------+---------+-------+----------------------------+
| 1 | nova-conductor | linux-node-1 | internal | enabled | up | 2018-11-04T06:25:37.000000 |
| 2 | nova-scheduler | linux-node-1 | internal | enabled | up | 2018-11-04T06:25:38.000000 |
+----+----------------+--------------+----------+---------+-------+----------------------------+