Skip to main content
  • Book
  • © 2019

Foundations of Libvirt Development

How to Set Up and Maintain a Virtual Machine Environment with Python

Apress

Authors:

  • Only book around with extensive examples of using the libvirt library
  • Covers fundamental building blocks to practical applications in Python
  • Creates an array of domains to perform varied functions with Python

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (14 chapters)

  1. Front Matter

    Pages i-xix
  2. Introduction

    • W. David Ashley
    Pages 1-5
  3. Architecture

    • W. David Ashley
    Pages 7-22
  4. Connecting to Domains

    • W. David Ashley
    Pages 23-61
  5. Guest Domains

    • W. David Ashley
    Pages 63-138
  6. Storage Pools and Volumes

    • W. David Ashley
    Pages 139-159
  7. Virtual Networks

    • W. David Ashley
    Pages 161-167
  8. Network Interfaces

    • W. David Ashley
    Pages 169-184
  9. Error Handling

    • W. David Ashley
    Pages 185-199
  10. Event and Timer Handling

    • W. David Ashley
    Pages 201-206
  11. Using the QEMU Guest Agent

    • W. David Ashley
    Pages 207-225
  12. Debugging/Logging

    • W. David Ashley
    Pages 227-230
  13. A Sample Problem

    • W. David Ashley
    Pages 231-244
  14. Storing Information About Virtual Machines

    • W. David Ashley
    Pages 245-251
  15. Securing Virtual Machines

    • W. David Ashley
    Pages 253-255
  16. Back Matter

    Pages 257-408

About this book

Discover the essential concepts of libvirt development and see how to interface to Linux virtualization environments, such as QEMU/KVM, XEN, Virtuozzo, VMWare ESX, LXC, Bhyve, and more. This book will prepare you to set up and maintain a virtual machine environment.


You'll start by reviewing virtualization in general and then move on to libvirt-specific concepts using Python, including virtualized operating systems and networks, connections, storage pools, and event and error handling.  This work concludes with a comprehensive look at the XML schema definitions for domains, networks, devices, network filtering, storage, node devices, and more.


The libvirt API covers the entire life cycle of virtual objects, from creation to destruction. It contains everything needed for the management of a virtual object during that life cycle. While libvirt has APIs that support many languages, Foundations of Libvirt Development concentrates on Python exclusively, and how to use the APIs to control virtual machines under the QEMU/KVM system. and more. 




What You'll Learn

  • Interface Python to the libvirt library.
  • Review the class layout and methods of the libvirt library.
  • Install and manipulate virtual machines via Python/libvirt.
  • Create XML to manipulate domains, networks, and devices.
  • Write Python programs to perform libvirt functions without human intervention.

Who This Book Is For
​
Maintainers of virtual machines in a UNIX/Linux environment ranging from managing code on a single virtual machine through an entire installation of virtual machines.

Authors and Affiliations

  • Austin, USA

    W. David Ashley

About the author

W. David Ashley is a technical writer for SkillSoft where he specializes in open source, particularly Linux. As a member of the Linux Fedora documentation team he recently led the Libvert project documentation, and wrote the Python programs included with it. He has developed in 20 different programming languages during his 30 years as a software developer and IT consultant, including more than 18 years at IBM and 12 years with American Airlines.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access