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
13
votes
4 answers

Backing up qcow2 kvm guests

I can't find any good info on backing up qcow2 kvm guests. I'm not really interested in the guests running state, only the file system. This question suggests using savevm but that creates a snapshot in place. I'd like to backup the filesystem…
12
votes
1 answer

KVM gets stuck at "Booting from hard disk"

I am trying to run Ubuntu-server-16.04 virtual machine on a KVM converted from .vhdx (Hyper-V) to .qcow2 (KVM). When I import my virtual disk image and start virtual machine, the KVM hangs on "Booting from Hard Disk". I've already managed to import…
Miodrag
  • 121
  • 1
  • 1
  • 5
12
votes
1 answer

KVM Host with 88 physical cores uses only 14 on 64 core Guest

I do have a server with 2 CPUs (22 Cores each plus HT). I created a KVM Guest with 64 allocated cores. When I run a compilation task the virtual machine shows all 64 cores at 100% (at moderate Disk I/O and memory usage) but on the physical machine…
12
votes
5 answers

Solidworks: activation license mode is not supported in this virtual environment (Qemu-KVM)

The question is not around Solidworks actually, so please continue to read. The whole idea of virtualization is to be hardware independent. Before our eyes a whole new dependency level is being created - affixment to the hypervisor. As far as I know…
Michal Sokolowski
  • 1,471
  • 1
  • 11
  • 24
12
votes
7 answers

libvirt network error - no 'default' network device found

My original purpose is to create centos image for openstack. Although I did directly with kvm, still wondering about error. Was using this manual for my task. After this command: # virt-install --virt-type kvm --name centos-6.4 --ram 1024…
holms
  • 1,524
  • 7
  • 20
  • 37
12
votes
5 answers

what cluster management software to use for linux?

I have found the following cluster management software tools: pacemaker (clusterlabs.org), - original a Heartbeat project, focus for high-availability, will be in the next debian version openqrm (openqrm.com), - web gui - broader usage, a A site…
yvess
  • 413
  • 6
  • 14
12
votes
2 answers

Jumbo frames between KVM guest and host?

I am trying to implement a 9000 byte MTU for storage communication between KVM guests and the host system. The host has a bridge (br1) with a 9000 byte MTU: host# ip link show br1 8: br1: mtu 9000 qdisc noqueue…
larsks
  • 43,623
  • 14
  • 121
  • 180
12
votes
2 answers

Any way to release focus on a KVM guest in virt-manager without having to click Ctrl_L + Alt_L?

Is there a way to move my mouse in and out of a KVM guest in virt-manager without having to click to gain focus of the window and release focus by pressing Ctrl_L+ Alt_L? BACKGROUND I typically connect from a Fedora 14 system using virt-manager to…
slm
  • 7,615
  • 16
  • 56
  • 76
12
votes
1 answer

Assign individual NIC to KVM guest

I have a server with 6 NICs installed and is running Ubuntu 12.04LTS. I want to setup 4 guest VMs using kvm. Now I want to assign 2 NICs for the host(1 Public IP and 1 private IP), and 1 NIC each to 4 guest VM(all private IP). How do I do…
Bin S
  • 123
  • 1
  • 1
  • 4
12
votes
6 answers

Convert directory to QEMU/KVM virtual disk image

I have a directory filled with data at /var/backups/disk1 that I want to convert into a virtual disk image which I'll then be able to boot using QEMU or KVM (the directory contains the file system for a virtual machine, copied out via rsync). While…
Chris
  • 121
  • 1
  • 1
  • 3
12
votes
3 answers

LVM volume group shared between KVM/libvirt host and guests: is this a bad idea?

I have just built a shiny new KVM/libvirt-based virtual machine host, containing 4 SATA II hard drives, and running CentOS 5.5 x86_64. I have decided to create virtual machine disks as logical volumes in an LVM volume group managed as a libvirt…
mrwmc
  • 143
  • 1
  • 6
12
votes
5 answers

Why is idle windows VM using so much CPU?

I have 2 VMs running as guests on a KVM virtualization platform running on Ubuntu 10.04. One VM is an Ubuntu 10.04 system, the other is a Windows 7 system. When both machines are completely logged out, the Linux machine uses 1% CPU, the Windows…
user13328
11
votes
3 answers

Networking between KVM VM and docker container on same host

On a Debian-Stretch host (connected to physical LAN) I have a new docker installation (v18.09) with one database container (port mapped to the host) and I run KVM/libvirt with some Debian-Stretch VMs. I can access the docker container and the VMs…
11
votes
3 answers

kvm to vmware migration - lvm based guest + multipathing

What is recommended way of migrate from kvm to vmware in case of lvm based guest with multipathing? I found that similar questions were already asked few years ago: How to migrate KVM based VMs running in LVM setup to Vmdk images converting KVM…
joe33
  • 111
  • 1
  • 4
11
votes
1 answer

Difference between qemu-kvm, qemu-system-x86_64, qemu-x86_64

For new features, I recently updated qemu-kvm 1.5.3 to qemu 2.5.0, but I saw several qemu binaries, /usr/local/bin/qemu-x86_64 and /usr/local/bin/qemu-system-x86_64. It seems qemu-system-x86_64 is the emulator program, since libvirt won't recognize…
dotslashlu
  • 401
  • 1
  • 3
  • 11