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

How to create an external snapshot with virsh snapshot-create-as...?

When I try to create a snapshot with virsh snapshot-create-as one-217 snap_base "desc" --diskspec vda,file=/var/lib/one/datastores/1/2aae91bd6c04fa2db0849bc0db1342ba --disk-only --atomic There is an error occurred. error: unsupported configuration:…
Wendy
  • 73
  • 2
  • 15
0
votes
2 answers

libvirt with xen server

I want to use libvirt with Xen-Server (not Xen-project). When I invoke the command 'virsh', I get the following error : virsh error: unable to connect to 'localhost:8000': Connection refused error: failed to connect to the hypervisor There is no …
Manoj Hirway
  • 131
  • 1
  • 7
0
votes
1 answer

installing libvirt in a virtual machine

I want to install a basic architecture of OpenSatck using VirtualBox (3 VM nodes: controller, network and compute). I wanted to install libvirt within the compute VM but the KVM virtualization is not supported inside the VM as this command does not…
Bellaoui
  • 1
  • 1
0
votes
1 answer

XEN: How to change domU-persistence?

I have several running Xen-domUs, now I want to manage them using libvirt / virsh and noticed they all are defined as transient VMs. Can I somehow change them to be persistent?
iso
  • 1
  • 3
0
votes
0 answers

Connect to Hyper-V 2008 R2 using libvirt

I'm trying to connect to a Hyper-V 2008 R2 server using gem ruby-libvirt. I keep getting the following error : Call to virConnectOpenAuth failed: internal error: Transport error during enumeration: Could not connect (7)…
0
votes
1 answer

libvirt access file inside VM from host

Is it possible to use libvirt to access files inside VM from host machine? anyone has idea? thanks for help!
cshuo
  • 55
  • 1
  • 7
0
votes
0 answers

how to get process infos running on a vm from host machine

I want get info about a process inside a virtual machine from the host machine, is there any methods in libvirt to implement this? any help is appreciated!
cshuo
  • 55
  • 1
  • 7
0
votes
1 answer

libvirt-python missing methods

libvirt-python version 1.2.9 (latest version on pypi) is missing methods when compiled against libvirt 1.2.10 from brew. After opening a connections, the only methods the connection object implements are close, virConnGetLastError and…
omribahumi
  • 2,011
  • 1
  • 17
  • 19
0
votes
1 answer

How to set params for libvirt python api setBlockIoTune?

I need set kvm virtual machine's disk IoTune by using python libvirt. After searching, i found a method "setBlockIoTune" at libvirt.py, it just call c api virDomainSetBlockIoTune, int virDomainSetInterfaceParameters (virDomainPtr domain, …
JiaJie999
  • 118
  • 1
  • 8
0
votes
1 answer

libvirt-php receives the error: unable to connect to server Permission denied

I have installed php-libvirt as well as all required packages (I tried the remi rpm and compiling). I have setup my php file as follows:
user4287915
  • 366
  • 2
  • 11
0
votes
0 answers

Pkg-config file is on the pkg-config path but can not be found by configure script

I am trying to install libvirt from source. The version I am trying to install is 1.2.7. I want libssh2 enabled. Here is how I call the configure script: ./configure --prefix=/home/administrator/dev/workspaces/libvirt/built/libvirt-1.2.7/ …
egelev
  • 1,175
  • 2
  • 11
  • 27
0
votes
1 answer

How to reboot domain(virtual machine) after shutdown it using php-libvirt

How to reboot domain(virtual machine) after shutdown it using php-libvirt: Am new to PHP livbvirt. and i successfully listed the all domains in server. and get resource of particular domain and call the shutdown function. $res =…
GvSubhu
  • 1
  • 2
0
votes
1 answer

Get CPU usage of VM without using SSH (KVM)

Is there any way to get the cpu usage and memory usage of a vm in KVM without connecting to the guest through SSH? I mean, how does the Virtual Machine Manager get the CPU usage (graph)? I need the percentage of the cpu usage and memory as well.…
user3752288
  • 11
  • 1
  • 4
0
votes
1 answer

Cannot Change the Flovour size of VM using libvirt

I am trying to resize a VM instance(change flavor) on one of the nodes, which is upon OpenStack KVM Hypervisor. I need to resize the instance without rebooting it. I did not find any commands which would resize the instance without rebooting.…
0
votes
1 answer

Building libvirt-java under Ubuntu

I want to build libvirt java under Ubuntu 13.10, I have both OpenJDK and Oracle JDK 1.7 but I get the following error: $ ant build Buildfile: /home/mustafa/libvirt-java/libvirt-java-0.5.1/build.xml init: [copy] Copying 1 file to…
Mustafa
  • 10,013
  • 10
  • 70
  • 116