目录
一、nova计算节点安装
nova计算节点安装时,只在计算节点执行。
1.computer安装配置
yum install python-openstackclient openstack-utils openstack-nova-compute -y
2.创建nova实例存放路径
Vdir=/date/nova
VHD=$Vdir/instances
mkdir -p $VHD
chown -R nova:nova $Vdir
3.配置nova.conf
[DEFAULT]
instances_path=/date/nova/instances #实例存放的路径
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:rabbit密码@rabbit部署节点1的ip:5672,rabbit部署节点2的ip:5672
my_ip = 当前计算节点ip
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
cpu_allocation_ratio = 4
[api]
auth_strategy = keystone
[keystone_authtoken]
auth_uri = http://vip:5000
auth_url = http://vip:35357
memcached_servers = 缓存部署节点1的ip:11211,缓存部署节点2的ip:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova服务的密码
[vnc]
enabled = true
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://vip:6080/vnc_auto.html
[glance]
api_servers = http://vip:9292
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://vip:35357/v3
username = placement
password = placement用户的密码
[libvirt]
virt_type = qemu
4.启动
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl start libvirtd.service openstack-nova-compute.service