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
0
votes
0answers
4 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 ...
0
votes
1answer
19 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" ...
0
votes
0answers
8 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 ...
1
vote
1answer
40 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 ...
0
votes
0answers
27 views

How to use virsh attach-device without knowledge of target dev name

Is there a way to use virsh attach-device without using a target? For example, I attach a disk by using an xml file which includes the target "sdc". <disk type='block' device='disk'> ...
0
votes
1answer
33 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 ...
0
votes
2answers
273 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 ...
0
votes
0answers
13 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.
0
votes
0answers
25 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 ...
0
votes
1answer
21 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?
0
votes
1answer
24 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 ...
2
votes
0answers
135 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 ...
-1
votes
1answer
55 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 ...
0
votes
1answer
196 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 --...
0
votes
1answer
395 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 ...
0
votes
1answer
127 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 ...
1
vote
1answer
87 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 ...
0
votes
1answer
84 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): ...
0
votes
1answer
225 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 ...
0
votes
2answers
85 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 ...
0
votes
1answer
47 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, ...
1
vote
0answers
42 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/...
0
votes
0answers
48 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 ...
0
votes
2answers
210 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 ...
0
votes
0answers
19 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 ...
0
votes
1answer
211 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). ...
1
vote
1answer
95 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 ...
0
votes
0answers
145 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 ...
1
vote
0answers
44 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 ...
0
votes
1answer
72 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 (...
1
vote
0answers
46 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 '...
1
vote
0answers
70 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. ...
0
votes
0answers
14 views

how to limit io with LXC in libvier?

I want to know how to limit lxc io using libvirt? I trid iotune or other ways, but it's not working. <iotune> <total_bytes_sec>10000000</total_bytes_sec> <...
1
vote
1answer
291 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 ...
0
votes
0answers
36 views

Cannot use tftp on a libvirt virtual client

I am running a Centos 8.2 (libvirt) virtual host with a Centos 7.7 client server. <network> <name>default</name> <uuid>312ccbda-b0fa-46c0-b7bd-b403f9ef41cb</uuid> &...
0
votes
0answers
31 views

KVM host crashes after starting application in guest

We ordered a new dedicated server yesterday and I moved some KVM guest machines from the old KVM host to the new server, which will be our new KVM host. The old KVM host is Intel based and the new one ...
0
votes
1answer
277 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 ...
0
votes
1answer
922 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 ...
2
votes
0answers
52 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 ...
0
votes
1answer
54 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 ...
0
votes
1answer
69 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 ...
0
votes
0answers
25 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 ...
0
votes
1answer
691 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 ...
5
votes
2answers
859 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,...
1
vote
0answers
92 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 (...
0
votes
2answers
456 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 ...
0
votes
0answers
130 views

How to backup KVM/QUEMU guests with virsh?

I am running some VMs with libvirt and KVM/QEMU. Now I want to backup them and save the backups into object storage where I can restore them from to another host if the harddrive of my host fails. I ...
1
vote
1answer
66 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, ...
1
vote
0answers
102 views

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

Migrate windows guests from VirtualBox to KVM without re-activation?

The windows check the hardwareuuid of virtualbox VM for activation. Is there a way to use same UUID in KVM to prevent the reactivation?

1
2 3 4 5
12