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

virt-viewer XDG_RUNTIME_DIR

Good day, I am attempting to spin up a VM using KVM by using an image I have been provided with. I am able to successfully create the VM but the proble is that I am unable to access its console. I connected remotely to my server (ubuntu 14.04) using…
2
votes
0 answers

Install libvirt plugin on vagrant version >= 1.8.1 on Windows PC

I ran into a problem installing libvirt plugin at vagrant version 1.8.1 using the following command: vagrant plugin install --verbose vagrant-libvirt This is the output I get: Installing the 'vagrant-libvirt' plugin. This can take a few …
Maximilian
  • 1,325
  • 2
  • 14
  • 35
2
votes
1 answer

How to build libvirt box from scratch

I'm trying to build vagrant libvirt box from scratch. I insttalled ubuntu 14.04 and used this tutorial to prepare machine for vagrant using and then I used command virsh domblklist test to find my image file, so i find it here…
GALIAF95
  • 619
  • 1
  • 10
  • 25
2
votes
1 answer

SLES12-Libvirt: virsh vol-delete fails when deleting disk image: cannot unlink file 'XXX': Permission denied

Description of problem: On SLES-12 machine, if we try to delete the disk image through virsh vol-delete command immediately for vm which is provisioned through virt-manager, getting cannot unlink file 'XXX': Permission denied" error. This error…
2
votes
0 answers

vagrant up on Vagrantfile with multiple hosts launches all vms on one host

I have a Vagrant file that I want to use to launch 3 VMs on three separate hosts. If I run vagrant up master vagrant up slave1 vagrant up slave2 things work as expected; I get my three VMs running on three different hosts. However, if I just…
ajp619
  • 670
  • 7
  • 11
2
votes
1 answer

libvirt error when trying to 'hot' attach-disk on guest with "Channel qemu-ga"

I have KVM virtual machine running CentOS 7 as guest OS. I'm trying to attach an additional disk to it on the run (without shutting it down) using this command: $ sudo virsh attach-disk centos --source /var/lib/libvirt/images/newdisk.img --target…
Fatherice
  • 31
  • 4
2
votes
2 answers

How to Change Vagrant Default Network Range?

I am using vagrant with Ubuntu 14.04 and libvirt/KVM. When I create VM, Vagrant add default NIC(management network) in range 192.168.121.0/24. I don't want to use this network range. Yes, we can modify/delete after VM up but, I want to know if any…
user5402
  • 33
  • 5
2
votes
4 answers

No keyboard input to VM condoles via VNC connection to virt-manager (Debian Jessie/KDE)

I'm attempting to provision and manage VM hosts remotely via a VNC connection to a server hosting libvirt and its associated KVM/QEMU hypervisor mechanisms. All keyboard and mouse functionality WORKS when consoling locally to the individual…
k1d
  • 21
  • 1
  • 3
2
votes
1 answer

htop reports 100% cpu steal time, top reports 0% after virsh restore

After a virsh save + restore from file, htop reports ~100% cpu steal time (st), while top reports ~100% idle time. May this be a bug in htop? Are there any fixes available, or is this simply some strange qemu/kvm behavior? Debian 8, Linux…
Michael Krupp
  • 2,042
  • 3
  • 19
  • 36
2
votes
1 answer

virt-install script in crontab how to control tty

I have a script that creates a virtual machine using virt-install. This script uses a kickstart file for unattended installation. It works perfectly fine when triggered through shell but its throws the following error when triggered through…
Kashif
  • 357
  • 1
  • 3
  • 13
2
votes
4 answers

NFS Vagrant on Fedora 22

I'm trying to run Vagrant using libvirt as my provider. Using rsync is unbearable since I'm working with a huge shared directory, but vagrant does succeed when the nfs setting is commented out and the standard rsync config is…
iridian
  • 669
  • 5
  • 13
2
votes
1 answer

How to get memory stats of guests on KVM hosts

I am trying to get memory stats of KVM system using libvirt (usage, free). The GetCPUStats gives the CPU usage correctly, but the memory usage is always shown as 100% for the guests. Is there any way to get memory stats for the VM on a KVM using…
ajeet0112
  • 21
  • 1
  • 3
2
votes
2 answers

How to reset password of openstack instance using KVM and libvirt?

I'm using Openstack with KVM and libvirt. when I try to reset instance password with nova api, I received error 501 not Implemented! How can I change instance password?
Farzad
  • 21
  • 1
  • 3
2
votes
1 answer

Getting the KVM VM domain name in a C program using libvirt API

I'm writing a C program and I'd like to get the KVM VM's domain name. Is there an easy way to do that? I have the VM id of the machine and can get a pointer to the virDomainInfo struct. I know I can do it with the command, virsh domname , but…
user2743
  • 1,423
  • 3
  • 22
  • 34
2
votes
1 answer

Why dart.io and the like can only be used in command line apps?

I want to use libvirt api from dart program. Here is the doc https://www.dartlang.org/articles/native-extensions-for-standalone-dart-vm/. But i find it's only usable in dart command line app, so is dart.io. I am not familiar with web app, i wonder…
apporc
  • 870
  • 3
  • 11
  • 23