Questions tagged [libvirt]
daemon and clients to manage virtual machines and containers
379
questions
0
votes
0
answers
13
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
0
answers
10
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 ...
0
votes
0
answers
13
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 ...
0
votes
0
answers
19
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 ...
0
votes
0
answers
14
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 ...
0
votes
0
answers
53
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 ...
0
votes
0
answers
65
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)
...
0
votes
0
answers
28
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 ...
0
votes
1
answer
47
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
80
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
49
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 ...
1
vote
0
answers
160
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.
...
0
votes
0
answers
174
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 ...
0
votes
0
answers
140
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 ...
1
vote
1
answer
32
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>...
0
votes
0
answers
41
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 ...
0
votes
1
answer
278
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 ...
1
vote
1
answer
49
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</...
0
votes
1
answer
165
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 ...
0
votes
0
answers
57
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 ...
0
votes
0
answers
119
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 ...
0
votes
1
answer
47
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 ...
0
votes
0
answers
162
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 ...
0
votes
0
answers
132
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. ...
1
vote
0
answers
70
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=...
0
votes
1
answer
69
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-...
0
votes
0
answers
42
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 ...
0
votes
0
answers
85
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 ...
0
votes
0
answers
46
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-...
0
votes
0
answers
189
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-...
0
votes
0
answers
147
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,...
1
vote
1
answer
191
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 ...
0
votes
2
answers
87
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 ...
0
votes
0
answers
522
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 ...
0
votes
0
answers
154
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 ...
0
votes
0
answers
58
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 ...
0
votes
1
answer
212
views
How to get full information about the bridges?
I have many bridges on my laptop,Ubuntu 22.04
ip link show type bridge
shows
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen ...
0
votes
1
answer
22
views
GPU passtrhough, subsystem lost
When I do lspci on my manjaro linux host I can see that my Nvidia GPU is a part of [1025:1409] subsystem (as is everything else on my machine). The GPU is in its own IOMMU group and has vfio-pci ...
0
votes
0
answers
47
views
Prevent QEMU from stealing input on VM start
I use libvirt and have the following QEMU commandline specified, to allow it direct access to mouse and keyboard:
<qemu:commandline>
<qemu:arg value="-object"/>
<...
0
votes
1
answer
177
views
libvirt rejects passthrough USB in XML
On a Debian 10 machine, I have a KVM VM with Windows 10. It runs fine. The libvirt version is 5.0.0-4+deb10u1.
I want the VM to recognize a video camera that is attached to the Debian host via USB. ...
0
votes
0
answers
34
views
`virsh start` crashes CentOS 7 host
This just began yesterday after the host system was shutdown and booted back up.
Upon running virsh start [guest-name], it immediately dumps this output and forcibly reboots the host:
The only thing ...
0
votes
1
answer
281
views
On the RHEL7/8 the virt-sysprep does not clean the content of /etc/machine-id despite it should
The virt-sysprep command should clean the content of /etc/machine-id as the machine-id step is marked (with *) as enabled by default. At least the man page is quite clear. However that does not happen ...
1
vote
0
answers
512
views
KVM VM - copy and paste without host clipboard access
I've been trying to look for an option to copy and paste into/from my Debian KVM/QEMU virtual machine without giving the VM access to the host clipboard, and without the host having access to the VMs ...
4
votes
0
answers
316
views
Is it possible to inform a kvm virtual machine of asymetric cores?
I have a 13th gen intel 13600k CPU with 6 performance cores (hyper threaded) and 8 efficiency cores (no hyper threading). I'd like to pass through 1 performance core (with it's hyperthread) and 2 ...
0
votes
0
answers
40
views
Modifying multiple interfaces model types in virsh using a script, reboot restores original types
I am attempting to create a startup script that will modify the model of the following interfaces in virsh:
</interface>
<interface type='bridge'>
<mac address='52:54:00:df:9a:65'/>...
0
votes
0
answers
135
views
Can I add a serial console to an existing libvirt virtual machine?
I have a VM image that someone has provided that uses the VGA console. I'm trying to boot it on a system where I use serial connections to VMs but I can't get any kernel or init messages on the ...
1
vote
0
answers
54
views
Access Log for VNC for KVM/libvirt/virt-manager
Is there a way to look at who makes a VNC connection to the host on the default port?
I could not find any documentation or questions on the web related to this.
Is there any log file that tracks ...
0
votes
2
answers
4k
views
How do I clear the dns cache on centos7 and centos8?
I am working on scripting a way to flush dns cache on different linux distros. I want to support doing this with Ubuntu-server, Ubuntu-desktop, Centos8-desktop, and Centos7-server(nogui)
I have built ...
1
vote
0
answers
873
views
Cannot Edit KVM Machine's XML; Failed to validate against schema
When trying to save XML changes in Vim this error occurs:
error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng
Extra element ...
0
votes
1
answer
459
views
How to remove an interface from virtual bridge in ubuntu?
ubuntu 20.04 KVM install
after I added the eth intfc to the virtual bridge I lost my SSH connection to the host. To recover, i figure I had to 'remove' the interface from the 'bridge' but it will not ...