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
4
votes
0 answers

virtualbox to qemu but results in no bootable device qemu

I use vagrant to create my development vm. I exported the vmdk to vdi, and then convert the vdi to img. cd virtualbox_dir/test_vm VBoxManage clonehd test_vm.vmdk raw.vdi 0% ..... 100% qemu-img convert raw.vdi raw.img virsh create testvm.xml But I…
Daniel Huger
  • 223
  • 4
  • 10
4
votes
1 answer

Libvirt: Can't shutdown or reboot virtual guest

I can't reboot or shutdown the guest vm from the host machine virsh -c qemu:///system reboot vm1 Domain vm1 is being rebooted After executing this, nothing happens. The guest vm keeps working. Could anyone help? I'm using CentOS 6.3, libvirtd, kvm.…
facha
  • 1,368
  • 2
  • 18
  • 26
4
votes
1 answer

virt-manager can't open the display

My virt-manager was working just fine and all of a sudden stopped working, throwing in error: RuntimeError: could not open display root@rakcal ~]# echo $DISPLAY localhost:10.0 [root@rakcal ~]# virt-manager Traceback (most recent call last): File…
MacUsers
  • 469
  • 2
  • 7
  • 13
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
  • 5,028
  • 15
  • 56
  • 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…
Ura
  • 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
  • 12
  • 22
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
  • 362
  • 1
  • 4
  • 14
4
votes
3 answers

virsh autostart not working

root@virtual3:~# virsh autostart nstest Domain nstest marked as autostarted root@virtual3:~# virsh dominfo nstest Id: - Name: nstest UUID: 8cf691cd-7246-442b-a26b-3580e24600c5 OS Type: hvm State: …
David
  • 71
  • 2
  • 4
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
  • 191
  • 8
4
votes
1 answer

libvirt NAT configuration - DHCP does not work

I want to use libvirt network NAT configuration. libvirt says https://wiki.libvirt.org/page/Virtual_network_%22default%22_has_not_been_started: "1) If you're not actually using dnsmasq on the physical machine to serve DHCP for the physical network,…
achille
  • 41
  • 1
  • 3
3
votes
1 answer

Migrating from libvirt + iptables to libvirt + nftables

I'm about to migrate a Debian Stretch host using qemu-kvm to Debian Buster. I've seen people complaining on the Internet about issues due to nftables becoming default in place of iptables and libvirt using iptables rules. Rules automatically written…
Jérôme
  • 615
  • 2
  • 8
  • 19
3
votes
3 answers

Can't port forward with iptables KVM NAT

I have a debian 10 host and I am running a debian 10 guest using NAT. I am using libvirt/KVM/QEMU host public ip: x.x.x.x guest ip: 192.168.122.99 I am trying to forward port 22221 to port 22 in the guest for me to access the guest via ssh from the…