Questions tagged [kvm-virtualization]
KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V). It consists of a loadable kernel module, kvm.ko, that provides the core virtualization infrastructure and a processor specific module, kvm-intel.ko or kvm-amd.ko. KVM also requires a modified QEMU although work is underway to get the required changes upstream.
2,457 questions
0 votes
0 answers
16 views
Automate KVM image creation for testing purposes
I'm trying to clean up the testing workflow for a project I'm working on, a database built on top of io_uring and NVMe. Right now I'm using KVM and its NVMe device emulator to power the dev ...
1 vote
0 answers
119 views
TASK [ovirt.ovirt.hosted_engine_setup : Wait for the host to be up]
I´m trying to setup a new installation of Ovirt 4.5.5 During the processe of deployment, it fail at this point: [ INFO ] TASK [ovirt.ovirt.hosted_engine_setup : Wait for the host to be up] Analyzing ...
0 votes
1 answer
148 views
Export AWS EC2 SAP ERP VM system to on-premise KVM
We would like to export/migrate a old SAP ERP server from AWS to our on-premise Proxmox Server. I have not had much experience with AWS, but with different on-premise Hypervisors. I therefore thought ...
1 vote
0 answers
88 views
Why does a paused QEMU KVM VM consume RAM?
I run several VMs on QEMU KVM. For some reason, after I pause a VM, it still shows as consuming RAM in top/htop and doesn't free the resources. The virsh output confirms that the VM is paused: > ...
0 votes
0 answers
173 views
(KVM virt-manager issue) Virt-manager keeps asking for password after starting the VM
So, I'm trying to start a VM remotely on a server located on my local network (Headless Debian 12) using another PC with Debian and Virt-manager installed. I have successfully connected to the server ...
0 votes
0 answers
56 views
Guest VM cannot access Internet in linux kvm
After creating a VM, the VM cannot access the Internet. In Hypervisor RHEL 9.4: I created management network: virsh net-dumpxml management <network> <name>management</name> <...
0 votes
1 answer
161 views
Ceph best practices with libvirt block devices - qcow2 or raw?
Planning on installing a new Ceph cluster for an existing client. This client is already deep into using qcow2 images for their current virtualization solution. I've found a Red Hat article (RH ...
0 votes
0 answers
68 views
Why my VM file size grew 4 times the size of changed files?
I'm running Windows in VM on Linux. I have a backing (base) file and upper layer (qcow2). Since last upper layer creation it grew to a large size. I've mounted the disk with guestmount and summed up ...
1 vote
1 answer
987 views
Best QEMU video device for Windows guests when you connect using RDP?
When you setup a Windows guest on KVM/QEMU you can choose between different video devices, most used seems to be QXL, VirtIO or VGA. Which give the best performance when you connect to the guest using ...
0 votes
0 answers
149 views
Bridge Wireless WiFi Adapter - KVM Guests - 4addr on - Works, but not reliably
I've created a service that sets 4addr on for my Intel ax210 wireless adapter (following this guide https://community.clearlinux.org/t/wireless-nic-bridge-for-kvm/5848/3) when my Rocky Linux 9 server ...
1 vote
0 answers
88 views
Python polars will run on my KVM host, but not on the Guest VM
0 I have a Linux Ubuntu Server 24.04 running very nicely on some moderately old hardware, with an AMD CPU. I am able to run a Python program that uses polars without problem. I have installed a QEMU/...
1 vote
0 answers
77 views
QEMU-KVM: how to see contents of top layer image and revert some back to backing image contents?
I use kvm/qemu on Linux and usual setup is having backing image and running top image that tracks changes (qemu-img create -f qcow2 -F qcow2 -b backimage topimage). I'm concerned with growth of those ...
0 votes
0 answers
75 views
Login screen frozen in virt-manager with VM Ubuntu Server 24.04.2 LTS
I installed a VM with Ubuntu Server 24.04.2 LTS on KVM. When I open virt-manager and I start the VM domain everything works but when I close virt-manager and I open it again I can't type, in the ...
1 vote
0 answers
91 views
VMware network speed issue
I have two HPE G9 DL380 dedicated servers with the exact same hardware specifications. One is running VMware Esxi 7 update 3 and the other is running KVM Virtualizor. Both these dedicated servers are ...
0 votes
0 answers
496 views
How to convert ISO image to qcow2 to be used with terraform libvirt
I'm trying to automate some Windows machines using terraform and libvirt on my Ubuntu machine. For the Windows machines, I have the ISO files and licenses for them. Now my goal is to try to convert ...
0 votes
0 answers
59 views
Is CPU throttling fully hardware feature or OS controlled?
I have Zen 3 based server on WRX80 platform (24c/48t). I'm using it as KVM/libvirt hypervisor with statically pinned cores to VMs (nohz, isolcpus). I recently noticed issues with thermal tripping. At ...
3 votes
1 answer
5k views
Regarding netplan settings being reset after reboot on Ubuntu 22.04.5
We have encountered an issue on a system with a fresh installation of Ubuntu 22.04.5 LTS, where editing /etc/netplan/50-cloud-init.yaml and applying the changes with netplan apply does not persist ...
0 votes
0 answers
60 views
virt-manager freezes up my SSH
today when i logged into one of my machines i am not able to do virt-manager as soon as i do that it freezes up nothing shows up however this was working fine 1 week ago i also have a test machine ...
1 vote
0 answers
73 views
KVM iptables for VM
On Ubuntu server 24.04 with public IP I have installed KVM and make virtual machine with Ubuntu 24.04 and install nginx , which may be reverse proxy for other machine in my KVM. I use iptables on KVM ...
2 votes
2 answers
474 views
KVM doesn’t work with Iptables
Does anybody here use Iptables with KVM VPS hosting Linux? I used to be able to do this with a Linode nanode back in the day, pre 2022, but not anymore. Adding firewall rules to limit SSH access to my ...
0 votes
0 answers
569 views
QEMU fails with permission denied when using storage pools
I have trouble understanding permissions with QEMU/KVM images in storage pools. My machines store their QCOW2-Files in an LVM thinpool device. Here are the relevant parts: vgdisplay machines --- ...
0 votes
0 answers
133 views
Low performance in VPS vs Local machine with Docker
I have developed a web application using Laravel and PostgreSQL as the database. The main function of my application is to process large volumes of data from the database, with tables ranging from a ...
1 vote
0 answers
228 views
USB WiFi Passthrough to Alpine Linux VM (QEMU)
I am currently experimenting with wifi. Basically I have a specific use case for running the wifi dongle in a guest vm. The WiFi dongle is a U.S. Robotics USR5423 802.11bg Wireless Adapter [ZyDAS ...
0 votes
0 answers
168 views
qcow2 dynamic disk file is about double the size it should be. How do I shrink it?
qcow2 image on VM host: # ls -l vdisk.qcow2 -rwxrwx--- 1 qemu qemu 31388270592 Feb 6 11:59 vdisk.qcow2 qemu-img info: # qemu-img info vdisk.qcow2 image: vdisk.qcow2 file format: qcow2 virtual size: ...
0 votes
0 answers
135 views
KVM takes too long to install a vm based on rhel 8.10
i'm experiencing this issue across differents physical server, let me describe it better. PHYSICAL HOST OS: Rhel 8.10 (also tested on rhel 8.8) VM OS: Rhel 8.10 I've created a lot of VMs based on RHEL ...
0 votes
0 answers
103 views
ICMPv6 Neighbor Solicitations going unanswered in guest VM
I have the following setup: ------------------------------------------------------------------------------------------ |Host ...
0 votes
0 answers
177 views
How do I connect a guest VM on Fedora 41 to the LAN?
I have just installed a Fedora 41 server for the first time (all my previous experience was with Debian-based systems), and I'm taking Cockpit and KVM for a test drive. I've (from the Cockpit-machines ...
3 votes
1 answer
396 views
Migration from a bare metal Ubuntu Server to a KVM or VirtualBox does not boot?
I had a bare metal Ubuntu Server installation. I created a full disk image with dd and converted to qcow2. qemu-img convert -O qcow2 full_disk.dd.img full_disk.qcow2 Then I have installed a fresh ...
0 votes
0 answers
189 views
qemu VM super-slow if host is running heavy CUDA processes
(I originally asked this on SuperUser, but I think it is misplaced there, so I'm re-asking this here with some additional information; in any case sorry for cross-posting) TL;DR My host is used for ...
0 votes
1 answer
297 views
How to start a VM with a VF from a SRIOV pool if it fails due to a MAC setting?
I'm trying to run a KVM/QEMU VM under RHEL9 that uses a virtualized Infiniband card (VF) through SR-IOV from a pool of VFs. I can specify a certain VF's PCI device with hostdev and that works just ...
1 vote
2 answers
258 views
Accessing Intel Software RAID (vROC) on KVM Guest (Debian) from Red Hat Host
I have Intel Software RAID (Intel® VROC) configured on my Red Hat host machine, and I would like to access its status etc within a Debian-based KVM guest VM. [root@localhost ~]# mdadm --detail-...
2 votes
0 answers
562 views
Qemu kvm Failed to autostart VM Cannot get interface MTU on 'br100': No such device
I am using OL9.2 and libvirt version: 10.0.0 I am trying to add an vm to autostart with sudo virsh autostart <vm_name>. On host reboot vm did not start and virtqemud shows this log: virtqemud[...
0 votes
0 answers
105 views
Virtual Machine gets an IP address but without asking for one from the dhcp server
A VM setup with the libvirt terraform kvm provider doesn't get an IP address from my dhcp server. It still gets an address but isn't listed on DNS, which is an issue for the machines to communicate. I'...
0 votes
1 answer
848 views
libvirt: Add static route into isolated network
I'm working with Ubuntu 24.04 Desktop and I created a VM connected to the default libvirt-NAT-Bridge and a second isolated network. The bridged network is virbr0: 192.168.122.0/24 the host got 192.168....
1 vote
0 answers
152 views
Frequent D State and zombies processes (Acronis, MySQL, Java, Journal D) - Possibly Related to KVM Asynchronous Page Faults
I've observed that several processes, including Acronis, MySQL, Java applications, and Journal D, are frequently entering the D state. This state seems to be related to paging, specifically to KVM ...
3 votes
1 answer
207 views
GnuTLS error signal 4 on QEMU/KVM with cpu set to "host-model"
In order to be able to script VM generation on our Debian 11 QEMU/KVM hosts I wrote a little python script which uses virt-install to setup new virtual machines (with OS Ubuntu 22.04). In those VMs ...
1 vote
1 answer
427 views
/dev/kvm in docker swarm service
I'd like to run multiple docker-android instances in docker swarm. But they fail: ERROR | x86 emulation currently requires hardware acceleration! https://developer.android.com/studio/run/emulator-...
0 votes
0 answers
138 views
linux KVM host, no network connection on guest VMs
after a kernel upgrade with out debian servers we went through reboots and have since then problems with obe of our KVM hosts. On the host itself everything works, but on the guests there is no ...
1 vote
2 answers
736 views
Unable to network KVM on bridged interface with bonded interface slave
I am unable to access a KVM over the network when its network is a bridge with a bonded interface as a slave. Here's how I create bonded interface bond0: sudo nmcli connection add type bond con-name ...
0 votes
2 answers
733 views
dmidecode Displays Incorrect Processor Manufacturer and Version on Debian 12 Guest Running on KVM with RHEL 9.4 Host, but Works Correctly on Hyper-V
I am new to Red Hat Enterprise Linux (RHEL). I have installed RHEL 9.4 on an Intel Core i7 13th Gen machine and prepared a Debian 12 virtual machine (guest) using KVM. Within the Debian 12 guest, the ...
0 votes
0 answers
566 views
How to boot from qcow2 image using grub boot loader?
I got 4xVM in Proxmox instance on my testbed and all the guests VM are running ubuntu 24.04. On proxmox I have installed grub2 as boot loader/manager. I would like to boot one selected system (using ...
4 votes
1 answer
579 views
Unable to automate Linux OS install on KVM
I'm unable to automate installing Rocky9 Linux on a KVM. I am using Kickstart to automate the installation. Instead of the install being automated, the installation screen is shown if I log into the ...
1 vote
1 answer
5k views
Manually create a bridge network for KVM guests with one guest running a DHCP server
When we create a default bridged network in Libvirt it create a bunch of interfaces: virbr0 with an IP 192.168.122.1/16 vnet0 with no IP address showing up as it is "plugged into a VM". ...
0 votes
1 answer
694 views
Debian 12 crashes randomly as a KVM host
A have installed Debian 12 in an machine who services as a kvm host to 2 guests which are an Ubuntu 22.04 and an Windows 10. Sometimes the Debian crashes. Initially the video is lost and the cpu ...
5 votes
1 answer
380 views
Will moving Windows VM's from VMware ESXi to RH9 KVM cause Windows activation?
We are planning to migrate away from VMware ESXi for our company servers. We have a LOT of Windows virtual machines used for testing (different configurations, combinations of options, etc) in our ...
2 votes
1 answer
1k views
Solved - Fedora host, Windows guest (QEMU/KVM): NAT'd virtual bridges work except this one (USB/Ethernet)
Quick overview of the situation I have a Fedora host on which there are multiple NICs and VMs (QEMU/KVM/LibVirt). Each guest accesses the internet via a virtual bridge that operates in NAT mode and ...
2 votes
1 answer
1k views
KVM: impossible to start default virtual network
I'm using KVM virtual machine on Debian 12 and I want to use the default virtual network. First, the default network was missing virsh net-list --all so I reloaded it: virsh net-define /usr/share/...
1 vote
2 answers
733 views
Manage VLANs on Linux Bridge and KVM host
I am here to ask for help about integrating VLAN, Linux bridges and KVM. So, let me start with the setup I am trying to put in place. I have a network switch with a couple of links to a KVM server. On ...
4 votes
1 answer
569 views
Migrate from qemu to libvirt
I'm trying to run Bliss OS through QEMU by following this guide: $ qemu-system-x86_64 \ -enable-kvm \ -M q35 \ -m 4096 -smp 4 -cpu host \ -bios /usr/share/ovmf/x64/OVMF....
0 votes
1 answer
964 views
Removing a snapshot from a QCOW2 image on the fly
Is that possible to delete a snapshot from a QCOW2 image without shutting down a virtual machine (QEMU+KVM)? Wouldn't running qemu-img snapshot -d ... break data consistency? If so, would that break ...