Kernel-based Virtual Machine

Appearance move to sidebar hide KVM
Original author(s)Qumranet
Developer(s)The Linux Kernel community
Repository
Written inC
Operating systemUnix-like
PlatformARM, PowerPC, ESA/390, IA-32, x86-64
TypeHypervisor
LicenseGNU GPL or LGPL
Websitewww.linux-kvm.org

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. KVM requires a processor with hardware virtualization extensions, such as Intel VT or AMD-V. KVM has also been ported to other operating systems such as FreeBSD and illumos in the form of loadable kernel modules.

KVM was originally designed for x86 processors but has since been ported to ESA/390, PowerPC, IA-64, and ARM. The IA-64 port was removed in 2014.

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. In addition, Android 2.2, GNU/Hurd (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.

Additionally, KVM provides paravirtualization support for Linux, OpenBSD, FreeBSD, NetBSD, Plan 9 and Windows guests using the VirtIO API. This includes a paravirtual Ethernet card, disk I/O controller, 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 that was acquired by Red Hat in 2008.

KVM surfaced in October 2006 and was merged into the Linux kernel mainline in kernel version 2.6.20, which was released on 5 February 2007.

KVM is maintained by Paolo Bonzini.

Internals

A high-level overview of the KVM/QEMU virtualization environment: 3 

KVM provides device abstraction but no processor emulation. It exposes the /dev/kvm interface, which a user mode host can then use to:

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 build with frameworks such as rust-vmm.

Internally, KVM uses SeaBIOS as an open source implementation of a 16-bit x86 BIOS.

Features

KVM has had support for hot swappable vCPUs, dynamic memory management, and Live Migration since February 2007. It also reduces the impact that memory write-intensive workloads have on the migration process.

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

libvirt supports KVM

Licensing

The kernel-mode component of KVM is a part of Linux kernel, itself licensed under GNU General Public License, version 2.

See also

References

  1. ^ a b "Linux kernel 2.6.20, Section 2.2. Virtualization support through KVM". kernelnewbies.org. 2007-02-05. Retrieved 2014-06-16.
  2. ^ KVM FAQ: What do I need to use KVM?
  3. ^ "FreeBSD Quarterly Status Report: Porting Linux KVM to FreeBSD".
  4. ^ "KVM on illumos".
  5. ^ "Gmane - Mail To News And Back Again". Archived from the original on 2007-09-29. Retrieved 2007-05-07.
  6. ^ Gmane Loom Archived 2007-09-29 at the Wayback Machine
  7. ^ "KVM/ARM Open Source Project". Archived from the original on 2013-03-10. Retrieved 2017-11-01.
  8. ^ Christoffer Dall; Jason Nieh (2014). "KVM/ARM: The Design and Implementation of the Linux ARM Hypervisor". ACM International Conference on Architectural Support for Programming Languages and Operating Systems.
  9. ^ "kernel/git/torvalds/linux.git: KVM: ia64: remove".
  10. ^ "KVM wiki: Guest support status". Retrieved 2007-05-27.
  11. ^ "Running Mac OS X as a QEMU/KVM Guest". Retrieved 2014-08-20.
  12. ^ "status". Gnu.org. Retrieved 2014-02-12.
  13. ^ "Guest Support Status - KVM". Linux-kvm.org. Retrieved 2014-02-12.
  14. ^ "OpenBSD man page virtio(4)". Retrieved 2018-02-04.
  15. ^ "virtio binary packages for FreeBSD". Retrieved 2012-10-29.
  16. ^ "NetBSD man page virtio(4)". Archived from the original on 2019-11-13. Retrieved 2013-07-15.
  17. ^ "plan9front". Retrieved 2013-02-11.
  18. ^ "An API for virtual I/O: virtio". LWN.net. 2007-07-11. Retrieved 2014-04-16.
  19. ^ "SCSI target for KVM wiki". linux-iscsi.org. 2012-08-07. Archived from the original on 2020-06-05. Retrieved 2012-08-12.
  20. ^ Interview: Avi Kivity Archived 2007-04-26 at the Wayback Machine on KernelTrap
  21. ^ "Red Hat Advances Virtualization Leadership with Qumranet, Inc. Acquisition". Red Hat. 4 September 2008. Retrieved 16 June 2015.
  22. ^ "KVM 15 equipped with live migration | IT World Canada News". 7 March 2007.
  23. ^ Libby Clark (7 April 2015). "Git Success Stories and Tips from KVM Maintainer Paolo Bonzini". Linux.com. Archived from the original on 15 March 2016. Retrieved 17 June 2015.
  24. ^ Khoa Huynh; Stefan Hajnoczi (2010). "KVM/QEMU Storage Stack Performance Discussion" (PDF). IBM. Linux Plumbers Conference. Retrieved January 3, 2015.
  25. ^ "SeaBIOS". seabios.org. 2013-12-21. Retrieved 2014-06-16.
  26. ^ "Hot Plugging Virtual CPUs with Red Hat Enterprise Virtualization Manager".
  27. ^ "Faq - KVM".
  28. ^ "KVM-15 release ".
  29. ^ "Migration - KVM".
  30. ^ "Daniel P. Berrangé » Blog Archive » Analysis of techniques for ensuring migration completion with KVM".
  31. ^ "The Definitive KVM (Kernel-based Virtual Machine) API Documentation — the Linux Kernel documentation".
  32. ^ "Linux kernel licensing rules — The Linux Kernel documentation". www.kernel.org. Archived from the original on 7 March 2020. Retrieved 2020-01-06.

Bibliography