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 raw disk has comparable write, slow read

I first ran fio tests, and apparently my write speed is basically 90%, but my read speed is 40%. Here is my xml file: /usr/bin/qemu-system-x86_64
1
vote
0 answers

VNC error during live migration of KVM vm

If I live migrate a KVM vm from host 1 to host2 then I get error for vnc. Is there any way to change the vnc dynamically before the migration starts. I donot want to stop and start my vm before or during mirgation. error: internal error: qemu…
Ash
  • 31
  • 1
  • 3
1
vote
1 answer

find lvm that mounted in virtual machine

long time ago I mounted 3 lvm with same size on a virtual machine. now I want to umount one of them but I can't remember which lvm is mounded on which directory. How can find mount point of lvm in virtual machine?
haj_baba
  • 11
  • 3
1
vote
1 answer

KVM VM which MAC address to give hosting company (Fasthosts)

To allow traffic to be routed through there network for my KVM VM my hosting company want to know the MAC address. The way I have it set up is my VM used a different IP from the host. I have bridges and the VM (which uses the second IP I got from…
Ben Edwards
  • 341
  • 4
  • 13
1
vote
1 answer

Why do hosting companies typically disable nested KVM virtualization?

I have the impression that most virtual servers provide nowadays use KVM, but that they disable nested KVM virtualization. Hence I, as a consumer, have to resort to tools like (the awesome) systemd-nspawn to subdivide my virtual server into further…
1
vote
0 answers

Understanding KVM Bridges

I've spent a few days learning and playing with KVM. I understand a Bridge is like a virtual unmanaged switch. I looked at a few install guides (i.e. https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-kvm-qemu-on-centos-7-rhel-7.html). …
Ben Edwards
  • 341
  • 4
  • 13
1
vote
1 answer

Intermittent KVM performance issues causing performance glitches

We are currently hosted on a hosting provider that allows us to set up multiple virtual machines using KVM, where each virtual machine runs on it's own physical box (ie: one hypervisor, one VM with all the memory and CPU allocated to it). Recently…
1
vote
1 answer

How (if at all) is KVM used with enterprise workloads?

This is sort of similar to Q123566, but I want to add a few clarifications: KVM is the Linux-kernel-based virtualization technology (specifically: a hypervisor) that underlies most non-Xen FOSS virtualization platforms/tools. QEMU is an atomic…
1
vote
3 answers

How to reduce KVM qcow2 disk size?

When I boot in my guest Debian it says it size is 2.7G. df -h Filesystem Size Used Avail Use% Mounted on udev 718M 0 718M 0% /dev tmpfs 147M 6.2M 141M 5% /run /dev/vda1 98G 2.7G 91G 3% / tmpfs …
1
vote
2 answers

virt-install: error: unrecognized arguments: (but no arguments listed)

Been trying to create my first VM with KVM but getting a cryptic error from virt-install. It's saying I have a 'unrecognized arguments' but does not say which argument: $ sudo virt-install \ >             --name centos7_vm1 \ >             --memory…
Ben Edwards
  • 341
  • 4
  • 13
1
vote
0 answers

Guest machine using all the RAM allocated to it on server

I have a server that has KVM installed on it. this server I have created for testing purposes. server's configuration : OS: CentOS 7 Space: 60GB RAM: 2GB I created one Windows VM on this server with 1400MB RAM and 20GB HDD. So the problem is…
1
vote
1 answer

qemu/kvm file/block disk device types - and iothreads

On a CentOS 7 host, I'm creating a VM from an Amazon Linux 2 qcow2 image: Download Amazon Linux 2 cloud-init image (.qcow2 format) Copy this file, run qemu-img resize to expand it to 40G Define it in my VM using and
turbonerd
  • 76
  • 5
  • 19
1
vote
1 answer

Using virt-install to create a Ubuntu VM with iso / access to virsh console

I am trying to set up a Ubuntu server VM (CLI only) on a Debian host (CLI only) using virt-install (version 1.0.1). But following install: sudo virt-install --name= --disk…
2one
  • 141
  • 6
1
vote
1 answer

Where are the OS specific properties located used by virt-install --os-variant

Using virt-install ... --os-variant win10 ... virt-install create a new VM optimized for Windows 10. But where are those OS specific properties located? E.g. machine-type and the elements (the one specified in the virt XML) Been looking in…
MrCalvin
  • 354
  • 1
  • 6
  • 18
1
vote
0 answers

How to migrate a Linux KVM guest disk to another partition?

I've invested in some SSD drives and want to run my Linux KVM guests from them (currently on a SATA array). The current location of the guests is /var/lib/libvirt/images. I have the SSD volume mounted on /mnt/ssd/. The VMs do some calendaring and…
Nstevens
  • 319
  • 6
  • 15
1 2 3
99
100