Book description
Deploy, manage, and scale virtual instances using Kernel-based Virtual Machines
About This Book
- Build, manage and scale virtual machines with practical step-by-step examples
- Leverage the libvirt user-space tools and libraries to manage the life-cycle of KVM instances
- Deploy and scale applications inside KVM virtual machines with OpenStack
Who This Book Is For
If you are a system administrator working KVM virtualization, this book will help you grow on your expertise of working with the infrastructure to manage things in a better way. You should have a knowledge of working with Linux based systems.
What You Will Learn
- Deploy different workloads in isolation with KVM virtualization and better utilize the available compute resources
- Explore the benefits of running applications with KVM and learn to prevent the “bad-neighbor” effect
- Leveraging various networking technologies in the context of virtualization with Open vSwitch and the Linux bridge.
- Create KVM instances using Python and inspect running KVM instances
- Understand Kernel Tuning for enhanced KVM performance and better memory utilization
In Detail
Virtualization technologies such as KVM allow for better control over the available server resources, by deploying multiple virtual instances on the same physical host, or clusters of compute resources. With KVM it is possible to run various workloads in isolation with the hypervisor layer providing better tenant isolation and higher degree of security.
This book will provide a deep dive into deploying KVM virtual machines using qemu and libvirt and will demonstrate practical examples on how to run, scale, monitor, migrate and backup such instances. You will also discover real production ready recipes on deploying KVM instances with OpenStack and how to programatically manage the life cycle of KVM virtual machines using Python. You will learn numerous tips and techniques which will help you deploy & plan the KVM infrastructure. Next, you will be introduced to the working of libvirt libraries and the iPython development environment.
Finally, you will be able to tune your Linux kernel for high throughput and better performance. By the end of this book, you will gain all the knowledge needed to be an expert in working with the KVM virtualization infrastructure.
Style and approach
This book takes a complete practical approach with many step-by-step example recipes on how to use KVM in production. The book assumes certain level of expertise with Linux systems and virtualization in general. Some knowledge of Python programming is encouraged, to fully take advantage of the code recipes.
Table of contents
- Preface
-
Getting Started with QEMU and KVM
- Introduction
- Installing and configuring QEMU
- Managing disk images with qemu-img
- Preparing images for OS installation with qemu-nbd
- Installing a custom OS on the image with debootstrap
- Resizing an image
- Using pre-existing images
- Running virtual machines with qemu-system-*
- Starting the QEMU VM with KVM support
- Connecting to a running instance with VNC
-
Using libvirt to Manage KVM
- Introduction
- Installing and configuring libvirt
- Defining KVM instances
- Starting, stopping, and removing KVM instances
- Inspecting and editing KVM configs
- Building new KVM instances with virt-install and using the console
- Managing CPU and memory resources in KVM
- Attaching block devices to virtual machines
- Sharing directories between a running VM and the host OS
- Autostarting KVM instances
- Working with storage pools
- Managing volumes
- Managing secrets
- KVM Networking with libvirt
- Migrating KVM Instances
- Monitoring and Backup of KVM Virtual Machines
-
Deploying KVM Instances with OpenStack
- Introduction
- Preparing the host for the OpenStack deployment
- Installing and configuring the OpenStack Keystone identity service
- Installing and configuring the OpenStack Glance image service
- Installing and configuring the OpenStack Nova compute service
- Installing and configuring the OpenStack Neutron networking service
- Building and inspecting KVM instances with OpenStack
- Stopping KVM instances with OpenStack
- Terminating KVM instances with OpenStack
- Using Python to Build and Manage KVM Instances
- Kernel Tuning for KVM Performance
Product information
- Title: KVM Virtualization Cookbook
- Author(s):
- Release date: June 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788294676
You might also like
book
Mastering KVM Virtualization
Dive in to the cutting edge techniques of Linux KVM virtualization, and build the virtualization solutions …
book
VMware vSphere 6.7 Cookbook - Fourth Edition
Proven, actionable ways to install, manage, secure and monitor your vSphere 6.7 environments Key Features Get …
book
Virtualization Essentials
A full-color beginner's guide to the core concepts and skills of virtualization Virtualization is the IT …
book
Linux Administration Cookbook
Over 100 recipes to get up and running with the modern Linux administration ecosystem Key Features …