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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
456 views

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 ...
user avatar
  • 11
0 votes
0 answers
62 views

RHEL 7 in Hyper-V with Proper NAT Configuration Issues

I have a RHEL7 VM running on Hyper-V. In my VM, I have a web-based program the I need to access over port 11000. In the VM, the software is configured and is accessible by https://0.0.0.0:11000. I'...
user avatar
1 vote
0 answers
45 views

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 ...
user avatar
0 votes
0 answers
41 views

Can I achieve this VirtualBox network configuration using libvirt?

I asked a similar question here but I messed up logging in with my SE account and so I can't edit it. Here is what I would specifically like to achieve with libvirt under the "Internal Network&...
user avatar
0 votes
0 answers
451 views

Why is net-dhcp-leases coming up empty in VIRSH?

From the following command virsh net-edit default, I see: <network> <name>default</name> <uuid>7a106327-942a-40e7-a977-018b5323832a</uuid> <forward mode='nat'/&...
user avatar
0 votes
0 answers
29 views

How to attach a system-defined libvirt’s network to a VM run as a regular user (not sudo) using Cockpit?

I want to use cockpit-machines to run VMs but: -I don’t want my Cockpit’s logged, regular user to be able to escalate privileges -I want these VMs to be attached to a virtual bridged network, which is ...
user avatar
  • 135
0 votes
0 answers
111 views

VLAN QEMU Hypervisor bridge without host ip

I'm using debian 10 with kvm/qemu as hypervisor. You can ignore the bond... I created X VLAN Tagged and created a bridge on that tagged vlan. auto bond0 iface bond0 inet manual slaves eno1 ...
user avatar
  • 69
0 votes
1 answer
210 views

netplan + libvirt - Should I set up virbr0 virtual bridge?

As far as I understand, the interfaces virbr0 and virbr0-nic are created and managed by libvirt. ● 4: virbr0 Link File: /lib/systemd/network/99-default.link Network File: n/a ...
user avatar
4 votes
2 answers
3k views

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" ...
user avatar
0 votes
0 answers
19 views

Virt Block device resizing [duplicate]

I am attempting to expand the size of a virtual disk on an existing image. I was successful to expand the virtual hard disk and partition thanks to this guide, but noticed my virtual disk was still ...
user avatar
1 vote
1 answer
353 views

Wildcard CNAME record specified by libvirts dnsmasq:options namespace doesn't work, only specific subdomains works

Since v5.6.0, libvirt added a dnsmasq namespace with the element, which allows to specify options directly to the underlying dnsmasq server. I'd like to create a wildcard DNS entry for my applications ...
user avatar
  • 496
0 votes
1 answer
90 views

I want to increase the KVM root file system from 60GB to 160 GB

The KVM image file 3.1GB in the file system on the hypervisor. The file systems are only showing up at 60 GB with df -kh total space. I want to increase the KVM volume space to 120 GB. I tried 'virsh ...
user avatar
0 votes
2 answers
808 views

virsh reporting unknown feature amd-sev-es

I updated my centos and I can no longer start any VM. It says: error: failed to get emulator capabilities error: internal error: unknown feature amd-sev-es But I'm using a Intel CPU (E5-2678v3) so it ...
user avatar
0 votes
0 answers
15 views

How to write custom SNMP scripts?

I want to send data across SNMP such as VM lv paths, VM disk IO, and VM CPU & memory usage. I've been unable to find proper resources for sending the information I need. Any help is appreciated.
user avatar
0 votes
0 answers
94 views

How can I send vm info over snmp?

I have a script I'm using on Fedora 34 to gather basic info about VMs running on a machine such as CPU cores, memory, drive path & size, and disk IO. How can I send this information over snmp ...
user avatar
0 votes
1 answer
36 views

Libvirt/KVM support for partiitoned memory

Does KVM/Libvirt support partitioned memory? Is it possible to make sure that two VMs do not have memory-mapping that overlaps?
user avatar
  • 101
