Questions tagged [libvirt]

daemon and clients to manage virtual machines and containers

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 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... # ...
Dark Song's user avatar
0 votes
1 answer
15 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 ...
itsjc's user avatar
  • 101
0 votes
1 answer
24 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 ...
elbarna's user avatar
  • 12.7k
1 vote
0 answers
28 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 ...
elperry's user avatar
  • 11
0 votes
1 answer
28 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 ...
Garnet's user avatar
  • 398
1 vote
0 answers
99 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 ...
StrongBad's user avatar
  • 5,271
0 votes
1 answer
34 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/...
error_man's user avatar
0 votes
0 answers
32 views

Loupedeck USB device 'libvirtd' pass to Win with UDEV rule

I have this console that I'm trying to pass as an USB to the Win11 running on QEMU. It is unhappy being 'redirected' as an USB device, so I wrote an UDEV rule for it, b/c without it, of course I didn'...
greengold's user avatar
  • 113
0 votes
0 answers
217 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 ...
zpangwin's user avatar
  • 801
1 vote
1 answer
111 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/...
Christian's user avatar
  • 2,195
0 votes
0 answers
143 views

KVM Qemu + Libvirt -> Debian Host+Guest => OpenGL / 3D Acceleration -> No Effect

Hi I use debian12 with KVM+Qemu and libvirt ( VirtManager as a GUI ) to create my virtual Machines. I want to have several Virtual machines that have "some" GPU Acceleration NO Direct GPU ...
Viktor Carlson's user avatar
1 vote
0 answers
89 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(...
Amit Kumar's user avatar
0 votes
0 answers
30 views

Does it make sense to run mcelog inside of a kvm vm?

I would imagine it would catch qemu / kvm / libvirt bugs, and probably nothing related to the actual hardware. Running mcelog on the host of course, but is it worth it/helpful to run it inside a kvm ...
cat pants's user avatar
  • 475
6 votes
1 answer
185 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 ...
cat pants's user avatar
  • 475
0 votes
0 answers
126 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 ...
td211's user avatar
  • 374
0 votes
0 answers
44 views

Internal Error: libxenlight failed to create new domain "FreeBSD-13.2"

I tried to use xen as a hypervisor instead of kvm + libvirt + virt-manager to boot FreeBSD on my ARM Chromebook where I have installed Devuan 5,since Stefano said : Libvirt + virt-manager with the xen ...
Marietto's user avatar
  • 531
0 votes
0 answers
25 views

Permission Denied error when I try to open the image file stored on the ZFS disk accessed through sshfs from another machine

I would like to boot the FreeBSD 13.2 image file using Libvirt + virt-manager. I have stored the image on the external hard drive,"formatted" with ZFS while I'm using Devuan 5 installed on ...
Marietto's user avatar
  • 531
0 votes
0 answers
33 views

same ip and subnet in 2 different bridges

I am trying to create 2 different virtual networks in the same ip range (not using NAT) in virt manager. This doesn't work with the gui or editing the xml of the new virtual network. Is creating ...
ISG's user avatar
  • 1
0 votes
0 answers
25 views

Passthough special keys from keyboard to guest OS?

I have a MS Natural Keyboard 4000 and I want to use its special keys in my guest OS. Both are Linux Mint. Without any additional configuration some keys are passed (Home, Mail, Volume, Fav, etc.) but ...
user22942146's user avatar
0 votes
0 answers
248 views

How can I use QEMU GTK as display when using libvirt?

I was following the guide for configuring Intel GPU Passthrough through GVT-g and had some issues when trying to use QEMU GTK as a display. In order to troubleshoot this more easily, I tried this out ...
cidra's user avatar
  • 81
0 votes
0 answers
209 views

Using IPMI in virtualization - what is the difference betweem virtualbmc project of openstack and QEMU device ipmi-bmc-sim?

I'm setting up a virtual lab on my laptop (using kvm/qemu), and need an IPMI solution (e.g., to use STONITH as is etc.). I have looked at virtualBMC and QEMU ipmi-bmc-sim (search for ipmi on the page) ...
Dani_l's user avatar
  • 4,943
0 votes
0 answers
84 views

The attached virtio disk is not recognized by libvirt but it is recognized by qemu

I'm trying to virtualize FreeBSD 13.2 for arm 32 bit on my laptop ARM Chromebook where qemu is version 5.1,KVM is enabled,libvirt and virt-manager are installed from the source code and everything ...
Marietto's user avatar
  • 531
0 votes
1 answer
73 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 ...
user2771538's user avatar
1 vote
0 answers
241 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 ...
Daniel F's user avatar
  • 867
0 votes
1 answer
75 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 ...
Marietto's user avatar
  • 531
1 vote
0 answers
364 views

Failed to acquire pid file : /var/local/run/libvirt/qemu/driver.pid

I'm running Debian bookworm on my ARM Chromebook,model "xe303c12" and I've recompiled kernel to enable KVM,so now my system sounds like this : $ lsb_release -a No LSB modules are available. ...
Marietto's user avatar
  • 531
0 votes
0 answers
326 views

error : virNetSocketReadWire:1792 : End of file while reading data: Input/output error

libvirt version - 8.0.0 OS - Centos 8 Stream Kernel - Linux 4.18.0-408.el8.x86_64 #3 SMP Mon Aug 21 12:19:16 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux Openstack Version - Yoga 24.1.1 I am running ...
varun vyas's user avatar
1 vote
0 answers
249 views

AppArmor issues with Libvirt

I have a fresh Ubuntu Server 22.04.3 and Debian 12.1.0 installed and updated. Along with Cockpit and Cockpit virtual machines on both tests machines. I am getting the following errors and warning when ...
Johannes's user avatar
1 vote
1 answer
40 views

archlinux on vm (created by libvirt) can not start up?

there is the domain xml for vm0x01: <domain type='kvm' id="1"> <name>vm0x01</name> <uuid>4dea24b3-1d52-d8f3-2516-782e98a23fa1</uuid> <genid>...
SomeNetDrugs' SuperStunRod's user avatar
0 votes
0 answers
66 views

No Internet from internal GSM modem, but only in Guest OS (KVM/Qemu)

I have been trying to set up a virtual router on my laptop utilizing the LTE card (Sierra Wireless AirPrime EM7455) as its WAN interface. To summarize my problem, the LTE card works in the host but I ...
klanec's user avatar
  • 1
0 votes
1 answer
672 views

In KVM/Libvirt: How can I have two NAT networks with the same IP range on one host?

I'm trying to use KVM and libvirt to test some infrastructure setup in a virtual machine, where basically I'm booting a VM inside a network. In my case, this VM and the network always must have the ...
Alex's user avatar
  • 103
1 vote
1 answer
101 views

How to block a range of ip adresses with libirt's nwfilter for a specific mac(VM)

I'm a bit lost how to block a range of Ip adresses(preferbly for a specific mac adress of a VM) <filter name='local-fileserver-only' chain='ipv4' priority='-700'> <uuid>blank for now</...
Hazmat's user avatar
  • 41
0 votes
1 answer
305 views

Understanding libvirt / kvm bridged network and its IP

I'm trying to get the IP of a guest virtual machine connected to my network with libvirt / kvm bridging. I've come across a couple of resources online, but they seem to be out of date, like this and ...
xpt's user avatar
  • 1,560
0 votes
0 answers
151 views

How can I use create a bridge network for different VLANs so my host + guest can connect to different VLANs?

My box has Debian 12, KDE, and is using Network Manager. I am using virt-manager and want to create VMs on different VLANs on my network. My box is connected to a port on my switch that allows VLAN 10 ...
IMTheNachoMan's user avatar
1 vote
0 answers
257 views

How can I configure VMs to suspend or shutdown when the host is rebooted/shutdown with KVM / virt-manager?

I am running openSUSE Tumbleweed with virt-manager. I can see an option in the VM details for starting the VM when the host boots up. I am trying to find a way to configure what a VM does when the ...
IMTheNachoMan's user avatar
0 votes
1 answer
109 views

Install base Linux on KVM virtualized hardware (dom0)

Goal: I would like to install my main Linux distro on top of KVM, equivalent to dom0 in Xen hypervisor parlance. I know that running an OS on top of a hypervisor is not uncommon and that KVM has been ...
Adam Erickson's user avatar
0 votes
0 answers
367 views

Execute a virsh command as another user in interactive setup script

I am using a script to setup some Fedora machines and I can not execute a Virsh (cli tool for Libvirt) command as another user. The output given indicates that the command was successful but it fails ...
MathsJoe's user avatar
0 votes
0 answers
273 views

Need help debugging slow NFS with high avg RTT on Ubuntu

I'm managing a number of libvirt hypervisors, where the VMs data is stored on a NFS server. I've been experiencing high I/O wait on the hypervisors' CPUs, and as such decided to dig a little deeper. ...
Ian Falatik's user avatar
1 vote
0 answers
96 views

Vagrant OpenBSD Box not starting up through Libvirt Provider

So I have created a OpenBSD 7.3 VM in libvirt with the following shell command. virt-install --name openbsd7.3 --os-variant openbsd7.0 \ --virt-type kvm --vcpus 1,maxvcpus=2 --memory 256,maxmemory=...
prmethus's user avatar
0 votes
1 answer
93 views

isc-dhcp-server and dnsmasq is not working in Virt Manager(debian) KVM

I am trying to make a DHCP server in a VM what I pass a PCI ethenet adaptor to. with dnsmasq I get the "interface ens7 does not exist" dnsmasq.conf interface=ens7 port=53 I tryed isc-dhcp-...
TepMaster's user avatar
0 votes
0 answers
55 views

Can’t start VM with img

I'm using Debian 11 and libvirt with KVM. Previously, I was able to start VMs with a mounted .img file, but now I'm unable to do so. I have reinstalled virtualization, redownloaded the .img file, and ...
Tom 's user avatar
  • 1
0 votes
0 answers
111 views

Ideal laptop power user network setup - Systemd-networkd bridge versus libvirt bridge

Under linux we have several ways to configure a network card. Since I'm a simple advanced user with virtual machine needs, and for reasons of homogeneity, I try to simplify and use systemd as much as ...
hallebardes's user avatar
0 votes
0 answers
88 views

virt-sysprep libguestfs read-only filesystem error when cloning VM

I am trying to follow this guide to clone a qemu VM. However, when I try to run virt-sysprep on the image it gives me this error: virt-sysprep: error: libguestfs error: rm_f: /$Recycle.Bin/S-1-5-21-...
John Salazar's user avatar
0 votes
0 answers
324 views

Starting QEMU VM with USB serial device attached fails with permission denied, but attaching it after VM is started works

I have a defined a USB device like this in virt/usb-serial.xml: <serial type="dev"> <source path="/dev/serial/by-id/usb-...
Henrik's user avatar
  • 141
0 votes
0 answers
213 views

QEMU command with NVME boot is functional but cannot convert to virt-install parameters

I'm attempting to convert a working qemu command to virt-install parameters. The working command is: qemu-system-x86_64 -bios /usr/share/OVMF/OVMF_CODE.fd -boot c -drive file=/vm/image.qcow2,if=none,...
enigmaedge's user avatar
1 vote
1 answer
304 views

Delete VM including storage with python-libvirt

I'm trying to write scripts in Python with the libvirt library, but there's one thing I'm currently stuck at. I can successfully create a VM, set it up how I want it, start it, access it, and shutdown ...
Florian Bach's user avatar
0 votes
2 answers
193 views

Problem with block devices for virtual machines

I have two block devices in my host that I am trying to pass to a VM guest. One works perfectly while the other does not. The only difference is one is a logical volume on an internal drive while the ...
StrongBad's user avatar
  • 5,271
0 votes
0 answers
760 views

Linux bridge and vlan configuration with Qemu/Libvirt VM

I am trying to forward traffic from my Qemu VMs to my pfSense VM with the help of vlan tagging. I know that libvirt has no direct support for vlan traffic in conjunction with Linux bridges which is ...
MathsJoe's user avatar
0 votes
0 answers
228 views

How to build qemu with additional machine types

I'm trying to migrate around 40 KVM VMs (containing a few hundred live snapshots mostly used for automated testing on Windows) from a Ubuntu 22 server to a Debian 11 server. The machine type of most ...
John Salazar's user avatar
0 votes
0 answers
108 views

KVM VMs get disconnected when I restart a VM

So, I have a VLAN setup in a KVM host, where I bridge a firewall WAN port to a physical eth interface, and then bridge the LAN port to an internal bridge, which has vlan subinterfaces, which ...
Orsiris de Jong's user avatar

1
2 3 4 5
8