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
3
votes
1 answer

How to create tap devices using virsh?

This is a snippet from configuration file created using qemu-kvm management tool. How do I create the same config using VMM or virsh? [net] type = "nic" [net] type = "tap" script = "/etc/ovs-ifup" downscript = "/etc/ovs-ifdown"
Bruce
  • 33,927
  • 76
  • 174
  • 262
2
votes
1 answer

kvm balloon driver results in different total-memory then requested

I have ubuntu and installed on it several qemu-kvm guests, running also ubuntu. I'm using libvirt to change the guests' memory allocation. But always encounter a constant difference between the requested memory allocation and the actual memory…
Eyal
  • 8,219
  • 1
  • 13
  • 7
2
votes
1 answer

Download hangs using a Maven repository mirror on a kvm-qemu server

I installed a Maven repository (tested NexusOSS 1.9.1.1 bundle and Artifactory 2.4.2) on a virtual Ubuntu 10.04.3 LTS server hosted on an Ubuntu 10.04.2 LTS server by libvirt 0.7.5-5ubuntu27.16 (using kvm…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
2
votes
0 answers

Virt-manager, GPU passthrough "Preparing host device" freeze

I'm trying to do a macos vm with gpu passthrough with virt-manager, but everytime I run my vm with my GPU, libvirtd totally freeze. If anyone got an idea about this topic, that could be nice :) I followed this tutorial :…
Tropp
  • 23
  • 2
2
votes
1 answer

How to run ESXi on Openstack under a KVM VM

We run Openstack with KVM as hypervisor and now need to run ESXi 6 or 7 inside a VM (nested virtualization). This is mainly for converting disks to proper vmdk disks, not really running any VMs under ESXi (that is why we are not using a barebone and…
Eugen Mayer
  • 8,942
  • 4
  • 33
  • 57
2
votes
1 answer

Making a connection to Qemu using Libvirt Java API

Problem statement: Create a connection to Qemu. Done by the call-conn1 = new Connect("qemu+ssh://login_name@IP/system", false). This is done in one class (connect.java). Create new VMs on the above machine at the IP. Done by the function call…
P R
  • 1,293
  • 7
  • 28
  • 58
2
votes
1 answer

libvirtd.service could not found

when I try to start libvirt using sudo systemctl start libvirtd Failed to start libvirtd.service: Unit libvirtd.service not found. occured. And when i try to apt list to detect is here libvirt apt list | grep libvirt results is…
Leftddr
  • 79
  • 1
  • 7
2
votes
3 answers

virsh shutdown for OpenBSD (libvirt/kvm)

Is it possible to correctly shutdown a openbsd 4.7 or 4.9 with virsh shutdown OpenBSD The openbsd is under kvm/qemu configured from libvirt. shutdown should send an ACPI signal "Power button pressed", but my openbsd guest does not react to…
osgx
  • 90,338
  • 53
  • 357
  • 513
2
votes
1 answer

● libvirtd.service ,Active: inactive (dead), Initialization of QEMU state driver failed: invalid argument: Failed to parse user 'libvirt-qemu'

When I check status of libvirtd using the cmd: sudo systemctl status libvirtd the o/p is as follows: ● libvirtd.service - Virtualization daemon Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) …
2
votes
0 answers

Why is my docker registry refusing connections from VMs in my local network but not the host?

For context - I am attempting to deploy OKD in an air-gapped environment, which requires mirroring an image registry. This private, secured registry is then pulled from by other machines in the network during the installation process. To describe…
Blake Simmons
  • 426
  • 1
  • 8
  • 23
2
votes
1 answer

Starting Codeready Container with libvirt cause "format of backing image was not specified in the image metadata"

I'm trying to use CRC for testing Openshift 4 on my laptop (Ubuntu 20). CRC version 1.17 doesn't support Virtualbox virtualizazion so following the setup…
2
votes
1 answer

virt-aa-helper doesn't add path for storage pool in AppArmor generated rules

I'm having a new VM on a new Ubuntu 20.04 host (libvirtd (libvirt) 6.0.0) that fails to start due to AppArmor denying read access to the VM disk. The disk is defined as follows:
giannoug
  • 643
  • 3
  • 8
  • 20
2
votes
1 answer

Event Callback function called twice for each event in libvirt

newVM is a function that creates new VM. For every guest VM the event callback function is being executed 2 times though the timer callback is executed correctly only one time at every interval. I am not able to figure out the reason for the…
2
votes
0 answers

How to create multiple Vms using terraform libvirt provider?

I just want to know How to create multiple Vms using terraform libvirt provider ? I managed to create one vm , is there a way to do it in one tf file # libvirt.tf # add the provider provider "libvirt" { uri = "qemu:///system" } #create…
Adil Saidi
  • 181
  • 1
  • 1
  • 10
2
votes
0 answers

Docker container on QEMU guest has no LAN-connection

On a Ubuntu 20.04 server I run a Debian 10 as a KVM-guest, connected via a macvtap-bridge. Inside that guest I have a macvlan-bridge, connecting a docker container. For some reason that container does not seem to have any network connection and I'm…
linuzer
  • 31
  • 5