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

Single result of Virt-Top

Is it possible to get one single result of the current stats from virt-top? I´ve tried to use the --stream parameter but with that I get a new result every second. I only need one result every execute of the command. How can I reach that?
WhiteIntel
  • 697
  • 1
  • 9
  • 24
0
votes
1 answer

Live migration (kvm) not working if any I/O operation is in progress

I did this experiment: on VM I started watching a video on youtube. While video was in progress I started migration. Migration did not complete until video was not finished. I did another experiment: I installed a web server on VM. I then started an…
Phate
  • 6,066
  • 15
  • 73
  • 138
0
votes
1 answer

c program security_getenforce() not found

I am trying to gcc my library with another static library and I get this error while runtime undefined symbol: security_getenforce I am thinking this is related to selinux, not sure though... how do I resolve this? Thanks, Vik.
waka-waka-waka
  • 1,025
  • 3
  • 14
  • 30
0
votes
1 answer

opennebula libvirt live migration failire

From the sunstone GUI I tried performing a live migration from luther to blackout but the migration failed. Kindly see below excerpt from oned.log. Thanks for assistance and leads in advance. Wed Feb 12 13:15:34 2014 [VMM][I]: Successfully execute…
0
votes
1 answer

is NOT recognized

In order to make my vm use the openvswitch interface I have to add the following lines to a vm xml config file: I edit the file, anyway while the first line is corrctly saved, the second one is not. It simply disappears, so I think the virtualport…
Phate
  • 6,066
  • 15
  • 73
  • 138
0
votes
1 answer

libvirt live migrate error, cannot open file

I want to use live migration for a vps guest from one host to another. I use KVM with raw disk format for vps guests. Here's the command: virsh migrate --live guest09 qemu+ssh://123.45.6.78/system But I receive an error message error: cannot open…
Purres
  • 1,271
  • 2
  • 11
  • 12
0
votes
1 answer

How to configure a new host and virtual machine on opennebula?

We're using OpenNebula to simulate a simple replicated JBoss application. We've installed all opennebula packages, qemu and kvm and libvirt. We have created a simple ethernet network ad hoc between my pc (a node) and the one of my friend (which is…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
0
votes
1 answer

KVM Guest Memory, Cpu status required

I am trying to figure out that how Virt-manager (libvirt) finds the CPU performance. Actually i am trying a script to check the CPU and Memory usage status of the GUEST so that i can reach to a LOAD Balancing decision. PS Please ignore the LOAD…
anuj pradhan
  • 2,777
  • 4
  • 26
  • 31
0
votes
1 answer

Interface between python tty/terminos and a browser terminal emulator

There is a python programm named consolecallback using tty and terminos. And there are browser terminal emulators like this: JQueryTerminal GateOne ShellInABox. How would I get the consolecallback programm working with one of this terminal emulators…
eye
  • 450
  • 1
  • 4
  • 14
0
votes
1 answer

Difference between in libvirt domain xml and file based storage volumes

What are the differences between using filesystem tag in domain xml and using a file based storage volume ? A directory on the host can be shared via the filesystem tag in domain xml and also as a storage pool via the 'dir' type. Is there any…
plasmixs
  • 156
  • 5
0
votes
1 answer

Libvirt Domain.InterfaceStats network io i/o always zero

Hello,I use function "Domain.InterfaceStats" to get network i/o statistics,but always get things like these:vif1.0 rx_bytes 0 vif1.0 rx_packets 0 vif1.0 rx_errs 0 vif1.0 rx_drop 0 vif1.0 tx_bytes 0 vif1.0 tx_packets 0 vif1.0 tx_errs 0 vif1.0…
Jack Green
  • 31
  • 4
0
votes
1 answer

VLAN configuration using openvswitch

I am working on a project where we create multiple vms on a host machine. There are multiple hosts of this kind. These hosts are connected to a single LAN and the VMs are created using KVM. Qemu and libvirt are used alongwith. There is a requirement…
Nisha Goyal
  • 37
  • 3
  • 10
0
votes
1 answer

How to set vcpupin in guest xml

I am working with openstack and I want to pin vcpus to pcpus in guest xml. Now, the pinning operation can be done using virsh vcpupin guestname vcpu pcpu But I want to do it using python API. I investigated the openstack code and found out that…
Pensu
  • 3,263
  • 10
  • 46
  • 71
0
votes
1 answer

How to set cpuset.cpus dynamically?

I have been trying to run a VM on some particular cpu cores. Now the thing is I can set cpuset with virt-install and that will reflect in VM's XML and it will define the affinity. But what about cpuset.cpus? That is inherited directly from the…
Pensu
  • 3,263
  • 10
  • 46
  • 71
0
votes
1 answer

Not able to set cpuset atribute to vcpu element in instance xml

In relation to this patch, I have not been able to use it. I mean, as it has been merged so it is there in my code, but I am not sure how to enable/use it? This particular patch adds cpuset attribute to the vcpu element of the instance's xml file. I…
Pensu
  • 3,263
  • 10
  • 46
  • 71