KVM virtualization cookbook learn how to effectively use KVM in production

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 in...

Descripción completa

Detalles Bibliográficos
Otros Autores: Ivanov, Konstantin, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England : Packt 2017.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630114606719
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewer
  • www.PacktPub.com
  • Customer Feedback
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with QEMU and KVM
  • Introduction
  • Installing and configuring QEMU
  • Getting ready
  • How to do it...
  • How it works...
  • Managing disk images with qemu-img
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Preparing images for OS installation with qemu-nbd
  • Getting ready
  • How to do it...
  • How it works...
  • Installing a custom OS on the image with debootstrap
  • Getting ready
  • How to do it...
  • How it works...
  • Resizing an image
  • Getting ready
  • How to do it...
  • How it works...
  • Using pre-existing images
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • See also
  • Running virtual machines with qemu-system-*
  • Getting ready
  • How to do it...
  • How it works...
  • Starting the QEMU VM with KVM support
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Connecting to a running instance with VNC
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 2: Using libvirt to Manage KVM
  • Introduction
  • Installing and configuring libvirt
  • Getting ready
  • How to do it...
  • How it works...
  • Defining KVM instances
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Starting, stopping, and removing KVM instances
  • Getting ready
  • How to do it...
  • How it works...
  • Inspecting and editing KVM configs
  • Getting ready
  • How to do it...
  • How it works...
  • Building new KVM instances with virt-install and using the console
  • Getting ready
  • How to do it...
  • How it works...
  • Managing CPU and memory resources in KVM
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Attaching block devices to virtual machines.
  • Getting ready
  • How to do it...
  • How it works...
  • Sharing directories between a running VM and the host OS
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Autostarting KVM instances
  • Getting ready
  • How to do it...
  • How it works...
  • Working with storage pools
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Managing volumes
  • Getting ready
  • How to do it...
  • How it works...
  • Managing secrets
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 3: KVM Networking with libvirt
  • Introduction
  • The Linux bridge
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • The Open vSwitch
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Configuring NAT forwarding network
  • Getting ready
  • How to do it...
  • How it works...
  • Configuring bridged network
  • Getting ready
  • How to do it...
  • How it works...
  • Configuring PCI passthrough network
  • Getting ready
  • How to do it...
  • How it works...
  • Manipulating network interfaces
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 4: Migrating KVM Instances
  • Introduction
  • Manual offline migration using an iSCSI storage pool
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Manual offline migration using GlusterFS shared volumes
  • Getting ready
  • How to do it...
  • How it works...
  • Online migration using the virsh command with shared storage
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Offline migration using the virsh command and local image
  • Getting ready
  • How to do it...
  • How it works...
  • Online migration using the virsh command and local image
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 5: Monitoring and Backup of KVM Virtual Machines
  • Introduction.
  • Resource usage collection with libvirt
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Monitoring KVM instances with Sensu
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Simple KVM backups with tar and rsync
  • Getting ready
  • How to do it...
  • How it works...
  • Creating snapshots
  • Getting ready
  • How to do it...
  • How it works...
  • Listing snapshots
  • Getting ready
  • How to do it...
  • How it works...
  • Inspecting snapshots
  • Getting ready
  • How to do it...
  • How it works...
  • Editing snapshots
  • Getting ready
  • How to do it...
  • How it works...
  • Reverting snapshots
  • Getting ready
  • How to do it...
  • How it works...
  • Deleting snapshots
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 6: Deploying KVM Instances with OpenStack
  • Introduction
  • Preparing the host for the OpenStack deployment
  • Getting ready
  • How to do it...
  • How it works...
  • Installing and configuring the OpenStack Keystone identity service
  • Getting ready
  • How to do it...
  • How it works...
  • Installing and configuring the OpenStack Glance image service
  • Getting ready
  • How to do it...
  • How it works...
  • Installing and configuring the OpenStack Nova compute service
  • Getting ready
  • How to do it...
  • How it works...
  • Installing and configuring the OpenStack Neutron networking service
  • Getting ready
  • How to do it...
  • How it works...
  • Building and inspecting KVM instances with OpenStack
  • Getting ready
  • How to do it...
  • How it works...
  • Stopping KVM instances with OpenStack
  • Getting ready
  • How to do it...
  • How it works...
  • Terminating KVM instances with OpenStack
  • Getting ready
  • How to do it...
  • How it works...
  • Chapter 7: Using Python to Build and Manage KVM Instances
  • Introduction.
  • Installing and using the Python libvirt library
  • Getting ready
  • How to do it...
  • How it works...
  • Defining KVM instances with Python
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Starting, stopping, and deleting KVM instances with Python
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Inspecting KVM instances with Python
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Building a simple REST API server with libvirt and bottle
  • Getting ready
  • How to do it...
  • How it works...
  • There's more...
  • Chapter 8: Kernel Tuning for KVM Performance
  • Introduction
  • Tuning the kernel for low I/O latency
  • Getting ready
  • How to do it...
  • How it works...
  • Memory tuning for KVM guests
  • Getting ready
  • How to do it...
  • How it works...
  • CPU performance options
  • Getting ready
  • How to do it...
  • How it works...
  • NUMA tuning with libvirt
  • Getting ready
  • How to do it...
  • How it works...
  • There is more...
  • Tuning the kernel for network performance
  • Getting ready
  • How to do it...
  • How it works...
  • Index.