The Nova compute service is responsible for managing the hypervisors and virtual machine instances. You might need to perform additional configuration before you deploy this service.
For the Nova compute service, the virt_type
option in the [libvirt] section of the
nova.conf configuration file sets the
hypervisor that runs the instances in your deployment. KVM is
the default hypervisor.
In an OpenStack deployment, it is possible to use a mixture of
hypervisors as compute nodes. To simplify configuration, when
you deploy the Nova compute service to a node, the hypervisor is
detected and the virt_type option is
configured automatically. The following table shows the
virt_type option settings and the conditions
when they are used.
Setting | Conditions |
|---|---|
| Platform: Linux Distribution: Oracle VM Server |
| Platform: Linux Distribution: Oracle Linux Server Virtualization support: enabled |
| Platform: Linux Distribution: Oracle Linux Server Virtualization support: disabled |
| Platform: Microsoft Windows |
To check whether virtualization support is enabled on the compute node, run the following command:
$ egrep '(vmx|svm)' /proc/cpuinfo
If virtualization support is enabled, the output should contain
vmx (for an Intel CPU) or
svm (for an AMD CPU).
Before you deploy Nova compute services to a compute node, perform the following:
Ensure you have sufficient disk space, if you use ephemeral storage for instances (virtual machines).
The Nova data container uses the
/var/lib/kolla/var/lib/nova/instancesdirectory on the compute node for ephemeral storage for instances. You must ensure there is sufficient disk space in this location for the amount of virtual machine data you intend to store.(Oracle Linux compute nodes only) Stop and disable the
libvirtdservice.# systemctl stop libvirtd.service # systemctl disable libvirtd.service
If the
libvirtdservice is running, this prevents thenova_libvirtcontainer from starting when you deploy Nova services.Do not perform this step on Oracle VM Server compute nodes.
Stop iSCSI initiator processes.
You only need to perform this step if you are using Cinder block storage with a volume driver that uses the iSCSI protocol.
By default, the Cinder block storage service uses local volumes managed by the Linux Logical Volume Manager (LVM). The Cinder LVM volume driver uses the iSCSI protocol to connect an instance to a volume and the
nova_iscsidcontainer handles the iSCSI session. If there are iSCSI initiator processes running on the compute node, this prevents thenova_iscsidcontainer from starting when you deploy Nova services.First, unmount the file systems on any attached iSCSI disks and disconnect from all iSCSI targets. Then do either of the following:
Uninstall the iscsi-initiator-utils package.
# yum remove iscsi-initiator-utils
Disable iSCSI services.
On Oracle Linux compute nodes:
# systemctl stop iscsid.socket iscsiuio.socket iscsid.service # systemctl disable iscsid.socket iscsiuio.socket iscsid.service
On Oracle VM Server compute nodes:
# service iscsid stop # chkconfig iscsid off
By default, the Cinder block storage service uses the iSCSI
protocol to connect instances to volumes. The
nova_iscsid container runs on compute nodes
and handles the iSCSI session using an iSCSI initiator name that
is generated when you deploy Nova compute services.
If you prefer, you can configure your own iSCSI initiator name.
You set the iSCSI initiator name in the
/etc/kolla/nova-iscsid/initiatorname.iscsi
file on each compute node. If the
initiatorname.iscsi file does not exist,
create it. The file has one line, which contains the name of the
initiator, in the format:
InitiatorName=iqn.yyyy-mm.naming-authority:unique_name
For example:
InitiatorName=iqn.1988-12.com.oracle:myiscsihost
The Nova compute service supports iSCSI multipath for failover purposes and increased performance. When multipath is enabled, the iSCSI initiator (the Compute node) is able to obtain a list of addresses from the storage node that the initiator can use as multiple paths to the iSCSI LUN (the Cinder volume).
To enable iSCSI multipath:
$ kollacli property set nova_iscsi_use_multipath true