0 votes
1 answer
122 views

Use network bridge as default network in libvirt

I created a network bridge virtbr0 with my NIC enp1s0f1. The bridge gets an ip address from the router via dhcp. i would like to use the bridge as default network in libvirt to also get ip addresses ...
user avatar
3 votes
0 answers
1k views

how to allow outgoing traffic with firewalld / libvirt on CentOS 8?

I installed a CentOS 8 guest on a CentOS 8 host using libvirt. However firewalld is blocking all outgoing traffic from the guest to the internet unless I use target=ACCEPT for the libvirt zone. The ...
user avatar
-1 votes
1 answer
322 views

Disable libvirt storage pools

It seems every time I create a VM with virt-install a new storage pool is created. But I don't use storage pools at all! I looked in the virt-install manual but could find a way to prevent this from ...
user avatar
  • 285
0 votes
1 answer
1k views

virt-install error to create instance in qemu-kvm

OS: Debian 10.4 libvirtd version: 5.0.0 Hello! I need to create a instance in qemu-kvm. With this command: virt-install --connect qemu:///system --virt-type kvm --name test01 --ram=2048 --vcpus=2 --...
user avatar
  • 13
1 vote
1 answer
4k views

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 ...
user avatar
  • 509
0 votes
1 answer
478 views

Libvirt raises permission denied when QEMU is accessing the VM on an external hard drive

I wanted to use an external hard drive as a libvirt storage pool for my VMs. I defined a new pool in /media/wenzel/OSWatcher/vms, and imported my vm win10-ts1-1507.qcow2 there. However, when starting ...
user avatar
  • 1
1 vote
1 answer
1k views

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 ...
user avatar
0 votes
1 answer
259 views

Getting error “libosinfo: Unexpected file type (0)” when trying to create or open VM in virt-manager

I get the following error when clicking “Open” or “Create a new virtual machine” in virt-manager: Error launching details: libosinfo: Unexpected file type (0) Traceback (most recent call last): ...
user avatar
  • 274
1 vote
1 answer
911 views

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 ...
user avatar
  • 131
0 votes
2 answers
461 views

KVM hosts to be accessible from outside world for server purpose In centos 7

Today i just ran into a problem i just wanted to ask a question to all of you I have just install kvm in my system and i have some how managed to get a node installed and working in the system Now ...
user avatar
  • 63
0 votes
1 answer
50 views

Tracking down usage of libvirt

I'm familiarizing myself with a server that a previous (no longer available) system admin had set up. He had set up CentOS 7 with a variety of packages. One of those packages seems to be libvirtd, ...
user avatar
  • 113
1 vote
0 answers
152 views

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/...
user avatar
0 votes
0 answers
157 views

Libvirt VM Networking fails to start up after upgrading host from Ubuntu 18.04 to 20.04

I upgraded a server from 18.04 to 20.04. I am using libvirt/kvm to host a number of VMs. Some of the VMs failed to reconnect to the network after the upgrade. Two VMs in question run Ubuntu 18.04 and ...
user avatar
  • 153
0 votes
2 answers
792 views

How to control start and stop of libvirtd and virtlockd in pacemaker cluster?

Using indirect locks of virtlockd (which is used by libvirtd) requires to use a cluster-wide shared filesystem like OCFS2. In turn this means that virtlockd must be started after the shared filesystem ...
user avatar
  • 276
0 votes
0 answers
93 views

Old KVM Guest not starting after reboot

I have a bunch of Virtual Machines in a Ubuntu 18 Guest machine. Until recently they have all been working without any problem. However after I restartet one of the Guests(also Ubuntu) it is now not ...
user avatar
  • 1
0 votes
1 answer
1k views

QEMU / KVM - Dedicated 802.1q VLAN for each VM - Communication only via router

I have a Linux firewall router (dedicated machine) with multiple ethN interfaces (my "big firewall"). All forwarded traffic is filtered by a set of iptables rules (default policy DROP). ...
user avatar
  • 153
