# 安装程序包
yum install -y openstack-nova-compute
# 变更配置文件
cd /etc/nova
mv nova.conf nova.conf.org
cat > /etc/nova/nova.conf << EOF
[DEFAULT]
my_ip = 192.168.10.220
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:Abc@123@controller
user_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api_database]
connection = mysql+pymysql://nova:Abc@123@controller/nova_api
[database]
connection = mysql+pymysql://nova:Abc@123@controller/nova
[api]
auth_strategy = keystone
[keystone_authtoken]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project _name = service
username = nova
password = Abc@123
[vnc]
enabled = true
server_listen = 0.0.0.0
server_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
[placement]
region_name = RegionOne
project_domain_name = default
user_domain_name = default
project _name = service
auth_type = password
auth_url = http://controller:5000/v3
username = placement
password = Abc@123
[libvirt]
virt_type =qemu
EOF
chmod 640 /etc/nova/nova.conf
chown root:nova /etc/nova/nova.conf
# 开启服务
systemctl restart libvirtd && systemctl enable libvirtd
systemctl restart openstack-nova-compute && systemctl enable openstack-nova-compute
# 验证
在controller上执行
source ~/.openstack_admin
openstack compute service list
openstack catalog list
openstack image list
nova-status upgrade check