Book Image

OpenStack Cloud Computing Cookbook

By : Egle Sigler, Kevin Jackson, Cody Bunch
Book Image

OpenStack Cloud Computing Cookbook

By: Egle Sigler, Kevin Jackson, Cody Bunch

Overview of this book

Table of Contents (19 chapters)
OpenStack Cloud Computing Cookbook Third Edition
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Booting from volumes


Booting from a Cinder volume gives a number of benefits as an OpenStack Operator. You can provide a level of resiliency to your instances, or you can enable Live-Migration of an instance where you are not counting on Libvirt to migrate the disk for you.

Getting ready

Ensure you are logged in to the Ubuntu host where the cinder command-line utilities are installed and source your OpenStack environment admin credentials.

How to do it...

To boot an instance from a volume, we first need to select an image to boot from as well as a flavor of our choice. The steps are follows:

  1. Get the UUID of the image to boot:

    nova image-list
    

    The command generates the following output:

  2. Get the flavor ID for m1.tiny:

    nova flavor-list
    

    The command generates the following output:

  3. Since our lab environment is configured with two networks, we will need to choose the network to attach our instance to. First, list available networks:

    neutron net-list
    

    The available networks will be displayed:

  4. Finally, we...