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
5
votes
2 answers

KVM/QEMU network TAP problems with libvirt

I'm trying to use libvirt with virsh to manage my kvm/qemu vms. The problem I have is with getting it to work with public IPs. The server is running ubuntu 8.04. libvirt keeps trying to run it as: /usr/bin/kvm -M pc -m 256 -smp 3 -monitor pty…
Andrew Cholakian
  • 4,392
  • 3
  • 26
  • 27
5
votes
1 answer

Error installing vagrant-libvirt plugin on OS X

I'm encountering the error below when running vagrant plugin install vagrant-libvirt Setup install Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" install in Homebrew brew install --cask…
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
5
votes
1 answer

Cannot instantiate qemu-kvm VM inside WSL2 (Windows Subsystem for Linux 2) on Windows 10

I am currently trying out the Windows Subsystem for Linux v2, on a Windows 10 Fast Ring build (Build 20161). More specifically, I am trying to run a qemu-kvm virtual machine using nested virtualization, but each attempt at creating a new VM using…
5
votes
0 answers

Connecting an iPhone to a libvirt virtual machine running OSX

I have created an OSX Mojave virtual machine and am attempting to pass an iPhone to it, so that I can use XCode. I have tested passing a keyboard through to the guest, and this works fine. However, the iPhone does not. When I use virt-manager to add…
Azelphur
  • 73
  • 7
5
votes
3 answers

Starting virt-viewer with 2 displays

Is it possible to get virt-viewer to start up with 2 displays? Background: we have a linux based retail system that typically runs on terminals with multiple displays. Basically as X starts up we detect how many displays are connected and configure…
Bjorn Rudolfsson
  • 99
  • 1
  • 1
  • 10
5
votes
1 answer

Dynamically remove duplicate log messages

Recently we had a message fill up /var/log/libvirt/qemu/.log in a matter of minutes with a line that repeated that crashed our system due to the root partition being filled (20+ Gigs in minutes). "block I/O error in device 'drive-virtio-disk0':…
ChanceB
  • 75
  • 2
  • 7
5
votes
3 answers

Converting QEMU command line args to libvirt domain xml

I have a hard time converting this QEMU command to a libvirt domain XML: qemu-system-x86_64 -enable-kvm \ -m 3072 \ -cpu core2duo \ -machine q35 \ -smp 2 \ -usbdevice keyboard \ -usbdevice mouse \ -vga std \ -device isa-applesmc,osk="${osx_osk_key}"…
Viktor Benei
  • 3,447
  • 2
  • 28
  • 37
5
votes
1 answer

Programatically run a QEMU VM instance from snapshot

I have a QEMU image with a snapshot stored in it. Right now I'm using libvirt to start it. However, I want to be able to run more than one instance out of the same image/snapshot. I guess I can do that by cloning the virtual-hd and…
Ofir Israel
  • 3,785
  • 2
  • 15
  • 13
5
votes
1 answer

Libvirt Cannot Stop Reboot Force Shutdown or Destroy Guest

The subject pretty much says it all. I am running libvirt (KVM?) on Ubuntu and I have two guests (both ubuntu server) that I cannot access or control. That is, if I view them with virsh or virt-manager, their status is "running". I cannot…
simusid
  • 1,854
  • 3
  • 18
  • 26
4
votes
4 answers

libvirt on Apple Silicon with qemu-system-aarch64

Compiled qemu from this manual Try to run this on Apple Silicon with qemu-system-aarch64, but got an error: Error: internal error: Failed to start QEMU binary /usr/local/bin/qemu-system-aarch64 for probing: qemu-system-aarch64: invalid accelerator…
fish lein
  • 41
  • 1
  • 3
4
votes
3 answers

Setting up PulseAudio in QEMU

I have a Windows 10 Pro virtual machine using KVM. It is set up through virt-manager using the latest version of libvirt and QEMU. All of this is running on Manjaro Linux 20. Manjaro defaults to using PulseAudio for its audio output (at least for…
Revvz
  • 455
  • 1
  • 6
  • 14
4
votes
0 answers

Why libvirt's qcow2 storage file is much larger than the volume itself?

I am on Arch Linux and have a Windows 10 virtual machine which I orignially created with gnome-boxes. I think it uses libvirt. Currently I run it with virsh. I noticed that the disk image representing a 40G volume for my Windows machine is 93G. …
mehdix
  • 4,984
  • 1
  • 28
  • 36
4
votes
1 answer

Install Ubuntu 16.04 with libvirt and kickstart

I'm currently trying to set up a VM the issue I'm having referencing this question when I try and start this vm it doesn't work with the kickstart def makeKvm(name, conn): xmldesc = """ """ + name + """
nadermx
  • 2,596
  • 7
  • 31
  • 66
4
votes
2 answers

How to boot up from CDROM(ISO image) to install the guest OS using virsh

UPDATE on Oct. 4th, 2017: See my answer below. The credit goes to DanielB as I wouldn't have solved the problem without Daniel's help, so I'll accept his answer instead of my own. I'm a novice in libvirt as well as system administration so excuse…
yaobin
  • 2,436
  • 5
  • 33
  • 54
4
votes
1 answer

Remove libvirt's dhcp lease entry using virsh

Using: $ virsh version Compiled against library: libvirt 1.3.1 Using library: libvirt 1.3.1 Using API: QEMU 1.3.1 Running hypervisor: QEMU 2.5.0 $ $ $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: …
Amir Keibi
  • 1,991
  • 28
  • 45
1 2
3
37 38