OpenStack Compute (Compute Node services)
Just like with the Cloud Controller, the OpenStack Compute service is installed on the Compute Node. However,
this time the nova-compute service is installed. This provides the Compute Node the capability
to host virtual machines.
Install the OpenStack Compute package:
# apt-get install nova-compute-kvm
# yum install openstack-nova-compute
# zypper install openstack-nova-compute kvm
If your CPU does not support hardware-assisted virtualization (HVM) such as
Intel VT-x or AMD-V or you are running in a virtualized environment, use the
nova-compute-qemu
qemu package which provides software-based virtualization.
Configure OpenStack Compute:
Edit /etc/nova/api-paste.ini:
[filter:authtoken]
auth_host = 10.10.10.10
admin_tenant_name = service
admin_user = nova
admin_password = password
Edit /etc/nova/nova.conf:
[DEFAULT]
# General
verbose=True
my_ip=10.10.10.11
rabbit_host=10.10.10.10
rabbit_password=password
auth_strategy=keystone
ec2_host=10.10.10.10
ec2_url=http://10.10.10.10:8773/services/Cloud
# Networking
libvirt_use_virtio_for_bridges=True
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.10.10.10:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
# Compute
compute_driver=libvirt.LibvirtDriver
connection_type=libvirt
# Cinder
volume_api_class=nova.volume.cinder.API
# Glance
glance_api_servers=10.10.10.10:9292
image_service=nova.image.glance.GlanceImageService
# novnc
vnc_enabled=true
vncserver_proxyclient_address=10.10.10.11
novncproxy_base_url=http://10.0.0.10:6080/vnc_auto.html
vncserver_listen=0.0.0.0
[DEFAULT]
# General
verbose=True
qpid_hostname=192.168.206.130
auth_strategy=keystone
ec2_host=10.10.10.10
ec2_url=http://10.10.10.10:8773/services/Cloud
# Networking
libvirt_use_virtio_for_bridges=True
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.10.10.10:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
# Compute
compute_driver=libvirt.LibvirtDriver
connection_type=libvirt
# Cinder
volume_api_class=nova.volume.cinder.API
# Glance
glance_api_servers=10.10.10.10:9292
image_service=nova.image.glance.GlanceImageService
# novnc
vnc_enabled=true
vncserver_proxyclient_address=10.10.10.11
novncproxy_base_url=http://10.0.0.10:6080/vnc_auto.html
vncserver_listen=0.0.0.0
[DEFAULT]
# General
verbose=True
rabbit_host=10.10.10.10
rabbit_password=password
auth_strategy=keystone
ec2_host=10.10.10.10
ec2_url=http://10.10.10.10:8773/services/Cloud
# Networking
libvirt_use_virtio_for_bridges=True
network_api_class=nova.network.neutronv2.api.API
neutron_url=http://10.10.10.10:9696
neutron_auth_strategy=keystone
neutron_admin_tenant_name=service
neutron_admin_username=neutron
neutron_admin_password=password
neutron_admin_auth_url=http://10.10.10.10:35357/v2.0
# Security Groups
firewall_driver=nova.virt.firewall.NoopFirewallDriver
security_group_api=neutron
# Compute #
compute_driver=libvirt.LibvirtDriver
connection_type=libvirt
# Cinder
volume_api_class=nova.volume.cinder.API
# Glance
glance_api_servers=10.10.10.10:9292
image_service=nova.image.glance.GlanceImageService
# novnc
vnc_enabled=true
vncserver_proxyclient_address=10.10.10.11
novncproxy_base_url=http://10.0.0.10:6080/vnc_auto.html
vncserver_listen=0.0.0.0
If you do not wish to use
nova-conductor to manage your database connections, you will need to add
the following lines to your
nova.conf:
[database]
connection=mysql://nova:password@10.10.10.10/nova
[conductor]
use_local=True
Restart OpenStack Compute services:
# service nova-compute restart
# service openstack-nova-compute restart
# chkconfig openstack-nova-compute on
# systemctl restart openstack-nova-compute
# systemctl enable openstack-nova-compute