Compute — Nova

Install Compute

  1. [root@compute ~]# yum install openstack-selinux python-openstackclient yum-plugin-priorities openstack-nova-compute openstack-utils -y

Configure Nova

  1. [root@compute ~]# cp /etc/nova/nova.conf /etc/nova/nova.conf.bak
  2. [root@compute ~]# openstack-config --set /etc/nova/nova.conf DEFAULT auth_strategy keystone
  3. [root@compute ~]# openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 10.1.1.62
  4. [root@compute ~]# openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron True
  5. [root@compute ~]# openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver
  6. [root@compute ~]# openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:[email protected]
  7. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_uri http://controller:5000
  8. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url http://controller:35357
  9. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers controller:11211
  10. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password
  11. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name default
  12. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name default
  13. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service
  14. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova
  15. [root@compute ~]# openstack-config --set /etc/nova/nova.conf keystone_authtoken password password
  16. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement auth_uri http://controller:5000
  17. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement auth_url http://controller:35357
  18. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement memcached_servers controller:11211
  19. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement auth_type password
  20. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement project_domain_name default
  21. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement user_domain_name default
  22. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement project_name service
  23. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement username placement
  24. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement password password
  25. [root@compute ~]# openstack-config --set /etc/nova/nova.conf placement os_region_name RegionOne
  26. [root@compute ~]# openstack-config --set /etc/nova/nova.conf vnc enabled True
  27. [root@compute ~]# openstack-config --set /etc/nova/nova.conf vnc keymap en-us
  28. [root@compute ~]# openstack-config --set /etc/nova/nova.conf vnc vncserver_listen 0.0.0.0
  29. [root@compute ~]# openstack-config --set /etc/nova/nova.conf vnc vncserver_proxyclient_address 10.1.1.62
  30. [root@compute ~]# openstack-config --set /etc/nova/nova.conf vnc novncproxy_base_url http://9.1.1.61:6080/vnc_auto.html
  31. [root@compute ~]# openstack-config --set /etc/nova/nova.conf glance api_servers http://controller:9292
  32. [root@compute ~]# openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp
  33. [root@compute ~]# openstack-config --set /etc/nova/nova.conf libvirt virt_type qemu
  34. [root@compute ~]# openstack-config --set /etc/nova/nova.conf libvirt cpu_mode none

Start Compute Service

  1. [root@compute ~]# systemctl enable libvirtd.service openstack-nova-compute.service
  2. [root@compute ~]# systemctl restart libvirtd.service openstack-nova-compute.service
  3. [root@compute ~]# systemctl status libvirtd.service openstack-nova-compute.service

List Compute Service(Do it on Controller)

  1. [root@controller ~]# source /root/admin-openrc
  2. [root@controller ~]# openstack compute service list

Leave a Reply

Your email address will not be published. Required fields are marked *