Mastering KVM Virtualization
eBook - ePub

Mastering KVM Virtualization

Humble Devassy Chirammal, Prasad Mukhedkar, Anil Vettathu

Share book
  1. 468 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering KVM Virtualization

Humble Devassy Chirammal, Prasad Mukhedkar, Anil Vettathu

Book details
Book preview
Table of contents
Citations

About This Book

Dive in to the cutting edge techniques of Linux KVM virtualization, and build the virtualization solutions your datacentre demands

About This Book

  • Become an expert in Linux virtualization
  • Migrate your virtualized datacenter to the cloud
  • Find out how to build a large scale virtualization solution that will transform your organization

Who This Book Is For

Linux administrators – if you want to build incredible, yet manageable virtualization solutions with KVM this is the book to get you there. It will help you apply what you already know to some tricky virtualization tasks.

What You Will Learn

  • Explore the ecosystem of tools that support Linux virtualization
  • Find out why KVM offers you a smarter way to unlock the potential of virtualization
  • Implement KVM virtualization using oVirt
  • Explore the KVM architecture – so you can manage, scale and optimize it with ease
  • Migrate your virtualized datacenter to the cloud for truly resource-efficient computing
  • Find out how to integrate OpenStack with KVM to take full control of the cloud

In Detail

A robust datacenter is essential for any organization – but you don't want to waste resources. With KVM you can virtualize your datacenter, transforming a Linux operating system into a powerful hypervisor that allows you to manage multiple OS with minimal fuss.

This book doesn't just show you how to virtualize with KVM – it shows you how to do it well. Written to make you an expert on KVM, you'll learn to manage the three essential pillars of scalability, performance and security – as well as some useful integrations with cloud services such as OpenStack. From the fundamentals of setting up a standalone KVM virtualization platform, and the best tools to harness it effectively, including virt-manager, and kimchi-project, everything you do is built around making KVM work for you in the real-world, helping you to interact and customize it as you need it. With further guidance on performance optimization for Microsoft Windows and RHEL virtual machines, as well as proven strategies for backup and disaster recovery, you'll can be confident that your virtualized data center is working for your organization – not hampering it. Finally, the book will empower you to unlock the full potential of cloud through KVM. Migrating your physical machines to the cloud can be challenging, but once you've mastered KVM, it's a little easie.

Style and approach

Combining advanced insights with practical solutions, Mastering KVM Virtualization is a vital resource for anyone that believes in the power of virtualization to help a business use resources more effectively.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Mastering KVM Virtualization an online PDF/ePUB?
Yes, you can access Mastering KVM Virtualization by Humble Devassy Chirammal, Prasad Mukhedkar, Anil Vettathu in PDF and/or ePUB format, as well as other popular books in Computer Science & Content Management Systems. We have over one million books available in our catalogue for you to explore.

Information

Year
2016
ISBN
9781784399054
Edition
1

Mastering KVM Virtualization


Table of Contents

