Book Image

OpenStack Trove Essentials

By : Alok Shrivastwa, Sunil Sarat, Doug Shelley, Amrith Kumar
Book Image

OpenStack Trove Essentials

By: Alok Shrivastwa, Sunil Sarat, Doug Shelley, Amrith Kumar

Overview of this book

OpenStack has become an extremely popular solution to build public and private clouds with. Database as a Service (DBaaS) enables the delivery of more agile database services at lower costs. Some other benefits of DBaaS are secure database deployments and compliance to standards and best practices. Trove is a DBaaS built on OpenStack and is becoming more popular by the day. Since Trove is one of the most recent projects of OpenStack, DBAs and system administrators can find it difficult to set up and run a DBaaS using OpenStack Trove. This book helps DBAs make that step. We start by introducing you to the concepts of DBaaS and how is it implemented using OpenStack Trove. Following this, we look at implementing OpenStack and deploying Trove. Moving on, you will learn to create guest images to be used with Trove. We then look at how to provision databases in self-service mode, and how to perform administration tasks such as backup and recovery, and fine-tuning databases. At the end of the book, we will examine some advanced features of Trove such as replication.
Table of Contents (15 chapters)
OpenStack Trove Essentials
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Modify QCOW2 images using guestfish


If we want to modify the QCOW2 image that we have just created or the one that is downloaded from the Internet, without booting, we could do so by using the guestfish utility. This is provided by the libguestfs library.

Installing guestfish

The installation of guestfish is fairly simple.

apt-get install libguestfs-tools

On some versions (like 12.04), the command is apt-get install guestfish. It will also ask for the creation of the virtual appliance; please do so. Once the appliance is installed, you can then execute the command sudo guestfish (or as root).

Loading the images

Once in the guestfish console, you can then load the qcow2 image by typing the command add <full path to qcow2 imange>.

add /home/alokas/mysql.qcow2

We will then type the command run, which will load the image.

Once the slider reaches 100%, we are ready to proceed further.

Modify the files on the image

We can mount the volumes that are available in the image; we can execute the command...