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
2 answers

KVM hypervisor - Windows 32bit VM, RAM up to 2GB usable

I've got a Debian 10 KVM hypervisor, no libvirt or other tool to administrate it, using QEMU scripts. I need a 32bit Windows VM for a legacy app, but on a supported OS (not XP), either Windows 8.1 or 10 32bit. Both Windows 8.1 & 10 present a message…
1
vote
2 answers

Linux KVM - Windows 10 VM - Mouse movement delay

I have a Windows 10 VM on my KVM (Libvirt) Linux machine. When i run other VMs like any Linux Distro, the responsiveness is fairly good, almost not noticable. With the win10 vm however, it is supper "laggy", while moving windows or moving the…
user654789384
  • 115
  • 1
  • 4
1
vote
1 answer

Is my KVM VM thin provisioned?

I was reading another post here Use Thin LVM Volume for KVM VM trying to understand whether or not KVM is capable of creating thin provisioned VMs. The post from about 8 months ago has both the OP and responder mentioning not supported to thin…
Gary
  • 123
  • 1
  • 4
1
vote
1 answer

KVM/QEMU CentOS 8 kickstarted VMs have broken networking, are unreachable

I can't understand why the VMs I create using virt-install & kickstart do not have networking that can be accessed reliably from foreign hosts. The VMs I created using virt-manager can be logged into using ssh, are pingable etc. but the kickstarted…
mr.zog
  • 923
  • 3
  • 20
  • 39
1
vote
0 answers

Cannot access guest webserver from host

Here is my configuration, I have a Ubuntu 20.04 host machine with a kvm virtual machine holding a webserver. I set the folowing rules with iptables in order to root the ports 80 and 443 of the host machine to the guest machine : sudo iptables -I…
1
vote
1 answer

Set up KVM host with multiple VLANs, each attached to "its own" external IP address

I'm trying (and having a hard time) to setup a clean KVM environment with: an Ubuntu (20.04) host (with a single NIC), multiple ubuntu KVM guests, 2 public IPs, and one Vlan per IP. Basically something looking like: My needs are: I have 2 public…
1
vote
1 answer

Arch Linux - KVM - Sharing SSD and HDD between Arch and it's VMs

I'm relatively new to linux and I'm trying to build an Arch linux that will have a gaming VM. I have 2 disks: a 500GB SSD and a 2TB HDD. I've settled on a LVM with a swapfile and extra space for snapshots. I don't intend to use the base linux and…
Matheus Simon
  • 115
  • 1
  • 6
1
vote
0 answers

Can't select install options when running Debian in headless QEMU/KVM

I am trying to get a Debian VM running on my Arch Linux machine using headless QEMU/KVM. To begin, I boot the virtual system with the following command: qemu-system-x86_64 \ -cdrom ../iso/debian-10.6.0-amd64-netinst.iso \ -boot order=d \ …
peachykeen
  • 115
  • 1
  • 5
1
vote
0 answers

KVM heavy CPU usage

I have own kvm on my dedicated server. I create five kvms. On one of them I have problem with CPU. Sometimes top looks like that: TOP image ps aux show a one procces which use 100% of all available cores: root 24407 396 14.6 2942304 2405368 ? …
1
vote
0 answers

Virsh Console Can't Access to rhel VM (a pty console, instead of serial console)

the pty console: no output when I exec the command virsh ttyconsole vm_name the log (/var/log/libvirt/qemu/vm_name.log) : char device redirected to…
1
vote
2 answers

oVirt or Proxmox with Cloudstack

I am using a cloud infrastructure based on XenServer and orchestrated by Cloudstack for lab purposes, and I want to try another KVM hypervisor on the same cloud. Is it possible to use oVirt or Proxmox along with Cloudstack? I mean.. is oVirt/Proxmox…
1
vote
1 answer

How to interpret CPU utilisation on KVM guest / host

I have a host Ubuntu 18.04 64-bit os running on a 24-core Xeon system. I've allocated 2 vCPUs to the guest which is Ubuntu 18.04 32-bit, and it's running an application which normally requires a small amount of CPU. However I cannot understand these…
dsl101
  • 433
  • 1
  • 8
  • 14
1
vote
1 answer

number of read and write processes affect the io performance of different virtio-scsi luns

QEMU emulator version 2.9.0(qemu-kvm-ev-2.9.0-16.el7_4.11.1) Linux 3.10.0-693.el7.x86_64 There are two luns attached via virtio-scsi (vcpu=1,virtio-scsi controller queue set to 1) Firt: dd /dev/sde device only , the iops was…
1
vote
0 answers

Running Windows in QEMU with LVM causes very slow disk acess

I have the problem, that whenever I try to run Windows within QEMU, it seems that disk access is becomming very slow after a short while. Surprisingly both access to the disk from within the VM as well as outside of the VM seems to become slow. I…
LiKao
  • 121
  • 5
1
vote
0 answers

KVM/QEMU - best practice for creating snapshots of your guests regarding disk space on the hypervisor

I have several KVM/QEMU guests with each having one hard disk based on the qcow2 format. As I understand, I have two option for creating snapshots. First is to create a snapshot inside the qcow2 image: virsh snapshot-create {vm_name} The second…
manifestor
  • 6,079
  • 7
  • 27
  • 39