Mastering KVM Virtualization
Credits
About the Authors
About the Reviewers
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book for
Conventions
Reader feedback
Customer support
Downloading the color images of this book
Errata
Piracy
Questions
1. Understanding Linux Virtualization
What is virtualization?
Why should I use Linux virtualization?
Types of virtualization
Advantages of virtualization
Operating system virtualization/partitioning
Full virtualization
Paravirtualization
Hardware assisted virtualization
Introducing VMM/hypervisor
Type 1 and Type 2 hypervisors
Open source virtualization projects
Xen
Introducing KVM
High-level overview of KVM
What Linux virtualization offers you in the cloud
Summary
2. KVM Internals
Getting acquainted with libvirt and its implementation
Internal workings of libvirt
Time to think more about QEMU
Qemu – KVM internals
Data structures
Threading models in QEMU
KVM in action
KVM APIs
Anonymous inodes and file structures
Data structures
Execution flow of vCPU
Summary
3. Setting Up Standalone KVM Virtualization
Getting acquainted with libvirt
Host system requirements
Determining the right system requirements for your environment
Physical CPU
CPU cores
Physical memory
Storage
How much SWAP space is recommended?
Network
Setting up the environment
Installing virtualization packages
Starting the libvirt service
Validate and understand your system's virt capabilities
Hardware configuration examples
Summary
4. Getting Started with libvirt and Creating Your First Virtual Machines
Introducing virt-manager
The Virtual Networks tab
NATed virtual network
Routed virtual network
Isolated virtual network
Default network
Storage tab
Creating virtual machines using the Virtual Machine Manager
Creating a new virtual machine wizard
The Network installation (HTTP, FTP, or NFS) method
Network Boot (PXE)
Importing an existing disk image
Introducing virt-install
Installing a Windows 7 Guest using the virt-install command
Automated virtual machine deployment
Introducing virt-builder
Introducing oz
The oz configuration file
Creating a virtual machine using oz
Summary
5. Network and Storage
Virtual networking
Virtual networking using libvirt
Isolated virtual network
Routed virtual network
Editing a virtual network
NATed virtual network
MacVTap
PCI passthrough
It's all about storage!
Working with unmanaged storage
Creating a disk image and attaching it to a guest
Getting image information
Attach a disk using virt-manager
Attach a disk using virsh
Working with managed storage
Storage management console
Creating storage pools
File system directory backed storage pool
LVM Volume Group backed storage pool
iSCSI backed storage pool
Creating an ISO image library
Deleting a storage pool
Deleting storage pool using virt-manager
Deleting storage pool using virsh
Creating storage volumes
Creating volume using virsh command
Deleting a volume using the virsh command
Summary
6. Virtual Machine Lifecycle Management
QEMU guest agent
Virtual video cards and graphics
Virtual video card
Graphics
VNC graphics server
SPICE graphics server
Adding SPICE graphics server
Methods to access a virtual machine console
VM migration
Offline migration
Live or online migration
Benefits of VM migration
Setting up the environment
Shared storage
Offline migration
What if I start the VM accidently on both the hypervisors?
Enabling lockd
Live or online migration
Future of migration
Summary
7. Templates and Snapshots
Introducing virtual machine templates
Working with templates
Creating templates
Example 1 – preparing a CentOS 7 template with a complete LAMP stack
What is virt-sysprep?
Example 2 – preparing a Windows 7 template with a MySQL database
Deploying virtual machines from a template
Deploying VMs using the clone provisioning method
Deploying VMs using the thin provisioning method
Snapshots
VM disk image formats
Converting a VM disk format
Working with internal snapshots
Creating the first internal snapshot
Creating an internal snapshot with a custom name and description
Creating multiple snapshots
Reverting to internal snapshots
Deleting internal snapshots
Managing snapshots using virt-manager
Working with external disk snapshots
Creating an external disk snapshot
What is quiesce?
Reverting to external snapshots
Deleting external disk snapshots
Best practices for dealing with snapshots
Summary
8. Kimchi – An HTML5-Based Management Tool for KVM/libvirt
Libvirt Web API
Introduction to the Kimchi project
Kimchi architecture
Setting up Kimchi server
Starting kimchid service
Managing KVM virtualization infrastructure using kimchi WebUI
Creating virtual machines through Kimchi WebUI
Editing a virtual machine's resource allocation
Accessing a virtual machine's graphical console
Permissions and user access control
Monitoring and managing a host system with the Kimchi WebUI
Host system management using the Kimchi-Ginger plugin
Managing virtual machine through android phones
Summary
9. Software-Defined Networking for KVM Virtualization
Introducing Software Defined Networking
Limitations of Linux bridges
Introducing Open vSwitch
Comparison between Linux bridge and Open vSwitch
Open vSwitch architecture
Open vSwitch installation and setup
Starting openvswitch.service
Open vSwitch k...

Table of contents