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

Why libvirt bhyve guests does not reboot?

I have libvirt with bhyve driver on FreeBSD 12. I have FreeBSD guests and Linux guests with UEFI. Both are not able to reboot, just stops when a reboot command issued inside the guest.
Artiom
  • 41
  • 3
0
votes
1 answer

libvirt hot unplug cpu

I'm currently working with libvirt. after i reduce the number of vcpu cores with below command, the operation will be completed successfully. i should also mention that my current and max vcpus is 4, before this command. virsh setvcpus…
nima
  • 3
  • 2
0
votes
1 answer

virsh: networkGetBridgeName error

I'm trying to configure foreman. So far I connected foreman to one of our KVM hosts. Specifically, this is a libvirt and we are using virsh for managing it. When I try to create VM in foreman I'm getting the following error: 2019-08-26…
Artur
  • 3
  • 2
0
votes
2 answers

libvirt Port Forwarding? (Wiki Guide Non-functional)

I have setup a hook at /etc/libvirt/hooks/qemu with permissions of 755 owned by 0:0 with the following contents: #!/bin/bash if [ "${1}" = "virtualmachine" ]; then GUEST_IP=192.168.122.2 GUEST_PORT=1234 HOST_PORT=1234 if [ "${2}" =…
gudenau
  • 131
  • 4
0
votes
0 answers

KVM - Modify from IDE to VirtIO

I imported a CentOS 7 guest from XenServer to KVM. After importing it into KVM the disk bus in use is the IDE. I need to change the disk bus from IDE to VirtIO because VirtIO has better performance. I have seen many forums... No solution so far...…
Eduardo Lucio
  • 269
  • 4
  • 14
0
votes
1 answer

Preloading shared library with libVirt

I am trying to load two shared libraries while running Qemu using libvirt. To preload the shared libraries I have added an environment variable in the $domain.xml file with the following command: virt-xml generic --edit --confirm --qemu-commandline…
Proy
  • 103
  • 4
0
votes
1 answer

libvirt: create a bridged network using openvswitch with dhcp enabled

I am trying to use libvirt + dsnmasq + openvswitch to create a bridged network with dhcp enabled. I created a libvirt network with the following XML: ovs-net
mooroj
  • 3
  • 3
0
votes
1 answer

It is possible to be informed that libvirt is attempting to shut down a guest?

Is it possible through some hook or callback mechanism for my script or executable running on the host to learn that libvirt is about to or very recently has sent a command for a guest to shut itself down? I'm not trying to catch the case that the…
bland328
  • 191
  • 2
  • 6
0
votes
1 answer

Does libvirt's "shares" element take into account the number of vCPUs?

According to the libvirt documentation: A VM configured with value 2048 will get twice as much CPU time as a VM configured with value 1024. I have also heard it said that a VM with 2 vCPUs would have twice as much CPU time as a VM with one vCPU.…
Jared Brandt
  • 391
  • 2
  • 7
0
votes
1 answer

KVM Host halts for several seconds. How can I monitor and find the cause using libvirtd/virsh?

I have a KVM Host with 4 vms running 24/7h. All VMs runs smoothly but at a given time, all 4 VMs stops to ping and after 10 minutes, it continues to run. I knew that they are not pinging because I have a script that pings them on every 10 minutes in…
Josir
  • 141
  • 6
0
votes
1 answer

(libvirt + oVirt) Migrating libvirt server to oVirt

I have two centOS 7 servers using the same network. One with libvirt, with some machines connected on it, and another one with oVIRT 4.2. I'd like to export the libvirt machines to the oVirst 4.2 server. I'm trying to achieve this by pointing the…
0
votes
0 answers

Libvirt: Port-forward from guest to guest

TL;DR: I want to access port 443 at the host IP address from within a VM on the same host, and have my request forwarded to a different VM on the same host. I am using Libvirt to manage some VMs running on QEMU/KVM on a Debian 9 host. I have used…
wispi
  • 101
0
votes
1 answer

Expired DHCP lease on restored VM snapshot interfering with active gRPC connection?

I am using gRPC to communicate between Java (running on the host) and Python (running on my Guest VMs). My software sets up some VMs at startup with libvirt. I specify my network with a DHCP range like this: ...
BluesSolo
  • 133
  • 1
  • 6
0
votes
0 answers

Configuring virtual network bridging through virsh

When working with libvirt to create virtual machines, I had to make guest system work in the local network as host machine does. As it was work task, I've just googled for quick solution and set it up, but I'd like to understand, how it works under…
0
votes
0 answers

virt-install choice of graphics affects whether or not installed guest will boot after install

Please let me know if I am doing something incorrectly or if this is a bug. Host OS: Debian 9.6 Stretch amd64 Package: ii libvirt-daemon 3.0.0-4+deb9u3 amd64 Virtualization daemon ii …