#############################################################################################################
# 计算节点 nova组件部署安装 #
############################################################################################################# 1、主机名修改 host文件解析 [root@localhost ~] hostnamectl set-hostname computer001
[root@localhost ~] vim /etc/hosts
192.168.40.151 controller
192.168.40.151 computer001
2、yum源配置
3、时间服务安装
4、永久关闭防火墙(firewalld和selinux)
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld #永久性关闭防火墙
[root@localhost ~]# setenforce 0 #临时关闭selinux
[root@localhost ~]# vim /etc/selinux/config #永久性关闭selinux
SELINUX=disabled
5、重启
[root@localhost ~]# reboot
6、nova组件安装
[root@computer001 ~]# yum install openstack-nova-compute
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:RABBIT_PASS@controller
my_ip = MANAGEMENT_INTERFACE_IP_ADDRESS
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver [api]
auth_strategy = keystone [keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = NOVA_PASS [vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://controller:6080/vnc_auto.html [glance]
api_servers = http://controller:9292 [oslo_concurrency]
lock_path = /var/lib/nova/tmp [libvirt]
virt_type = qemu [root@computer001 ~] systemctl enable libvirtd.service openstack-nova-compute.service
[root@computer001 ~] systemctl start libvirtd.service openstack-nova-compute.service 验证安装是否成功:
在控制节点上执行
[root@controller ~]# source admin.sh
[root@controller ~]# openstack compute service list
+----+--------------------+------------+----------+---------+-------+----------------------------+
| Id | Binary | Host | Zone | Status | State | Updated At |
+----+--------------------+------------+----------+---------+-------+----------------------------+
| 1 | nova-consoleauth | controller | internal | enabled | up | 2016-02-09T23:11:15.000000 |
| 2 | nova-scheduler | controller | internal | enabled | up | 2016-02-09T23:11:15.000000 |
| 3 | nova-conductor | controller | internal | enabled | up | 2016-02-09T23:11:16.000000 |
| 4 | nova-compute | computer001| nova | enabled | up | 2016-02-09T23:11:20.000000 |
+----+--------------------+------------+----------+---------+-------+----------------------------+