Book Image

Production Ready OpenStack - Recipes for Successful Environments

By : Arthur Berezin
Book Image

Production Ready OpenStack - Recipes for Successful Environments

By: Arthur Berezin

Overview of this book

OpenStack is the most popular open source cloud platform used by organizations building internal private clouds and by public cloud providers. OpenStack is designed in a fully distributed architecture to provide Infrastructure as a Service, allowing us to maintain a massively scalable cloud infrastructure. OpenStack is developed by a vibrant community of open source developers who come from the largest software companies in the world. The book provides a comprehensive and practical guide to the multiple uses cases and configurations that OpenStack supports. This book simplifies the learning process by guiding you through how to install OpenStack in a single controller configuration. The book goes deeper into deploying OpenStack in a highly available configuration. You'll then configure Keystone Identity Services using LDAP, Active Directory, or the MySQL identity provider and configure a caching layer and SSL. After that, you will configure storage back-end providers for Glance and Cinder, which will include Ceph, NFS, Swift, and local storage. Then you will configure the Neutron networking service with provider network VLANs, and tenant network VXLAN and GRE. Also, you will configure Nova's Hypervisor with KVM, and QEMU emulation, and you will configure Nova's scheduler filters and weights. Finally, you will configure Horizon to use Apache HTTPD and SSL, and you will customize the dashboard's appearance.
Table of Contents (16 chapters)
Production Ready OpenStack - Recipes for Successful Environments
About the Author
About the Reviewers

Configuring Nova-compute with a QEMU Hypervisor emulation

Not all environments always have virtualization capabilities supported by the CPU, for example, test environments running the Nova Compute nodes on virtual machines. In such cases, we can configure Nova to use a QEMU virtualization hypervisor emulation. This significantly reduces the performance of virtual machine instances running with the QEMU hypervisor emulation, but allows you to run virtual machine instances without virtualization support by the CPU.

How to do it…

Follow these steps to configure Nova-compute with the QEMU emulation:

  1. Install QEMU and the libvirt packages:

    [root@compute1 ~]# yum install qemu libvirt libvirt-python libguestfs-tools
  2. Start and enable libvirt:

    [root@compute1 ~]# systemctl start libvirtd
    [root@compute1 ~]# systemctl enable libvirtd
  3. Using the openstack-config command, set the compute_driver parameter under the DEFAULT section to use the libvirt driver:

    [root@compute1 ~]# openstack-config --set /etc/nova...