安装基础环境
[root@compute ~]# yum install -yhttp://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
[root@compute ~]# yum install -y centos-release-openstack-liberty
[root@compute ~]# yum install -y python-openstackclient
安装nova-compute
[root@compute ~]# yum install -y openstack-nova-compute sysfsutils
配置nova compute
控制节点和计算节点的配置几乎一模一样,只需修改一小部分,因此可以直接将控制节点的配置文件拷贝到计算节点即可。也可按照控制节点的步骤再来一次。
[root@controller ~]# scp /etc/nova/nova.conf compute:/etc/nova/
[root@compute ~]# vim /etc/nova/nova.conf
124 my_ip=192.168.1.12
1819 novncproxy_base_url=http://192.168.1.11:6080/vnc_auto.html
1827 vncserver_listen=0.0.0.0
1834 vnc_enabled=true
1837 vnc_keymap=en-us
2333 host=192.168.1.11
2726 virt_type=kvm //要确定支持kvm,不支持可以改成qemu
启动服务
[root@compute ~]# systemctl enable libvirtd openstack-nova-compute
[root@compute ~]# systemctl start libvirtd openstack-nova-compute
查看验证
在控制节点上进行查看
[root@controller ~]# openstack host list
+------------+-------------+----------+
| Host Name | Service | Zone |
+------------+-------------+----------+
| controller | consoleauth | internal |
| controller | scheduler |internal |
| controller | cert |internal |
| controller | conductor |internal |
| compute | compute | nova |
+------------+-------------+----------+
如果出现最后一行即表明安装成功
Linux运维开发群:298324302
北京linux运维求职招聘群:153677549