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
39
votes
12 answers

virt-manager guest resize not working

Installed virt-manager, target virtual machine is debian jessie with spice-vdagent installed shared clipboard, and latency-free mouse input works Display: Spice Video: QXL Channel spice: spicevmc, virtio, com.redhat.spice.0 (confirmed /dev devices…
ThorSummoner
  • 16,657
  • 15
  • 135
  • 147
22
votes
3 answers

What does "cpu_time" represent exactly in libvirt?

I can pull the following CPU values from libvirt: virsh domstats vm1 --cpu-total Domain: 'vm1' cpu.time=6173016809079111 cpu.user=26714880000000 cpu.system=248540680000000 virsh cpu-stats vm1 --total Total: cpu_time …
JoeM
  • 221
  • 2
  • 3
18
votes
1 answer

What is the difference between QEMU, KVM, Libvirt, and how to use with Vagrant? Are all 3 needed to work together?

I've used Vagrant with Virtualbox before but VB is not working on this computer so I thought I would try a different approach, but I can't quite make sense of this cluster of software, what their uses are individually and interdependently... I know…
user163831
  • 1,031
  • 3
  • 13
  • 25
18
votes
5 answers

libvirt: fetch ipv4 address from guest

I am looking for a solution to fetch the ipv4 address or other metadata of a VM running on qemu/kvm with libvirt? I've also looked into ovirt guest agent and qemu guest agent, but I was wondering if there's a better/easier way to fetch this…
Jochen
  • 1,853
  • 3
  • 20
  • 28
16
votes
1 answer

virsh list command not showing any domain

I am running Ubuntu 12.04 on a VM on Fedora 18 host using QEMU/KVM and libvirtd. Now, when I fire up the virsh and give list command, it doesn't show any domain running, though my VM is running quite fine. Any idea what am I doing wrong?
Pensu
  • 3,263
  • 10
  • 46
  • 71
14
votes
2 answers

How to set boot order on KVM (libvirt/virsh)?

How would you set the boot order on KVM when using libvirt/virsh? (Either via config or command)
Bravo Delta
  • 842
  • 2
  • 10
  • 24
13
votes
2 answers

`vagrant up` times out at "Waiting for domain to get an IP address..."

This appears to only happen when I'm using the generic/arch box. I've tried several ubuntu boxes and everything works fine. Host OS is Manjaro. It's freezing with output: INFO interface: info: ==> default: Waiting for domain to get an IP address...…
Eric Ihli
  • 1,722
  • 18
  • 30
13
votes
2 answers

why is virtio-scsi much slower than virtio-blk in my experiment (over and ceph rbd image)?

Hi I recently did a experiment of virtio-scsi over rbd through qemu target (for its DISCARD/TRIM support), and compared the throughput and iops with that of a virtio-blk over rbd setup on the same machine, using fio in the guest. Turnout the…
Zhaohui Yang
  • 173
  • 1
  • 1
  • 7
12
votes
4 answers

How to get VNC port number using libvirt?

I set autoport=yes in a domain's("virtual machine" in libvirt) config file so the VNC port is assigned automatically in the run time. I need to get this port so I can connect to the vm from outside, but I can't find the proper API to do so. Better…
can.
  • 2,098
  • 8
  • 29
  • 42
11
votes
3 answers

Does libvirt support clone qcow2 with copy on write

The format qcow2 support copy-on-write.detail about qcow2 is here. Does libvirt suport clone qcow2 VM Image with copy-on-write. I find none options about: virt-clone
hellolwq
  • 531
  • 3
  • 7
  • 18
9
votes
1 answer

Create multiple VMs based on single image

I would like to use libvirt to run multiple Domains (VMs) based on the same image at once. The image itself should not be modified. The image should be considered as a starting point or template. An obvious possibility would be to create a…
JojOatXGME
  • 3,023
  • 2
  • 25
  • 41
9
votes
3 answers

libvirt and VirtualBox / Getting Started

I'm trying to get started on libvirt with VirtualBox as a virtualization solution. I installed everything and VirtualBox itself is running when using their VBoxHeadless command. However, libvirt fails to connect to VirtualBox: # virsh -c…
Marc Lucas
  • 91
  • 1
  • 1
  • 3
8
votes
1 answer

go install github.com/dmacvicar/terraform-provider-libvirt@latest - shows error

I am trying to Provision VMs on KVM with Terraform. one of the steps in installations is to download and install the provider buy the command: go install github.com/dmacvicar/terraform-provider-libvirt@latest but it errors: The go.mod file for the…
Orly Orly
  • 367
  • 5
  • 16
8
votes
0 answers

Is it possible to run an ARM64 vagrant instance on the x86_64 host

I'm trying to run an ARM64 Ubuntu VM on an x86_64 host with vagrant for development purposes. I searched the vagrant box on their website only found this one:…
xiaogw
  • 653
  • 8
  • 18
8
votes
1 answer

what is the argument cpumaps and maplen in api virDomainGetVcpus of libvirt

I am trying to get the information of vcpus running on my machine and for the same I am using libvirt. I am not able to understand how to use the api virDomainGetVcpus which has arguments cpumaps and maplen. I am using C. Please let me know if…
Walt Whitman
  • 113
  • 1
  • 2
  • 7
1
2 3
37 38