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
1
vote
0 answers

How to configure a hypervisor such that a KVM/QEMU virtual machine can reach hosts connected to the same trunk bridge?

1 Problem My goal is that all LAN traffic is routed through a virtual machine (VM) acting as a router and firewall. Other VMs on the same hypervisor should also be routed through the firewall VM. See the following network sketch. Physical hosts…
1
vote
0 answers

How to ensure that the changes in domain XML spec in libvirt takes effect?

I followed this host port forward with qemu through libvirt in user-mode networking answer to accomplish a certain task but it was only after a reboot that the ports were actually accessible. I tried restarting the domain but it did not work. What…
1
vote
1 answer

Not able to start virtual machine/domain in KVM: Failed to get "write" lock

After host's restart, I'm not able to start virtual machine: user@server-1:~$ virsh start docker-1 error: Failed to start domain docker-1 error: internal error: process exited while connecting to monitor: 2021-03-23T01:21:58.149079Z…
laimison
  • 579
  • 2
  • 9
  • 17
1
vote
1 answer

Why is my docker registry refusing connections from VMs in my local network but not the host?

For context - I am attempting to deploy OKD in an air-gapped environment, which requires mirroring an image registry. This private, secured registry is then pulled from by other machines in the network during the installation process. To describe…
1
vote
1 answer

libvirt Windows 10 VM issue

I am running Manjaro KDE and I have managed to setup a Windows 10 VM with GPU passthrough for Windows things and it was working great until I noticed a weird behavior. When I try to reboot the VM, or even randomly (I left it on over night and in the…
lucian
  • 131
  • 1
  • 7
1
vote
0 answers

error: internal error: Child process /sbin/parted - unexpected exit status 1: Error: You requested a partition from

# fdisk -l /dev/sdb Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type:…
Viacheslav
  • 111
  • 2
1
vote
1 answer

Raw LVM disk write is four times faster on host than inside KVM guest?

I've got a Debian 10.6 Host, with a Debian 10.6 guest. KVM/Qemu/libvirt. The host has a software RAID 10 array with 6 mechanical disks. LVM is on top of the RAID array. One LV is passed into the guest using:
Nick
  • 4,503
  • 29
  • 69
  • 97
1
vote
0 answers

Can't see docker ports from external machines when using a veth interface with an OPNSense KVM

Quick summary of the setup: Ubuntu Server 20.04 with 4 network ports OPNsense router running in libvirt KVM One port is WAN, three ports are LAN (bridged) Router works great Server (same one running OPNsense) gets access to LAN and internet by VETH…
colordrops
  • 11
  • 2
1
vote
1 answer

How to change Libvirt Job type from 'Cancelled' to 'None'?

After I abort a live migrate, the Job type has changed to 'Cancelled', which makes me unable to migrate again. So,If some libvirt api (or QMP) can help me to change the Job type from 'Cancelled' to 'None'. # virsh domjobabort DOMAIN # virsh…
1
vote
0 answers

Connect two bridges only works in one direction

I have a Centos8 host with libvirt (KVM) and podman (1.6) installed. libvirt brought a bridge called "virbr0" and guests will be attached to with an address from range 192.168.122.0/24. virbr0 itself has 192.168.122.1. Guests can talk to each other,…
praha
  • 11
  • 1
1
vote
1 answer

Libvirt guest hostnames DNS resolution from host and guests

I have set up multiple virtual machines with libvirt and kvm on Ubuntu server 20.04, which work just as expected. The only thing I cannot figure out at this point is how to make their hostnames resolvable between the guests and from the host, at the…
1
vote
1 answer

Is my KVM VM thin provisioned?

I was reading another post here Use Thin LVM Volume for KVM VM trying to understand whether or not KVM is capable of creating thin provisioned VMs. The post from about 8 months ago has both the OP and responder mentioning not supported to thin…
Gary
  • 123
  • 1
  • 4
1
vote
0 answers

Virsh Console Can't Access to rhel VM (a pty console, instead of serial console)

the pty console: no output when I exec the command virsh ttyconsole vm_name the log (/var/log/libvirt/qemu/vm_name.log) : char device redirected to…
1
vote
1 answer

Correctly installing / configuring locally built qemu / libvirt

On Ubuntu 18.04, the default installation of qemu is something like version 3, and I needed virtiofs which has built-in support in later versions. So I uninstalled the qemu and related packages, downloaded the qemu 5.0 sources and complied it…
dsl101
  • 433
  • 1
  • 8
  • 14
1
vote
0 answers

Libvirt VM using twice it's memory

Running on Ubuntu server, a CentOS 7 VM is eating the memory : Host: # free -m total used free shared buff/cache available Mem: 80140 71676 5346 7 3117 7655 Swap: …