Questions tagged [libvirt]
daemon and clients to manage virtual machines and containers
406 questions
3
votes
1
answer
218
views
How to fix a libvirt network setup error
I am creating a new QEMU/KVM virtual machine using libvirt CLI in Debian Linux.
According the tutorial, I must activate the default network using the following command:
sudo virsh net-start default
...
0
votes
0
answers
34
views
Why can't VMM find the IP address of bridged VMs?
I'm just trying to understand why Virtual Machine Manager (VMM) is not able to know the IP Address of a VM(a.k.a. Domain) when the VM has it's Network Source as a bridge device. In the screenshot I ...
0
votes
0
answers
24
views
Impossible to set up shared clipboard on vms handled created with Vagrant
I am trying to automate the deployment of a cybersecurity lab. My goal is to have a repeatable process to create a Debian-based with all my tools and configs.
To this extent, I recently discovered ...
1
vote
2
answers
87
views
FreeBSD guest not reporting RAM usage in virt-manager with QEMU/KVM
I got two FreeBSD VMs (Latest production version, 14.3) working with my setup of Linux VMs separated by each service, all the Linux VMs report the RAM usage correctly but for some reason the FreeBSD ...
0
votes
0
answers
66
views
libvirt: "Error starting domain: internal error: failed to parse JSON: nesting too deep"
I'm on Fedora Linux 42.20250824.0 (Sway Atomic), running libvirt version 11.0.0, qemu-img version 9.2.4 (qemu-9.2.4-1.fc42) and virt-manager version 5.0.0, all installed as layered packages.
Using ...
2
votes
3
answers
1k
views
Virtual Machine Manager: Unable to connect to libvirt qemu:///system. Verify that an appropriate libvirt daemon is running
I just found an app on Discover Store (Flatpak) that is called "Virtual Machine Manager". So I've downloaded it, because I want to try and make a Windows 11 VM with it.
But as soon as I go ...
2
votes
1
answer
119
views
having trouble detecting user (qemu:///session) VMs from root account
I am trying to write a bash script that detects if there are any running VMs and performs a set of actions only when no VMs are running.
The system in question has several virtual machines (all from ...
1
vote
0
answers
92
views
VFIO single GPU passthrough - AMD-Vi: Completion-Wait loop timed out
I am trying to pass gpu to vm with libvirt following guides:
https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Setting_up_an_OVMF-based_guest_virtual_machine
https://github.com/joeknock90/...
1
vote
0
answers
211
views
KVM/QEMU libvirt Network "default" NAT Configuration - Guest cannot connect to Internet (no VPN)
KVM/QEMU libvirt Network "default" NAT Configuration - Guest can connect to host and the host to guest but the guest cannot connect to Internet(no VPN).
$ sudo virsh net-list --all
Name ...
1
vote
1
answer
54
views
forward *.vm dns requests from local dnsmasq to libvirt's dnsmasq
I have a custom dnsmasq instance running locally as my main dns provider and I want to forward *.vm requests to libvirt's instance of dnsmasq, but there's something wrong with my local network ...
1
vote
0
answers
56
views
mount errors of /dev/vda when running virt-install with --inject-initrd option
I'm trying to automate installation of a debian machine with a preseed configuration file and despite a few hiccups here and there it seems to work. I am confused though why adding --inject-initrd ...
0
votes
0
answers
25
views
Unable to create libvirt domain - persmission denied reading OS .iso [duplicate]
When attempting to create a libvirt domain off a debian iso file using virt-manager, it fails with Could not open '/home/laur/Downloads/debian.iso': Permission denied error.
The file has read access ...
2
votes
1
answer
275
views
libvirt kvm virtual routed network: cannot ping gateway itself or beyond
I'm having trouble with libvirt kvm's routed networks where a VM inside a routed virtual network can ping every VM in my home subnet except the default gateway... or any gateway for that matter.
I ...
0
votes
0
answers
394
views
Screen Tearing on virt-manager with QEMU/KVM on NVidia GPUS with 3D Acceleration
I managed to get my NVidia GPU (RTX 3070) working with 3D acceleration in virt-manager. I had to make a user QEMU/KVM session as there's some bug not causing it to not work in the system/root session. ...
0
votes
0
answers
34
views
No internet connection on both Host & Guest machines
I'm having trouble understanding why my host and guest machines don't have internet connections. I'm using NAT in virt-manager.
When I am not connected to Wi-Fi
user@user ~> ip route
169.254.0.0/16 ...
2
votes
1
answer
193
views
How do I prevent a VM created in Virt-manager from accessing my microphone?
My host is Arch Linux and I'm using virt-manager to run VMs. I noticed it had access to my microphone when Cortana started listening to me after a Windows guest install.
I've looked through all the ...
0
votes
0
answers
191
views
No network when running virtual machines via qemu in Arch host
I've installed qemu and virt manager on Arch but keep getting errors when installing virtual machines:
There is no virtbr0 when running ip addr show when I first start my system, running virsh net-...
0
votes
1
answer
492
views
"Permission Denied" when trying to use an externally launched virtiofsd with libvirt on Ubuntu LTS 24.04
On Ubuntu LTS 24.04 Server, with a libvirt-managed QEMU virtual machine, I'm trying to use a externally-launched virtiofsd as documented in the libvirt docs, because I need to enable features, such as ...
1
vote
0
answers
72
views
virt-manager / QEMU prevents screensaver from starting
I'm on Linux Mint 21. When I run virtual machine via virt-manager/QEMU, the screensaver does not start even when I don't do any keyboard/mouse activity (when its screen is active application on top of ...
0
votes
2
answers
36
views
Solaris 10: after go from IDE to SATA a "ghost disk" appear
I run Solaris 10 in Qemu vm on Linux host.
All works fine (sata, usb, etc..)
I ran on IDE because on some old version of libvirt/qemu Solaris 10 gave a lot of error (ioapic timeout and similar) if ...
1
vote
0
answers
313
views
Unable to complete install: 'unsupported configuration: System lacks NETNS support'
I'm trying to bring up a NAT virtual network, but it errors saying "Unable to complete install: 'unsupported configuration: System lacks NETNS support'"
1
vote
0
answers
182
views
How to connect to libvirt guest sshd over SLIRP?
When invoking virt-install with --network user the result is a VM (or domain in libvirt parlance) that is created in the default hypervisor, i.e. in qemu:///session with SLIRP networking configured.
...
0
votes
0
answers
336
views
Issue with SSH Port Forwarding in GNOME Boxes Based on Previous Solution
I recently followed the steps outlined in this answer to enable SSH port forwarding in GNOME Boxes. However, after applying the modifications, I encountered an issue when trying to SSH into the guest.
...
1
vote
2
answers
1k
views
Unexplained X11 crash with QXL video in kvm/virt-manager under load
I am experiencing a consistent issue with Linux VMs accessed via virt-manager. These VMs, running various versions of Fedora Linux with the Mate desktop environment, crash when the QXL video driver is ...
0
votes
2
answers
146
views
Host: Manjaro, Guest: Artix Linux, Issue: No virtio internet/NAT connection on VM
Like the title says, for whatever reason my VM no longer connects to the host/internet.
An e1000e connection does work.
So the problem seems to be with virtio?
On host:
ip a
...
4: virbr0: <...
0
votes
1
answer
143
views
Does running a VM typically affect host input lag?
I'm running a Windows 11 VM via qemu/libvirt on my Fedora 40 (Plasma Wayland) host. The VM is configured to use a passthrough GPU, 25% of my cores (6), and 25% of my memory (16GB). For input it has a ...
1
vote
0
answers
229
views
is it possible to boot into luks encrypted raw disk image with qemu/libvirt/virtualbox?
Done dd of my luks encryted drive, now im courious if its possible to create libvirt/quemu guest and attach that luks encrypted raw image and run it as is? Actually I have Fedora 38 on it with several ...
0
votes
1
answer
256
views
libvirtd not starting after unsuccessful GPU passthrough
I attempted to follow this guide on Ubuntu 22.04:
https://wiki.gentoo.org/wiki/GPU_passthrough_with_libvirt_qemu_kvm
I didn't need to change my BIOS or my Kernel, and I skipped the step involving the ...
1
vote
0
answers
663
views
RDP to VM connected to NAT network in libvirt
I am running virt-manager on my Debian system.
I am running a Windows 11 VM using NAT networking. I can't use bridge networking because I also use Docker and don't want to deal with all the issues it ...
0
votes
0
answers
163
views
How can I have a libvirt VM get IP from router on a host where docker is installed?
If I have a host that does not have Docker, I would just create a bridge network no my host and then have the VM use that and the VM would get an IP on my router/LAN.
But if I have a host that has ...
0
votes
1
answer
121
views
KVM: Recover console of VM which connected to console of another VM
How do I recover the console of the first guest when itself is connected to a guest of which it is the host?
Host1:~$ virsh console Guest1
...
Connected to domain 'Guest1'
Escape character is ^] (...
1
vote
0
answers
341
views
Is it possible to hardware accelerate spice with an nvidia gpu?
It is possible to use virgl with an nvidia gpu:
<graphics type="egl-headless">
<gl rendernode="/dev/dri/renderD128"/>
</graphics>
<video>
<model type=...
0
votes
0
answers
81
views
KVM/libvirt VMs layer 2 looks good but layer 3 isn't working
This looks like it's similar to this question but my setup (kvm/libvirt) looks closer to the answer than the question.
Host is running Debian 12 (bookworm) and is up-to-date with upgrades, nothing ...
0
votes
2
answers
658
views
What can cause network drop when running a VM with virt-manager?
I'm new to virt-manager, qemu and libvirt so I barely know how to use them. I use virt-manager's GUI to make it easier for me to do a transition from VirtualBox (including VBoxManage) to KVM.
By far I ...
2
votes
1
answer
55
views
Root does not see KVM guests of non-super user
Why doesn't root know about a regular user's KVM guests?
user@Lin0011:~$ virsh list --all
Id Name State
-----------------------------
- Lin0021 shut off
user@Lin0011:~$
root@Lin011#...
0
votes
1
answer
1k
views
Virsh not assigning dynamic IP address for VM
I am trying to setup a KVM maschine on a Debian 12 host which is attached to the default network created by libvirt. However, even though the network is active and available on 192.168.122.1/24...
# ...
0
votes
1
answer
117
views
libvirt can't bind device to runtime due to permission denied
I'm trying to start a new domain via libvirt virsh start my-domain.
But it fails with this permission denied error
error: internal error: Process exited prior to exec: libvirt: error : Failed to bind ...
0
votes
1
answer
928
views
Why qemu don't accept this xml configuration for audio?
I want to pass a audiodev to a vm, but libvirt exit with this error
error: internal error: process exited while connecting to monitor: 2024-03-17T23:29:37.725695Z qemu-system-x86_64: XDG_RUNTIME_DIR ...
1
vote
0
answers
773
views
Libvirt iptable chain LIBVIRT_FWX has no effect on interface internal traffic
I created a libvirt network in open mode and added the iptable rules that would have been created for a nat mode network. My plan is to basically create a nat network but add some custom iptable rules ...
0
votes
1
answer
109
views
Bridges on A Virtual Host
Years ago, I set up a virtual host on RHEL 7 with 2 NICs talking to 2 different LANs. I used some combination of brctl, ifconfig, etc. The host has guests on both LANs. The guests and external ...
3
votes
1
answer
1k
views
Does libvirt support auto memory ballooning
I have a KVM/QEMU/libvirt Arch Linux VM running on an Arch Linux host that I use for building software. I would like it to have access to 2 GiB of RAM when it is idle, but have access to 32 GiB of RAM ...
0
votes
1
answer
101
views
Libvirt allow hook to fork
If I have following Libvirt hook in /etc/libvirt/hooks/qemu.d/hook.sh
#!/usr/bin/env bash
if [[ $1 == "SEARCH_FOR_ME" ]]; then
while true; do
sleep 1
done
fi
bash /etc/...
1
vote
0
answers
2k
views
Configure SELinux to allow qemu/virt-manager and samba to both read/write to the same folder?
Problem summary
I have a local folder that is shared under samba but if I try to allow qemu (via user session) to access it via virtio-9p, I get an error (SELinux avc). Works fine with SELinux ...
1
vote
1
answer
465
views
Wireguard cant read wg0.conf on share
I have a virtual fedora server running using libvirt and have shared a directory from the host using virtiofs.
hostshare /etc/wireguard virtiofs rw,relatime 0 0
The dir in the guest is mapped to /etc/...
1
vote
0
answers
203
views
Running VMs and virsh command from qemu build from source
I am trying to build QEMU from source using the instructions given here. I am trying to implement a research paper which adds features to the migration mechanism of QEMU and so I need a custom build(...
6
votes
1
answer
399
views
Is there a way to determine what process is rebooting a server?
I have a kvm vm that seems to be rebooting randomly. I'm not seeing anything in syslog about reboot, shutdown, error, core dump, panic, etc. No errors in libvirtd log on the host either, no errors in ...
0
votes
0
answers
483
views
Debian based guests sometimes boot into UEFI shell qemu
My host runs Debian 12 and is used as a hypervisor using QEMU and libvirt. I have several Debian based server VMs and they almost always boot into UEFI shell instead of normally. I still can boot by ...
0
votes
1
answer
171
views
Libvirtd/Qemu routed network mode problem with two virtual networks
I have a persistent problem with my virtual machine host. Host machine rebooted recently and after that one out of the two virtual networks stopped working.
The network topology that I have is a /26 ...
1
vote
0
answers
820
views
Delete snapshots only in libvirt, but retain them in qcow2
I executed the following commands
-- 12:18:40 sudo virsh snapshot-delete Windows-10-128GB 2022-04-12-Pre-Activation
Domain snapshot 2022-04-12-Pre-Activation deleted
...
0
votes
1
answer
117
views
Error : virHostCPUGetKVMMaxVCPUs: KVM is not supported on this platform: Function not implemented
I'm running Debian bookworm on my ARM Chromebook,model "xe303c12" and I've recompiled the kernel (5.4) to enable KVM,so now my system sounds like this :
$ lsb_release -a
No LSB modules are ...