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.

610 questions
4
votes
5 answers

libvirtError that domain already exists, but virsh list doesn't show it

When I try to launch an instance with OpenStack, I get the following error in nova-compute.log: (nova.rpc): TRACE: libvirtError: operation failed: domain 'instance-0000000a' already exists with uuid 5f81a7d2-1b0f-8c72-4e1e-377c275e9289 However,…
Lorin Hochstein
  • 4,868
  • 15
  • 54
  • 72
4
votes
1 answer

How to increase video memory in libvirt/KVM gui?

In the 'Virtual Hardware details', it lists the model as 'cirrus' with 9MB of RAM. The RAM field cannot be changed, but how to increate the video RAM? My host OS is RH6 and gust OS is Fedora16. EDIT: From guest OS, when I run xvinfo it displays 'no…
Dejan
  • 248
  • 1
  • 2
  • 12
4
votes
2 answers

upstart pre-stop script

I have libvirt/KVM set up on my Ubuntu and before shutting down the machine I would like it to attempt shutting down the VM's using an ACPI poweroff (virsh shutdown), then I want it to stop shutdown for at least 60 seconds to give the VM's a chance…
X-Istence
  • 752
  • 1
  • 8
  • 18
4
votes
1 answer

virt-convert OVF to KVM

I use a Red Hat Enterprise Virtualization system and need to get a VM off the system an onto a standalone box running KVM. Red Hat don't seem to support a way to do this, but commented that the latest virt-convert should do it. I tried copying…
user62545
  • 73
  • 1
  • 3
  • 5
4
votes
4 answers

Monitoring and statistics through libvirt

Is it possible to monitor and gather statistics in realtime (CPU, memory, HDD, network, ... - something like dstat) of guest systems with libvirt through console from host system (KVM based)? If yes, do those guests need to be created through…
yojimbo87
  • 672
  • 5
  • 10
  • 21
4
votes
1 answer

How to convert a raw disk image to a copy-on-write image based on another image for use with kvm and virt-manager?

I have a virtual Windows machine running on kvm. Presently it has a 90GB raw disk image. I would like to clone this VM without having to keep two copies of the 90GB raw disk image around. It seems like a good approach for doing this is to make two…
Jean-Paul Calderone
  • 352
  • 1
  • 4
  • 14
4
votes
2 answers

Redirecting USB device to a virtual machine with virt-manager does not work

I have a Fedora workstation running an Ubuntu 16.04 virtual machine (KVM hypervisor). I'd like to redirect a USB device to the VM, but when selecting "Virtual Machine | Redirect USB device" from virt-manager, I get the following…
Romain Deterre
  • 161
  • 1
  • 6
4
votes
1 answer

Where are libvirt "saved states/snapshots" stored?

I have a .qcow2 image, and I can port it easily to a different computer. But I'd also like to port its saved state. Where are they stored? I'm on Manjaro/Arch.
Adrian Lopez
  • 181
  • 6
4
votes
3 answers

Libvirt has no KVM capabilities even though qemu-kvm works

I've learned that CirrusCI offers nested virtualization in their free package for public repos and I am trying to make use of it for testing my Ansible playbooks. Unfortunately, libvirt is insisting that CI environment has no support for full…
SIO
  • 143
  • 1
  • 1
  • 4
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

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,440
  • 10
  • 72
  • 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
  • 302
  • 7
  • 20
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
  • 557
  • 2
  • 6
  • 14