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

Setting Static IP for Management Network in Vagrant libvirt provider

With below code, I can set the custom management network for guests, it works and sets vagrant management network ip addresses for the machines in defined network from DHCP pool. But I need to set specific ip adress for a specific machine, not from…
edib
  • 812
  • 1
  • 11
  • 20
2
votes
2 answers

libvirt: how to prevent "accel=kvm"

First, some background: I suppose I've found a bug with KVM, at least on my system. When I try to install Windows XP via virt-manager, the installer aborts/reboots. But if I run a raw qemu-system-i386 command (see below), it succeeds. From looking…
jwd
  • 10,837
  • 3
  • 43
  • 67
2
votes
1 answer

virsh restore with modified xml "Error: xml modification unsupported"

I'm trying to restore an a Xen VM (domain) from state file which I create previously. At the restore I need to modify the XML of this VM with the following command: virsh restore domU.state --xml newconfig.xml This command triggers an error with…
Damien
  • 37
  • 6
2
votes
1 answer

How can I cache a downloaded ISO with Terraform?

Is there a way I can cache an ISO being downloaded? Right now if I terraform destroy, and terraform apply it'll once again download the ISO. I'm using the libvirt provider and the related resource is: resource "libvirt_volume" "ubuntu-qcow3" { …
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
2
votes
1 answer

cloud-init: Unable to render networking

I'm trying to deploy a 'Fedora-AtomicHost-29-20190219' image (qcow2) using 'NoCloud' to provide userdata, hostname and network settings (non dhcp). Configuring Userdata and hostname succeeds configuring network fails. The log tells my provided data…
kstieger
  • 133
  • 1
  • 5
2
votes
0 answers

Can't access internet from Vagrant libvirt VM

So, I setup a Vagrant libvirt VM, but I can't access internet using it. I can reach google.com from the host but not from the guest. /home/vagrant# ping www.google.com PING www.google.com (64.233.177.105) 56(84) bytes of data. ^C --- www.google.com…
Pensu
  • 3,263
  • 10
  • 46
  • 71
2
votes
4 answers

Android JNA UnsatisfiedLinkError: Native library (com/sun/jna/xxx/libjnidispatch.so) not found

Hey I am trying to set up a android studio project with JNA and libvirt java bindings. This is what the project structure looks like so far. however the solution did not work for me This is being tested not he emulator so far and the arm binaries…
Maclaren
  • 259
  • 3
  • 13
2
votes
0 answers

configure: error: openwsman is required for the Hyper-V driver

I am trying to install libvirt-3.5.0 on my ubuntu machine. When I tried to configure libvirt with hyperv, xen and esxi driver using the following command: ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-esx=yes --with-xen=yes…
M. P
  • 35
  • 2
  • 9
2
votes
1 answer

libvirt Apparmor permission denied when accessing qemu socket

I was trying to use ivshmem device of qemu, after running the server, I can succesfully create a vm with command: sudo qemu-system-x86_64 -m 1024 -hda testvm01.img -enable-kvm \ -device ivshmem-doorbell,vectors=1,chardev=ivshmem \ -chardev…
NoobieG
  • 83
  • 1
  • 6
2
votes
4 answers

how could "virsh snapshot-list" with description

virsh snapshot-create-as win7 snap01 --description "something here" How could I list snapshots list with the description ?
mrco
  • 1,995
  • 1
  • 10
  • 7
2
votes
1 answer

libvirt "Permission denied" after creating backingfile

I've created a VM with wirt-manager, installed Win10 with a iso on start up. Couple of reboots, Installed software. All fine. creating an overlay, starting from the overlay. all fine. Creating second overlay on top. "Permission denied" on the…
Cutton Eye
  • 3,207
  • 3
  • 20
  • 39
2
votes
1 answer

How to use custom tap with libvirt?

i need help about one issue that i cannot understand. I have some virtual machines that runs on an embedded device, i create dynamically one vm and after i start this one for load some parameters inside that. The network take an ip from dhcp server…
angelo93
  • 31
  • 1
  • 4
2
votes
0 answers

Libvirt storage volume info error after migrating

While writing code that automatically chooses and migrates virtual machines using python 3.5 and libvirt. I got it working one way, but returning a guest to it's previous host fails (as of now I only have 2 hosts, but it should change in the…
techniblob
  • 21
  • 1
2
votes
2 answers

Using custom qemu binary with libvirt fails?

I have a locally built qemu. I am using libvirt python API to defineXML. I get the error: libvirt: error : internal error: Child process (LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin …
Deepti
  • 113
  • 1
  • 2
  • 9
2
votes
0 answers

Openstack PCI passthrough interface name error in Libvirt

I want to start an instance on openstack pike with SRIOV enabled NICs. However, I am getting a Libvirt error regarding the node name. The error looks weird as the node name is not matching the interface name on the host machine or in the…
user3240356
  • 115
  • 1
  • 5