Kernel-based Virtual Machine
Template:Short description Script error: No such module "Distinguish".
Script error: No such module "Infobox".Template:Template other Script error: No such module "Check for unknown parameters".Script error: No such module "Check for conflicting parameters".
Kernel-based Virtual Machine (KVM) is a free and open-source virtualization module in the Linux kernel that allows the kernel to function as a hypervisor. It was merged into the mainline Linux kernel in version 2.6.20, which was released on February 5, 2007.[1] KVM requires a processor with hardware virtualization extensions, such as Intel VT or AMD-V.[2] KVM has also been ported to other operating systems such as FreeBSD[3] and illumos[4] in the form of loadable kernel modules.
KVM was originally designed for x86 processors but has since been ported to ESA/390,[5] PowerPC,[6] IA-64, and ARM.[7][8] The IA-64 port was removed in 2014.[9]
KVM supports hardware-assisted virtualization for a wide variety of guest operating systems including BSD, Solaris, Windows, Haiku, ReactOS, Plan 9, AROS, macOS, and even other Linux systems.[10][11] In addition, Android 2.2, GNU/Hurd[12] (Debian K16), Minix 3.1.2a, Solaris 10 U3 and Darwin 8.0.1, together with other operating systems and some newer versions of these listed, are known to work with certain limitations.[13]
Additionally, KVM provides paravirtualization support for Linux, OpenBSD,[14] FreeBSD,[15] NetBSD,[16] Plan 9[17] and Windows guests using the VirtIO API.[18] This includes a paravirtual Ethernet card, disk I/O controller,[19] balloon driver, and a VGA graphics interface using SPICE or VMware drivers.
History
Avi Kivity began the development of KVM in mid-2006 at Qumranet, a technology startup company[20] that was acquired by Red Hat in 2008.[21]
KVM surfaced in October 2006[22] and was merged into the Linux kernel mainline in version 2.6.20, released on 5 February 2007.[1]
KVM is maintained by Paolo Bonzini.[23]
Internals
KVM provides device abstraction but no processor emulation. It exposes the Template:Mono interface, which a user mode host can then use to:
- Set up the guest VM's address space. The host must also supply a firmware image (usually a custom BIOS when emulating PCs) that the guest can use to bootstrap into its main OS.
- Feed the guest simulated I/O.
- Map the guest's video display back onto the system host.
Originally, a forked version of QEMU was provided to launch guests and deal with hardware emulation that is not handled by the kernel. That support was eventually merged into the upstream project. There are now numerous Virtual Machine Monitors (VMMs) which can utilise the KVM interface including kvmtool, crosvm and Firecracker and numerous specialised VMMs built with frameworks such as rust-vmm.
Internally, KVM uses SeaBIOS as an open source implementation of a 16-bit x86 BIOS.[25]
Features
KVM has had support for hot swappable vCPUs,[26] dynamic memory management,[27] and Live Migration since February 2007.[28][29] It also reduces the impact that memory write-intensive workloads have on the migration process.[30]
Emulated hardware
KVM itself emulates very little hardware, instead deferring to a higher level client application such as QEMU, crosvm, or Firecracker for device emulation.
KVM provides the following emulated devices:
Graphical management tools
- KimchiTemplate:Snd web-based virtualization management tool for KVM
- Virtual Machine ManagerTemplate:Snd supports creating, editing, starting, and stopping KVM-based virtual machines, as well as live or cold drag-and-drop migration of VMs between hosts.
- Proxmox Virtual EnvironmentTemplate:Snd an open-source virtualization management package including KVM and LXC. It has a bare-metal installer, a web-based remote management GUI, a HA cluster stack, unified storage, flexible network, and optional commercial support.
- OpenQRMTemplate:Snd management platform for managing heterogeneous data center infrastructures
- GNOME BoxesTemplate:Snd Gnome interface for managing libvirt guests on Linux
- oVirtTemplate:Snd open-source virtualization management tool for KVM built on top of libvirt
Licensing
The kernel-mode component of KVM is a part of the Linux kernel, itself licensed under GNU General Public License, version 2.[32]
See also
Script error: No such module "Portal".
<templatestyles src="Div col/styles.css"/>
References
<templatestyles src="Reflist/styles.css" />
- ↑ a b Script error: No such module "citation/CS1".
- ↑ KVM FAQ: What do I need to use KVM?
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Gmane Loom Template:Webarchive
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "Citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Interview: Avi Kivity Template:Webarchive on KernelTrap
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".Script error: No such module "Unsubst".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
Script error: No such module "Check for unknown parameters".
Bibliography
- Script error: No such module "citation/CS1".
External links
- Best practices for the Kernel-based Virtual Machine Template:Webarchive, IBM, second edition, April 2012
- Virtio-blk Performance Improvement, KVM Forum 2012, November 8, 2012, by Asias He
- Wikibook QEMU & KVM
- crosvm - Chrome OS virtual machine monitor
- Firecracker VMM for KVM