Foundations of Libvirt Development: How to Set Up and Maintain a Virtual Machine Environment with Python
暫譯: Libvirt 開發基礎:如何使用 Python 設置和維護虛擬機環境
Ashley, W. David
商品描述
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 ForMaintainers of virtual machines in a UNIX/Linux environment ranging from managing code on a single virtual machine through an entire installation of virtual machines.
商品描述(中文翻譯)
發現 libvirt 開發的基本概念,並了解如何與 Linux 虛擬化環境進行介接,例如 QEMU/KVM、XEN、Virtuozzo、VMWare ESX、LXC、Bhyve 等等。本書將幫助您設置和維護虛擬機環境。
您將首先回顧虛擬化的一般概念,然後轉向 libvirt 特定的概念,使用 Python 包括虛擬化的操作系統和網絡、連接、存儲池以及事件和錯誤處理。本書最後將全面介紹域、網絡、設備、網絡過濾、存儲、節點設備等的 XML 架構定義。
libvirt API 涵蓋虛擬對象的整個生命週期,從創建到銷毀。它包含在該生命週期內管理虛擬對象所需的一切。雖然 libvirt 擁有支持多種語言的 API,但《Foundations of Libvirt Development》專注於 Python,並介紹如何使用 API 控制 QEMU/KVM 系統下的虛擬機等。
您將學到的內容:
- 將 Python 與 libvirt 庫介接。
- 回顧 libvirt 庫的類別佈局和方法。
- 通過 Python/libvirt 安裝和操作虛擬機。
- 創建 XML 以操作域、網絡和設備。
- 編寫 Python 程式以執行 libvirt 功能,無需人工干預。
本書適合對象:在 UNIX/Linux 環境中維護虛擬機的管理者,範圍從管理單一虛擬機的代碼到整個虛擬機安裝的管理。
作者簡介
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.
作者簡介(中文翻譯)
W. David Ashley 是 SkillSoft 的技術作家,專注於開源技術,特別是 Linux。作為 Linux Fedora 文檔團隊的成員,他最近負責 Libvirt 專案的文檔,並撰寫了隨附的 Python 程式。他在擔任軟體開發人員和 IT 顧問的 30 年職業生涯中,使用過 20 種不同的程式語言,其中在 IBM 工作超過 18 年,並在美國航空公司工作了 12 年。