Questions tagged [libvirt]

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

650 questions
3
votes
1 answer

Libvirt pool cannot see or create rbd clones

While trying to get a cloned disk running from my OS snapshot I run into the problem that Libvirt cannot see existing images cloned from a snapshot. Created via: $ rbd -p vmdisks clone vmdisks/coreos_2023@base vmdisks/coreos00.disk The base image…
lhw
  • 141
  • 6
3
votes
1 answer

qemu process memory usage greater than guest memory usage

I have a physical machine with 24 GB RAM hosting a few VMs using libvirt-qemu. When creating VMs, I assign a lot of memory and no swap, so that the total of assigned memory can be greater than the physical memory on the host, and the swap is managed…
Jérôme
  • 615
  • 2
  • 8
  • 19
3
votes
1 answer

libvirtd kvm networking on Centos5.4

I've got KVM installed on CentOS 5.4, and am attempting to set up a virtual network to allow each VM to communicate with services on the host, namely DHCP to allow PXE boot installations. I'm having some serious problems getting the network to work…
Tom O'Connor
  • 27,480
  • 10
  • 73
  • 148
3
votes
2 answers

Disable or change port of dnsmasq service in libvirt

I'm using libvirt to manage my VMs, but I don't need the dnsmasq DNS server that gets automatically started with the service as it conflicts with my acme-dns setup. Is there a way to change disable the DNS server completely and use dnsmasq only for…
TheEdgeOfRage
  • 158
  • 1
  • 6
3
votes
2 answers

Libvirt networking: Set default gateway for guest VMs via DHCP

Is it possible to set a default gateway for the guest VMs via DHCP in libvirt? I have the following config
BluesSolo
  • 133
  • 1
  • 6
3
votes
1 answer

kvm/libvirt backup: how to ensure a consistent fs during online blockcommit?

I want to create online backups of a KVM Windows 10 virtual machine that is managed by libvirt. I have the qemu agent setup in the guest. If found this wiki entry that suggests the following: 1. create an offline snapshot $ virsh snapshot-create-as…
muffel
  • 342
  • 7
  • 21
3
votes
0 answers

Delayed start for Guests KVM/libvirt

Looking for any pointers anyone may have to introduce a delayed start for KVM guests i.e. 30 seconds between starting each virtual server rather than starting them all at once which thrashes the disks and actually just ends up taking a lot longer to…
Backtogeek
  • 577
  • 2
  • 6
  • 14
3
votes
2 answers

Permission denied error when launching instance ("Could not open backing file")

Working with OpenStack, installed from packages available on Debian testing (buster). When I try to launch an instance, it fails after building with this message in nova-compute.log: Could not open backing file: Could not open…
d3query
  • 61
  • 1
  • 6
3
votes
0 answers

How to provision DRBD to libvirt storage pool?

I want to expose DRBD replicated storage (2 nodes Active/Passive) to libvirt as a storage pool for qcow2 files. However, I have the following error message: virsh pool-create-as qcow2 --type=logical --target=/dev/drbd1 error: Failed to create pool…
Alexander
  • 131
  • 3
3
votes
3 answers

Cpu pinning strategy for kvm / centos7

I am migrating from Xen to Kvm. In Xen I was able to easily pin host cpus to guest vms, and also to pin host cpus to the "dom0" . In Kvm I can also easily pin host cpus to guests vms, but, as far as I can I see, nothing prevents application running…
Olivier S
  • 2,739
  • 1
  • 14
  • 14
3
votes
1 answer

centos libvert vm network can't get IP address

I have a host machine running centos 6.2 and it has 2 VM's using libvirt. I had it all working, but then I had a power outage and now the host has connectivity, but the VM's cant get an IP when they come up and have no network connectivity. I am…
3
votes
2 answers

Is there a way (non network-based) to share host (ubuntu) file system with guest (centos 7) using libvirt?

I am trying to use virsh and domain xml to launch a Centos 7 guest from ubuntu 16.04 LTS host. The "filesystem" node that i am using in domain xml is as below:
Swaru
  • 31
  • 2
3
votes
0 answers

Libvirt LXC leaked processes

I'm trying to run several lxc containers on an ubuntu 16.04 server. (libvirt version is 1.3.1). The nature of my team's use of these containers means that they are constantly booting and then being destroyed, and we manage this lifecycle using the…
SwampDragons
  • 111
  • 1
  • 5
3
votes
0 answers

OpenVSwitch with Libvirt

Here's my situation: I'm running CentOS 7 with Openvswitch and Libvirt/Qemu. My domains are configured to use the virtualport type openvswitch, so when I start a VM it creates a port in the ovs bridge. Nothing too complicated. My problem is if I…
user165222
  • 125
  • 3
  • 9
3
votes
1 answer

Why do I need restart a VM after restarted a bridge to get network working?

I have a VM with an interface on a bridge(e.g. br0). After restarting the bridge(bring down, bring up) VM doesn't see the network and I must do "power cycle"(shutdown and then power on) to get VM see the network. Why it is happening and why reboot…
Disova
  • 53
  • 8