O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

We start by creating the Glance database in MariaDB in step 1.

In steps 2 and 3, we create the user, role, and service for the Glance project. In step 4, we define the Glance API service endpoints in Keystone. The Nova service and the OpenStack tool can use these endpoints to query Glance for available images.

In step 5, we install the Glance package and create a minimal configuration file in step 6.

We then create the database schemas in step 7, by executing the glance-manage Python script and restart the Glance service in step 8.

In step 9, we download a QCOW2 Ubuntu image and add it to the glance registry in step 10.

Finally, in step 11, we list the newly added image and examine it on the host filesystem.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required