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

How to restore libvirt network default configure file?

I accidently deleted the /etc/libvirt/qemu/networks/default.xml. How to restore it? Thanks.
Joe Lu
  • 551
  • 2
  • 7
  • 14
3
votes
2 answers

How to add the VLAN information using virt-install to VM xml file?

I'm trying to automate virtual machine creation but I'm having troubles adding the VLAN tag to the xml file via virt-install. sudo virt-install --name hosp10 --memory 16384 --vcpus 4 \ --disk…
3
votes
0 answers

OpenStack Live Migration

During live migration, the destination Compute Node has to perform some 'pre live migration' tasks, among them is the tap creation at the destination OVS. I would like to know if once Nova creates such tap interface, is the port/tap status UP?. This…
3
votes
1 answer

Unable to add Raspbian image to Vagrant-libvirt Virtual machine

Am trying to create a virtual machine for Raspbian using Vagrant-libvirt plugin. However I failed find out how to add '2017-09-07-raspbian-stretch-lite.img' image. Am able to boot the image using qemu. qemu-system-arm -kernel…
Arky
  • 380
  • 1
  • 4
  • 15
3
votes
1 answer

KVM/libvirt: How to disable clock sync for guests?

is there any possibility to completely disable the clock synchronization for a guest virtual machine? The VM is disconnected from the network but retrieves the current time from the KVM host. After deleting the line: from the…
user3586330
  • 63
  • 1
  • 4
3
votes
1 answer

virsh - difference between pool-define-as and pool-create-as

Not sure if this is the right forum. libvirt page linked here. If this needs to be posted at a different place plaease let me know. What is the difference between virsh pool-define-as and create-as? Reading the man page for virsh, it seems you…
thegrind
  • 35
  • 1
  • 6
3
votes
1 answer

Setup private networking between two hosts and two VMs with libvirt / openvswitch

I have two nodes and two VM's kvm01 -nic1 123.123.123.1 VM1 -vnet1 123.123.123.2 (public) -vnet2 10.0.0.1 (private) kvm02 -nic1 123.123.123.2 VM2 -vnet1 123.123.123.4 (public) -vnet2 10.0.0.2 (private) How is it possible to setup an openvswitch…
Charlie
  • 33
  • 1
  • 5
3
votes
1 answer

libvirt iptables rules disrupt port forwarding to my KVM VM's

When I clear IPtables and then add the following rules, incoming connections can connect to my KVM VM on port 1234 without any problems. -A PREROUTING -i br0 -p tcp -m tcp --dport 1234 -j DNAT --to-destination 192.168.122.194:1234 -A FORWARD -d…
user1862165
  • 119
  • 1
  • 8
3
votes
1 answer

KVM, OVS, bridged network. How to configure?

I'm completely new to KVM and bridging and need your help. I have a remote server with QEMU/KVM and only SSH connection is available to me. Host OS is RHEL 7. Guests must be connected to bridge(ovs), they see each other and don't have access outside…
Den
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

How to enable QEMU-Monitor Console in Virtual Machine Manager?

I use Virtual Machine Manager to run several Guest OSs with QEMU-KVM. I read it somewhere that by inputting ctrl+alt+2 should pop up monitor console. It is not working or disabled. Is there any way I can turn it on? What I am trying to do is to…
Atrh
  • 195
  • 1
  • 3
  • 16
3
votes
1 answer

How can I access a VM console from the command line of another machine

I have a VMWare vSphere 5.5 Hypervisor with a RHEL VM running on it. From my understanding of the documentation at http://libvirt.org/drvesx.html, I believe I should be able to interact fully with the VM using libvirt, via virsh. However, after…
Andrew Stubbs
  • 4,322
  • 3
  • 29
  • 48
3
votes
1 answer

Windows time drifting with Qemu/KVM

I have a Windows VM running with kvm/qemu which is experiencing time drift. What would be the optimal libvirt settings for a Windows guest? Currently I am using this, but it did not help:
Jochen
  • 1,853
  • 3
  • 20
  • 28
3
votes
1 answer

Why do I get a permissions error when starting a KVM VM with a TAP interface?

1st Post, thanks for the community. Apologies if it is better suited in another forum I am running Ubuntu 12.04 LTS Server as my host. /etc/libvirt# kvm --version QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard I…
user3023044
  • 31
  • 1
  • 3
3
votes
1 answer

Libvirt + Android emulator

Is it possible to manage the Android Emulator with libvirt? And if possible, how? Thanks, Adam
Kompi
  • 484
  • 4
  • 18
3
votes
1 answer

Libvirt event for disk change is not being registered by DomainEventRegisterAny()

I am writing an application which would monitor the changes on the domain on the KVM hypervisor through libvirt events. Recently I have upgraded my libvirt from 9.4 to 9.10 and I have this issue. While de-registering for…