Questions tagged [libvirt]

libvirt is an open source API, daemon and management tool for managing platform virtualization.[1] It can be used to manage Linux KVM, Xen, VMware ESX,qemu and other virtualization technologies. These APIs are widely used in Orchestration Layer for Hypervisors in the development of a cloud based solution.

The virtualization API

libvirt is:

  • A toolkit to interact with the virtualization capabilities of recent versions of Linux (and other OSes), see our project goals for details.
  • Free software available under the GNU Lesser General Public License.
  • A long term stable C API
  • A set of bindings for common languages
  • A CIM provider for the DMTF virtualization schema
  • A QMF agent for the AMQP/QPid messaging system

libvirt supports:

  • The KVM/QEMU Linux hypervisor
  • The Xen hypervisor on Linux and Solaris hosts.
  • The LXC Linux container system
  • The OpenVZ Linux container system
  • The User Mode Linux paravirtualized kernel
  • The VirtualBox hypervisor
  • The VMware ESX and GSX hypervisors
  • The VMware Workstation and Player hypervisors
  • The Microsoft Hyper-V hypervisor
  • Virtual networks using bridging, NAT, VEPA and VN-LINK.
  • Storage on IDE/SCSI/USB disks, FibreChannel, LVM, iSCSI, NFS and filesystems

libvirt provides:

  • Remote management using TLS encryption and x509 certificates
  • Remote management authenticating with Kerberos and SASL
  • Local access control using PolicyKit
  • Zero-conf discovery using Avahi multicast-DNS
  • Management of virtual machines, virtual networks and storage
  • Portable client API for Linux, Solaris and Windows

More infos:

556 questions
1
vote
2 answers

libvirt java bindings. Cannot modify devices

i'm planning to use libvirt to control some KVMs over the network. So far, tha connection is working. I establish a connection with the following code Connect conn = null; try { ConnectAuth ca = new ConnectAuthDefault(); …
Chris
  • 697
  • 4
  • 17
1
vote
1 answer

Possible to call virConnectDomainXMLToNative in libvirt-python?

I need to be able to export the domain's XML configs to XEN config format under libvirt using libvirt-python. Apparently to make that call, you use the following in C: virConnectDomainXMLToNative Reads a domain XML configuration document, and…
Rilindo
  • 1,756
  • 1
  • 11
  • 20
1
vote
2 answers

Java client with libvirt on Windows

I am writing a Java based client that would be executed from Windows that will use libvirt. Got libvirt-java (http://libvirt.org/sources/java/libvirt-java-0.4.7.tar.gz) and build a jar out it (Ant with no params) Then, according to…
Sergey
  • 978
  • 2
  • 11
  • 33
1
vote
1 answer

Libvirt Java Binding- Use of listDomains() for Xen

I'm using the following program: public class minitest { public static void main(String[] args) { Connect conn=null; try{ int i; conn = new Connect("xen:///", true); int[] id = conn.listDomains(); int…
P R
  • 1,293
  • 7
  • 28
  • 58
1
vote
1 answer

Plugin in Java for Monitoring VIrtual machines running on Libvirt

I need a plugin to monitor the following: CPU, network and disk statistics Virtual machines CPU based on libvirt Generate graphs for both above options Open remote connection to other machines and do the same. on my SWING based application. All…
P R
  • 1,293
  • 7
  • 28
  • 58
1
vote
0 answers

Manage KVM VMs with Python like VBoxmanagement

I have a VM which run under KVM, and I want to manage them with Python to do some functions like Send a file to the guest VM Execute a process or program in the guest VM Dump a memory file used by the guest VM How do I do that? P.S.: I tried…
1
vote
0 answers

How do I upload qcow2 images to libvirt storage using the API and keep compression?

Using the libvirt-python module, I tried creating the volume with XML using the information provided from the output of qemu-img info. Then I upload using a stream. This works and the disk is functional, but libvirt allocates the physical size equal…
dcode
  • 33
  • 7
1
vote
1 answer

How can I automate domain xml update / verification?

I want to automate the process of backups for Domains on an libvirt based Hypervisor. To gain the ability of incremental backups the »Domain XML« needs to contain: the top level qemu namespace declartion attribute and the qemu:capabilities /…
philipp
  • 15,947
  • 15
  • 61
  • 106
1
vote
1 answer

openstack using hugepages for instance

I am tring to config openstack and libvirt to use hugepages for instance, here is my config: GRUB vim /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g'…
Jim
  • 767
  • 1
  • 10
  • 24
1
vote
1 answer

Golang libvirt guest-agent not available

I've tried to communicate with the guest agent on a qemu instance through the libvirt golang API. However, it always reject my connections with 2022-12-02T00:10:43.799+0100 DPANIC test/main.go:335 Failed to connect to guest {"error":…
1
vote
2 answers

Installing ruby gems ruby-libvirt, vagrant-libvirt, fog-libvirt… failure missing « libvirt » library

When trying to install ruby gems to enable libvirt management for vagrant, the installation fails with a undocumented message « it depends on a library which is not currently installed : libvirt ». Libvirt is working, I am able to compile manually «…
1
vote
0 answers

error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvirtd

Dears, i'm facing an issue with libvirtd process in with virtualization packages, the command "libvirtd" is always having the below error: libvirtd 2022-11-14 15:00:53.981+0000: 315583: info : libvirt version: 3.2.0, package: 14.el7_4.7 (Red Hat,…
Hamid
  • 11
  • 1
1
vote
0 answers

How to memory map address space on host from KVM/QEMU guest

I have an embedded application running on a Xilinx ZynqMp SoC. The application running on the PS (processor) memory maps the PL (FPGA) of the SoC over an AXI bus via /dev/mem at some base physical address. I would like to run this application in a…
mitch
  • 21
  • 1
1
vote
0 answers

Modifying parent internal snapshot in QCOW2

Spent some time trying to cope with next problem I faced. I'm using internal QCOW2 snapshots for my VM and it has next tree: parent | +- child1 | +- child2 which was gotten by taking parent snapshot making some changes in it and taking…
5he1n
  • 11
  • 4
1
vote
1 answer

virsh domifaddr does not show KVM IPs

I created a virtual machine on my centos server machine by using the virt-manager. While the installation, I have set a static IP address on the KVM. When I tried to get the IP address of KVM from my centos server terminal by using virsh domifaddr…
Ryanh
  • 11
  • 1