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
1 answer

Assigning public IP address to a VM hosted on a server behind NAT

I have a pool of public IP addresses (95.xxx.xxx.196 - 254). I also have a server hosting KVM machines. It has a private IP address 10.0.0.1 which is NATed by the router to the 95.xxx.xxx.200 address so that it's available to the Internet using this…
Mhalapenio
  • 11
  • 1
1
vote
1 answer

How can I optimize ksm for my machine - 100% CPU usage and limited KSM Sharing (Proxmox)

KSM is constantly at 100% CPU usage which makes me believe I need to optimize the /etc/ksmtuned.conf configuration but I am not exactly sure what to set it as for this machine. As you can see from the screenshot above KSM Sharing is currently at…
Harmonytalk
  • 11
  • 1
  • 4
1
vote
1 answer

Share data via QEMU and NFS with Mac host (OSX Catalina) and Linux Guest (Ubuntu 20.04)

Story so far We recently migrated from Linux laptops to Macbook Pro laptops (company IT no longer supports native Linux laptops with VPN, so it's all Macbook/OSX devices for us). However, all of our development requires the use of Ubuntu and Debian,…
Lans
  • 11
  • 2
1
vote
0 answers

How to limit packets per unit time on a particular interface (for vms)

I am using kvm and virtuozzo virtualization on my servers and each having 10 vms. I have to restrict DDOS attack from my VMS (i.e prevent VM from doing DDOS attack), I search on net and found that I can restrict number of packets using iptables…
1
vote
1 answer

network interfaces are deleted after issuing a virsh shutdown on VM

I tried to instantiate a VM using virt-install command with few interfaces as needed. The exact command is as follows: virt-install \ --name VM \ --noautoconsole \ --input keyboard \ --os-variant rhel7.0 \ --memory 8192 \ …
1
vote
1 answer

Storage Virtualization/Replication for KVM Live Migration on 2 Nodes

at the moment I'm doing some researching on Virtualization on Linux. My target scenarion would be a 2 Node "Cluster" with replicated storage over IP. (a little Like Windows HCI) I already took a look at Open-Stacks but thats a little oversized and…
user626387
  • 11
  • 1
1
vote
0 answers

How to create Bridged connection for Qemu/KVM with Wifi?

I want to create a bridged connection in qemu/kvm. What I want to do is connect the wifi to a bridge (as a slave), then use this bridge to provide network access to the VM. Using nmtui, I deleted my wifi connection, then created a new bridge and…
Matan L.
  • 111
  • 2
1
vote
1 answer

Not able to start virtual machine/domain in KVM: Failed to get "write" lock

After host's restart, I'm not able to start virtual machine: user@server-1:~$ virsh start docker-1 error: Failed to start domain docker-1 error: internal error: process exited while connecting to monitor: 2021-03-23T01:21:58.149079Z…
laimison
  • 579
  • 2
  • 9
  • 17
1
vote
1 answer

Noop convert qcow2 image but keeps internal snapshots

I have a qcow2 image. The image size is 200 GB, but the actual use is only 30 GB. I'm using qemu-img convert -O qcow2 source.qcow2 shrunk.qcow2 to removes sparse space and the images shrinks correctly to 30 GB. This image has internal snapshots…
leanhtai01
  • 13
  • 3
1
vote
1 answer

Can't get origin/request IP address in php from KVM apache website in bridge mode

I have a apache webserver running on ubuntu 18.04 hosted on KVM This KVM is running on Linux Mint 20.1 host OS The networking is setup using bridge in KVM host-bridge some-uuid
duindain
  • 111
  • 2
1
vote
0 answers

What triggers a "*** Guest State ***" register dump from the linux kernel?

Prefix: There is no kernel crash. Something, rarely, is triggering Guest State, Host State, Control State register and other debug variable dump to kernel log. The system in question is running many many virtual machines via qemu/kvm. The kernel…
jrwren
  • 370
  • 2
  • 5
  • 16
1
vote
1 answer

KVM windows vm inside docker unable to access internet

I am trying to use kvm inside docker with the inspiration from an article (https://medium.com/axon-technologies/installing-a-windows-virtual-machine-in-a-linux-docker-container-c78e4c3f9ba1) that shows how to enable 3389 on the vm, which is inside…
Elias
  • 21
  • 3
1
vote
0 answers

State of OCFS2 as KVM storage for QCOW2 format

Using a shared iSCSI SAN all SSD and good cluster aware filesystems are few and far between with Linux. What is the state of OCFS2 with modern Linux kernels and is it considered reliable enough to have 32 machines sharing the same volume in…
pieterk
  • 111
  • 1
1
vote
3 answers

KVM trying to restore from backup and getting error unexpected data

Hello I made a backup of a VM guest with these steps: 1. virsh dumpxml --migratable test > /backup/test.xml 2. virsh snapshot-create-as --domain test \ --name backup.qcow2 \ --no-metadata \ …
andys
  • 113
  • 5
1
vote
1 answer

libvirt Windows 10 VM issue

I am running Manjaro KDE and I have managed to setup a Windows 10 VM with GPU passthrough for Windows things and it was working great until I noticed a weird behavior. When I try to reboot the VM, or even randomly (I left it on over night and in the…
lucian
  • 131
  • 1
  • 7