Book description
Learn how to configure, automate, orchestrate, troubleshoot, and monitor KVM-based environments capable of scaling to private and hybrid cloud models
Key Features
- Gain expert insights into Linux virtualization and the KVM ecosystem with this comprehensive guide
- Learn to use various Linux tools such as QEMU, oVirt, libvirt, Cloud-Init, and Cloudbase-Init
- Scale, monitor, and troubleshoot your VMs on various platforms, including OpenStack and AWS
Book Description
Kernel-based Virtual Machine (KVM) enables you to virtualize your data center by transforming your Linux operating system into a powerful hypervisor that allows you to manage multiple operating systems with minimal fuss. With this book, you'll gain insights into configuring, troubleshooting, and fixing bugs in KVM virtualization and related software.
This second edition of Mastering KVM Virtualization is updated to cover the latest developments in the core KVM components - libvirt and QEMU. Starting with the basics of Linux virtualization, you'll explore VM lifecycle management and migration techniques. You'll then learn how to use SPICE and VNC protocols while creating VMs and discover best practices for using snapshots. As you progress, you'll integrate third-party tools with Ansible for automation and orchestration. You'll also learn to scale out and monitor your environments, and will cover oVirt, OpenStack, Eucalyptus, AWS, and ELK stack. Throughout the book, you'll find out more about tools such as Cloud-Init and Cloudbase-Init. Finally, you'll be taken through the performance tuning and troubleshooting guidelines for KVM-based virtual machines and a hypervisor.
By the end of this book, you'll be well-versed with KVM virtualization and the tools and technologies needed to build and manage diverse virtualization environments.
What you will learn
- Implement KVM virtualization using libvirt and oVirt
- Delve into KVM storage and network
- Understand snapshots, templates, and live migration features
- Get to grips with managing, scaling, and optimizing the KVM ecosystem
- Discover how to tune and optimize KVM virtualization hosts
- Adopt best practices for KVM platform troubleshooting
Who this book is for
If you are a systems administrator, DevOps practitioner, or developer with Linux experience looking to sharpen your open-source virtualization skills, this virtualization book is for you. Prior understanding of the Linux command line and virtualization is required before getting started with this book.
Table of contents
- Mastering KVM Virtualization Second Edition
- Why subscribe?
- Contributors
- About the authors
- About the reviewer
- Packt is searching for authors like you
- Preface
- Section 1: KVM Virtualization Basics
- Chapter 1: Understanding Linux Virtualization
- Chapter 2: KVM as a Virtualization Solution
- Section 2: libvirt and ovirt for Virtual Machine Management
- Chapter 3: Installing KVM Hypervisor, libvirt, and oVirt
- Chapter 4: Libvirt Networking
-
Chapter 5: Libvirt Storage
- Introduction to storage
- Storage pools
- NFS storage pool
- iSCSI and SAN storage
- Storage redundancy and multipathing
- Gluster and Ceph as a storage backend for KVM
- Virtual disk images and formats and basic KVM storage operations
- The latest developments in storage – NVMe and NVMeOF
- Summary
- Questions
- Further reading
- Chapter 6: Virtual Display Devices and Protocols
- Chapter 7: Virtual Machines: Installation, Configuration, and Life Cycle Management
- Chapter 8: Creating and Modifying VM Disks, Templates, and Snapshots
- Section 3: Automation, Customization, and Orchestration for KVM VMs
-
Chapter 9: Customizing a Virtual Machine with cloud-init
- What is the need for virtual machine customization?
- Understanding cloud-init
- Understanding cloud-init architecture
- Installing and configuring cloud-init at boot time
- Passing metadata and user data to cloud-init
- Examples on how to use a cloud-config script with cloud-init
- Summary
- Questions
- Further reading
- Chapter 10: Automated Windows Guest Deployment and Customization
- Chapter 11: Ansible and Scripting for Orchestration and Automation
- Section 4: Scalability, Monitoring, Performance Tuning, and Troubleshooting
- Chapter 12: Scaling Out KVM with OpenStack
- Chapter 13: Scaling out KVM with AWS
- Chapter 14: Monitoring the KVM Virtualization Platform
- Chapter 15: Performance Tuning and Optimization for KVM VMs
-
Chapter 16: Troubleshooting Guidelines for the KVM Platform
- Verifying the KVM service status
- KVM services logging
- Enabling debug mode logging
-
Advanced troubleshooting tools
- oVirt
- oVirt and KVM storage problems
- Problems with snapshots and templates – virtual machine customization
- Problems working with Ansible and OpenStack
- Dependencies
- Troubleshooting Eucalyptus
- AWS and its verbosity, which doesn't help
- Paying attention to details
- Troubleshooting problems with the ELK stack
- Best practices for troubleshooting KVM issues
- Summary
- Questions
- Further reading
- Other Books You May Enjoy
Product information
- Title: Mastering KVM Virtualization - Second Edition
- Author(s):
- Release date: October 2020
- Publisher(s): Packt Publishing
- ISBN: 9781838828714
You might also like
book
Mastering KVM Virtualization
Dive in to the cutting edge techniques of Linux KVM virtualization, and build the virtualization solutions …
video
Red Hat Certified System Administrator (RHCSA) with Virtual Machines, Second Edition
15 Hours of Video Instruction Overview Red Hat Certified System Administrator (RHCSA) Complete Video Course with …
book
Mastering Proxmox - Third Edition
Discover real world scenarios for Proxmox troubleshooting and become an expert cloud builder About This Book …
book
Mastering Linux Security and Hardening - Second Edition
A comprehensive guide to securing your Linux system against cyberattacks and intruders Key Features Deliver a …