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.

Introduction

Kernel-based Virtual Machine (KVM) is a virtualization infrastructure for the Linux kernel. KVM supports native virtualization on processors with hardware virtualization extensions. KVM originally supported x86 and x86-64 processors and has been ported to S/390, PowerPC, and IA-64. An ARM port is in progress.

A wide variety of guest operating systems work with KVM, including many flavours of Linux, BSD, Solaris, Windows, Haiku, ReactOS, Plan 9, and AROS Research Operating System. A modified version of QEMU can use KVM to run Mac OS X.

Limited paravirtualization support is available for Linux and Windows guests using the VirtIO framework. This supports a paravirtual Ethernet card, a paravirtual disk I/O controller, a balloon device for adjusting guest memory usage, and a VGA graphics interface using SPICE or VMware drivers. KVM uses SeaBIOS.

Design

By itself, KVM does not perform any emulation. Instead, a user space program uses the /dev/kvm interface to set up the guest VM's address space, feeds it simulated I/O and maps its video display back onto the host's. QEMU versions 0.10.1 and later make use of this.

Features

  • QMP - QEMU Monitor Protocol
  • KSM - Kernel Samepage Merging
  • Kvm Paravirtual Clock - A Paravirtual timesource for KVM
  • CPU Hotplug support - Adding CPUs on the fly
  • PCI Hotplug support - Adding PCI devices on the fly
  • vmchannel - Communication channel between the host and guests
  • migration - Migrating virtual machines
  • vhost -
  • SCSI disk emulation -
  • Virtio Devices -
  • CPU clustering -
  • hpet -
  • device assignment -
  • PXE boot -
  • iSCSI boot -
  • x2apic -
  • Floppy -
  • CD-ROM -
  • USB -
  • USB host device passthrough -
  • Sound -
  • Userspace Irqchip emulation -
  • Userspace Pit emulation -
  • Balloon memory driver -
  • Large pages support -
  • Stable Guest ABI -

Links

Official Website

2405 questions
1
vote
0 answers

KVM : What is the Maximum Number of Physical CPU and Physical Core KVM Can Support on a Single HOST

I am new here so this is my first day with a very confusing Quistion so please help me to understand it Properly. Expert Advise Required My Quastion is : I have a dell PowerEDGE Server With Intel Scalable CPU 24 Cores and 64GB RAM on it, if i…
1
vote
1 answer

Migration disabled: vhost-user backend lacks VHOST_USER_PROTOCOL_F_LOG_SHMFD feature

I tried this command on the host. virsh snapshot-create-as --domain test_vm_back --name "snapshot-before-install-package" --description "snapshot test" As you know, this is just a simple command from tutorials to create a snapshot of the VM. The VM…
1
vote
1 answer

Ubuntu 22 No ACPI DMAR table found, IOMMU either disabled in BIOS or not supported by this hardware platform on nested VM

I am using ubuntu 22.04 LTS minimal server. My host server is set up with kvm and is functioning well. All tests pass when running virt-host-validate. When I create. virtual machine i want this to support kvm also and I am trying to make all the…
shorif2000
  • 351
  • 1
  • 8
  • 28
1
vote
0 answers

RTSP Stream Cannot Be Accessed from KVM Guest using NAT - iptables forwarding

How should iptables on the host be configured to allow rtsp:// traffic from a KVM guest that initiated the connection via a NAT network interface? It doesn't appear to be a simple mapping. I don't know what port the guest uses when it opens the…
OwN
  • 187
  • 3
  • 14
1
vote
0 answers

Can't live-attach a USB device to a kvm virtual host again after upgrades

I have a DS2490 USB 1-wire interface on the home server conway which is attached to one of the virtual machines so that that virtual machine can read the sensors on the 1-wire network. This attachment works when the machine is started, the DS2490…
Koos van den Hout
  • 1,096
  • 6
  • 10
1
vote
0 answers

How to avoid IP & MAC spoofing and block desired ports for Qemu/KVM virtual machines via nft or nftables?

I have a Debian 11 server that is running several Qemu/KVM virtual machines ( not using libvirtd created purely with Qemu commands ), I've created a network bridge and each VM has its own TAP device connected to the bridge. Please consider that I…
Sinux
  • 75
  • 9
1
vote
0 answers

iptables with multiple routing tables and gateways, same gateway MAC

Centos 8, KVM. Similar questions were asked and I tried their answers without success. I have two public IP addresses IP1 aaa.bbb.ccc.11 and IP2 aaa.bbb.ddd.22 and two network adapters eno1 and eno2. And a lot of guest VMs. aaa.bbb.ccc.1 is the…
Micha
  • 111
  • 3
1
vote
1 answer

virsh console hangs when i connect kvm VM

KVM Host Environment:- # cat /etc/issue Welcome to openSUSE 13.2 "Harlequin" - Kernel \r (\l). # /usr/bin/qemu-system-x86_64 --version QEMU emulator version 2.1.3 Running VMs list as follows, # virsh list --all Id Name …
user4948798
  • 115
  • 4
1
vote
1 answer

Migrating libvirt guest vm to a new storage directory on the same host

I have found a few related questions/articles but nothing about just simply moving an existing VM to a new directory on the same machine. That's what this question entails. For this scenario, I need to move an existing virtual machine storage from…
Rino Bino
  • 511
  • 5
  • 21
1
vote
0 answers

KVM start failed (ubuntu image)

KVM start failing after I have made the below changes. Environment:- qemu-img version 2.1.3 ubuntu VM 1. Stop the VM 2. qemu-img resize vm1.img +50G 3. start the VM virsh start vm1 error: failed to get domain 'vm1' error: Domain not found: no…
1
vote
1 answer

nftables ignoring should-be matches, nftables log shows nonsense frames, tcpdump shows expected frames

EDIT: Solution found. Will post after synthesization and verification. Having come across some head-scratching behavior with nftables, I am hoping for some community insights. When using the below ruleset in a QEMU-KVM guest, Ethernet frames in…
1
vote
1 answer

qemu-kvm: prevent host from accessing passthru LVM disks

I am running multiple Ubuntu (5.4.0-117-generic) qemu-kvm hosts. On each I am passing multiple block devices through to VMs thusly:
Frobozz
  • 173
  • 8
1
vote
0 answers

VM Logical Volume shown on Host

Some context, I've builded an Opennebula cloud (https://opennebula.io/). I've been using it for more than 2 years now without any issue on that side. Recently i've noticed a strange behavior. On my hypervisor which are the servers who are running…
Boat
  • 111
  • 2
1
vote
1 answer

Copy and paste from a QEMU VM with VNC graphics?

I run a headless server that uses qemu + kvm to run a few VMs, and I manage them with virsh + xml file definitions. Because this a remote / headless system, I set the graphics as VNC, and then with ssh port forwarding, I can use TightVNC / RealVNC…
Jason
  • 11
  • 2
1
vote
1 answer

kvm / proxmox 5 - virtio_net slow network 5Mbit, sometimes 900Mbit in opposite or both direction

Environment: several PROXMOX 5 (KVM) servers (kernel: 4.15.18-30-pve) VMs running Debian 9, 10 and 11 (vitrio /qemu-guest-agent current version of the respective Debian version) network cards connected via virtio_net kernel module VMs connected via…
farax
  • 11
  • 5