参考文档:
http://www.ibm.com/developerworks/cn/linux/l-libvirt/
http://libvirt.org
libvirt 提供一种虚拟机监控程序不可知的 API 来安全管理运行于主机上的来宾操作系统。支持kvm/qemu、zen、ESX等。
在libvirt中要支持QEMU,必须打开libvirtd daemon。
libvirtd --daemon --config /etc/libvirt/libvirtd.conf --listen
connection URIs:
qemu:///session (local access to per-user instance)
qemu+unix:///session (local access to per-user instance)
qemu:///system (local access to system instance)
qemu+unix:///system (local access to system instance)
qemu://example.com/system (remote access, TLS/x509)
qemu+tcp://example.com/system (remote access, SASl/Kerberos)
qemu+ssh://root@example.com/system (remote access, SSH tunnelled)
有可能在环境变量中LIBVIRT_DEFAULT_URI
virsh -c test:///default list
virt-manager -c test:///default
virt-install --connect=test:///default [other options]
guestfish
Guestfish is an interactive shell and command-line tool for examining and modifying virtual machine filesystems. It uses libvirt to find guests and their associated disks.
virsh
An interactive shell, and batch scriptable tool for performing management tasks on all libvirt managed domains, networks and storage. This is part of the libvirt core distribution.
virt-clone
Allows the disk image(s) and configuration for an existing virtual machine to be cloned to form a new virtual machine. It automates copying of data across to new disk images, and updates the UUID, MAC address, and name in the configuration.
virt-df
Examine the utilization of each filesystem in a virtual machine from the comfort of the host machine. This tool peeks into the guest disks and determines how much space is used. It can cope with common Linux filesystems and LVM volumes.
virt-image
Provides a way to deploy virtual appliances. It defines a simplified portable XML format describing the pre-requisites of a virtual machine. At time of deployment this is translated into the domain XML format for execution under any libvirt hypervisor meeting the pre-requisites.
virt-install
Provides a way to provision new virtual machines from a OS distribution install tree. It supports provisioning from local CD images, and the network over NFS, HTTP and FTP.
virt-top
Watch the CPU, memory, network and disk utilization of all virtual machines running on a host.
virt-what
virt-what is a shell script for detecting if the program is running in a virtual machine. It prints out a list of facts about the virtual machine, derived from heuristics.
分享到:
相关推荐
Libvirt 是一个开源项目,提供了一组 API、工具和库,用于管理和控制虚拟化平台。在 OpenStack 环境中,Libvirt 是一个至关重要的组件,它为各种虚拟化技术(如 KVM、Xen、QEMU 和 LXC)提供了统一的接口,使得 ...
Libvirt是一个强大的开源库,用于管理和控制虚拟化平台,如KVM、Xen、QEMU等。这个PHP管理器利用Libvirt的API来执行各种操作,使非专业用户也能方便地进行虚拟机的日常维护。 该管理系统的核心功能包括: 1. **...
首先,libvirt提供了一个对象模型,用于表示虚拟化技术中的各种资源,包括管理程序连接(hypervisor connections)、客户机域(guest domains)、虚拟网络(virtual networks)、存储池(storage pools)、存储卷...
Libvirt 提供了一个统一的界面来管理各种虚拟化技术,包括 KVM。它支持多种客户端工具,例如 virsh,可以进行远程管理。 #### 安装 KVM、Qemu、Libvirt - **检查内核模块**:确保内核已加载 kvm 模块。在 Ubuntu ...
libvirt-snmp 是一个专为虚拟化环境设计的网络管理接口工具,它允许用户通过简单网络管理协议(SNMP)来监控和管理虚拟机网络流量。该工具提供了对libvirt库的扩展,使SNMP支持成为可能,从而使得管理员可以利用广泛...
libvirt是一个强大的开源库,它为多种虚拟化平台提供了一致的API接口,使得开发者可以轻松地进行跨平台的虚拟化管理。libvirt-java作为libvirt的Java绑定,为Java开发者提供了访问libvirt功能的便利。本文将详细探讨...
Libvirt是一个开源的API、库和工具集合,它为管理和配置虚拟化技术提供了统一的接口。这个源码包是版本0.9.11,适用于安装和开发基于libvirt的应用程序。在深入研究libvirt源码之前,我们需要先了解其基本概念和功能...
Qemu KVM and Libvirt Qemu KVM 和 Libvirt 是虚拟化领域中的三个重要概念,分别是虚拟机监控器、内核模块和虚拟机管理工具。本文将对这三个概念进行解析,并探讨它们之间的关系。 虚拟化的基本类型 虚拟化可以...
Libvirt的架构是一个基于驱动程序的架构,该架构允许一种通用的API以通用方式为大量潜在的虚拟机监控程序提供服务。Libvirt的基本架构包括Node、Hypervisor、Domain和libvirt daemon四个部分。Node是物理机器,...
libvirt是一个开源API库,它提供了对虚拟化技术如KVM, Xen和QEMU等进行管理的接口。在IT行业中,libvirt库被广泛用于开发和管理虚拟化解决方案,特别是和KVM配合使用时。在开始之前,我们需要了解一些基础知识点。 ...
libvirt是开源社区开发的一个强大而灵活的工具,它为管理虚拟化技术提供了一个统一的API接口。libvirt支持多种虚拟化平台,包括KVM(Kernel-based Virtual Machine)、Xen、VMware等,使得开发者能够编写跨平台的...
"libvirt-test-API" 是一个专注于虚拟化管理的测试套件项目,主要用于对 `libvirt` 的功能进行回归测试。该项目使用 Python 编写,旨在通过 Python 绑定接口来尽可能覆盖 `libvirt` API 的所有功能。 #### 主要组件...
libvirt是一个开源的软件集合,它提供了用于管理虚拟化基础设施的工具和应用程序接口(API)。libvirt支持多种类型的虚拟化技术,包括KVM、Xen、VirtualBox等,使用户能够在不同的平台上统一管理和操作虚拟机。 ###...
Libvirt是一个功能强大的虚拟化管理工具,它提供了一套统一的API来管理不同类型的虚拟化平台。Libvirt的开发目标是提供一个通用和稳定的抽象层,以便安全地管理节点上的虚拟机,包括可能远程的节点。Libvirt的功能...
在IT行业中,libvirt是一个非常重要的工具,它提供了一个API来管理虚拟化平台,如KVM、Xen、QEMU等。Ruby-libvirt是libvirt的Ruby语言绑定,允许开发者用Ruby编写与libvirt交互的程序。然而,在非Linux操作系统上,...
本文档是一份针对使用Python语言进行libvirt应用程序开发的指南。libvirt是一个开源的API,它提供了对虚拟化技术的管理功能。本文将详细介绍libvirt的应用架构、对象模型、驱动模型以及远程管理等关键知识点。读者...
libvirt作为一款强大的开源虚拟化管理工具,为多种虚拟化平台提供了统一的API接口,让开发者可以方便地进行跨平台的虚拟机管理。本文将围绕libvirt0.9.4版本,深入探讨其关键特性、安装过程以及如何利用它进行虚拟化...
libvirt是一个开源的API、工具集和库,用于管理虚拟化平台,如KVM(Kernel-based Virtual Machine),它允许用户以编程方式创建、管理虚拟机和其他虚拟化资源。 1. **Libvirt基础** Libvirt提供了一个统一的接口,...
本书《Foundations of Libvirt Development》作为2019年的最新作品,主要介绍了Libvirt这一开源API的开发技术。Libvirt是一个广泛应用于管理虚拟化平台的库,它提供了一系列用于虚拟化管理的工具和API接口。通过对这...
`libvirt_vmcfg`是一个针对Python的库,主要用于处理与虚拟化管理相关的配置任务。它允许开发者通过Python接口与libvirt库进行交互,从而实现对虚拟机的配置和管理。`libvirt`本身是一个开源的API,支持多种虚拟化...