1 vote
1 answer
224 views

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 ...
user avatar
  • 4,433
1 vote
1 answer
777 views

How to enable nested virtualization in order to use VirtualBox inside of a KVM virtual machine?

We have a KVM hypervisor (L0, AMD, Kernel: Linux level0kvmhypervisor 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux), which runs a virtual machine that I would like to use as a ...
user avatar
  • 5,239
1 vote
0 answers
55 views

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 ...
user avatar
0 votes
1 answer
357 views

Ubuntu KVM - Bridge - Isolate Host from NIC

I have a Ubuntu Server with 4 physical NICs. 2 of them, i want to "hide" from the Host, so the host itself may not access traffic on those 2 nics, just the VM where i pass them into (...
user avatar
1 vote
1 answer
107 views

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 '...
user avatar
1 vote
0 answers
162 views

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. ...
user avatar
  • 11
1 vote
1 answer
1k views

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 ...
user avatar
1 vote
1 answer
984 views

error : virPidFileAcquirePath:422 : Failed to acquire pid file '/run/user/1000/libvirt/libvirtd.pid': Resource temporarily unavailable

Anyone have any ideas how to fix this? It looks like the computer is telling me libvirt has no VM to connect to. I could be off the mark there. I am starting to play with vitrd. I am thinking of ...
user avatar
1 vote
1 answer
3k views

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 ...
user avatar
  • 123
2 votes
0 answers
224 views

How to diagnose and fix issues causing libvirt guests to become unbootable after many reboot cycles?

I have encountered a couple of times that a previously functioning Guest simply starts freezing on boot. (I have now reverted my VM to a previous working snapshot, so I cannot directly start up the ...
user avatar
0 votes
1 answer
166 views

libvirt: virtual drives gone after snapshot - VM still running

Edit: see solution to my problem below in Update2. After playing around with some backup script i have the following situation virsh domblklist polar-bear ...
user avatar
  • 1
0 votes
1 answer
238 views

No IP address for Ubuntu VM constructed on VirtualBox and imported to libvirt/qemu/kvm

I'm trying to install an Ubuntu 18.04 VM created on VirtualBox (not sure which host platform) and exported as a VMDK to libvirt/qemu/KVM under RHEL 7.8. It seems to import and start up OK, but I ...
user avatar
  • 101
0 votes
0 answers
41 views

Virtual Machine Manager - Make VM believe its running on physical machine

I use Fedora and i have a Windows 10 VM which i want to make believe its running on Hardware, physically, without it knowing its a VM. How can i do this? Background: I try to get WSL2+HyperV running ...
user avatar
1 vote
1 answer
2k views

Error when starting vm on the qemu/kvm network: Failed to write pid file

Libvirt has stopped working altogether on any VM (windows or linux) on the qemu/kvm networt and has the following error each time I try to start something: error: internal error: Failed to start QEMU ...
user avatar
  • 121
5 votes
2 answers
1k views

Why doesn't libvirt cooperate with iptables on fedora 32

I'm trying to use pretty much the default installation of libvirt / kvm on Fedora 32. After installing libvirt, I'm trying to start up the default network: virsh net-start default. But for some reason,...
user avatar
  • 1,254
1 vote
0 answers
209 views

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

the pty console: <console type='pty'> <target type='virtio' /> <alias name='console1'/> </console> no output when I exec the command virsh ttyconsole vm_name the log (...
user avatar
0 votes
2 answers
1k views

Why does my ethernet interface not get added to my openvswitch bridge on startup, with debian 10.5?

I am setting up a kvm/qemu/libvirt host (debian buster 10.5) with two ethernet interfaces: eno1 for the host traffic and eno2 for the VM traffic. eno2 is connected to a trunk switch port carrying the ...
user avatar
1 vote
1 answer
203 views

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, ...
user avatar
  • 433

1
2
3 4 5
13