Software:Kernel-based Virtual Machine
Original author(s) | Qumranet |
---|---|
Developer(s) | The Linux Kernel community |
Written in | C |
Operating system | Unix-like |
Platform | ARM, PowerPC, ESA/390, IA-32, x86-64 |
Type | Hypervisor |
License | GNU GPL or LGPL |
Website | www |
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] The IA-64 port was removed in 2014.[8]
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.[9][10] In addition, Android 2.2, GNU/Hurd[11] (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.[12]
Additionally, KVM provides paravirtualization support for Linux, OpenBSD,[13] FreeBSD,[14] NetBSD,[15] Plan 9[16] and Windows guests using the VirtIO API.[17] This includes a paravirtual Ethernet card, disk I/O controller,[18] 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[19] that was acquired by Red Hat in 2008.[20]
KVM surfaced in October 2006[21] and was merged into the Linux kernel mainline in kernel version 2.6.20, which was released on 5 February 2007.[1]
KVM is maintained by Paolo Bonzini.[22]
Internals
KVM provides device abstraction but no processor emulation. It exposes the /dev/kvm 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 isn't 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.[24]
Features
KVM has had support for hot swappable vCPUs,[25] dynamic memory management,[26] and Live Migration since February 2007.[27][28] It also reduces the impact that memory write-intensive workloads have on the migration process.[29]
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:
- Virtual CPU and memory[30]
- VirtIO
Graphical management tools
- Kimchi – web-based virtualization management tool for KVM
- Virtual Machine Manager – 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 Environment – 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.
- OpenQRM – management platform for managing heterogeneous data center infrastructures
- GNOME Boxes – Gnome interface for managing libvirt guests on Linux
- oVirt – open-source virtualization management tool for KVM built on top of libvirt
Licensing
The kernel-mode component of KVM is a part of Linux kernel, itself licensed under GNU General Public License, version 2.[31]
See also
- CloudStack
- Comparison of platform virtualization software
- Kernel same-page merging (KSM)
- Lguest
- libguestfs
- Open Virtualization Alliance
- OpenNebula
- OpenStack
- Red Hat Virtualization
- Vx32
- Xen
References
- ↑ 1.0 1.1 "Linux kernel 2.6.20, Section 2.2. Virtualization support through KVM". 2007-02-05. http://kernelnewbies.org/Linux_2_6_20#head-bca4fe7ffe454321118a470387c2be543ee51754.
- ↑ KVM FAQ: What do I need to use KVM?
- ↑ "FreeBSD Quarterly Status Report: Porting Linux KVM to FreeBSD". http://www.freebsd.org/news/status/report-2007-07-2007-10.html#Porting-Linux-KVM-to-FreeBSD.
- ↑ "KVM on illumos". http://dtrace.org/blogs/bmc/2011/08/15/kvm-on-illumos/.
- ↑ "Gmane - Mail To News And Back Again". http://article.gmane.org/gmane.comp.emulators.kvm.devel/2570.
- ↑ Gmane Loom
- ↑ "KVM/ARM Open Source Project". https://columbia.github.com/linux-kvm-arm.
- ↑ "kernel/git/torvalds/linux.git: KVM: ia64: remove". https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=003f7de6258900e17f6206e8e417d76c75ca549f.
- ↑ "KVM wiki: Guest support status". http://www.linux-kvm.org/page/Guest_Support_Status.
- ↑ "Running Mac OS X as a QEMU/KVM Guest". http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/.
- ↑ "status". Gnu.org. https://www.gnu.org/software/hurd/hurd/status.html.
- ↑ "Guest Support Status - KVM". Linux-kvm.org. http://www.linux-kvm.org/page/Guest_Support_Status.
- ↑ "OpenBSD man page virtio(4)". https://man.openbsd.org/virtio.4.
- ↑ "virtio binary packages for FreeBSD". http://people.freebsd.org/~kuriyama/virtio/.
- ↑ "NetBSD man page virtio(4)". http://netbsd.gw.com/cgi-bin/man-cgi?virtio++NetBSD-current.
- ↑ "plan9front". https://code.google.com/p/plan9front/wiki/qemu.
- ↑ "An API for virtual I/O: virtio". LWN.net. 2007-07-11. https://lwn.net/Articles/239238/.
- ↑ "SCSI target for KVM wiki". linux-iscsi.org. 2012-08-07. http://linux-iscsi.org/wiki/vHost.
- ↑ Interview: Avi Kivity on KernelTrap
- ↑ "Red Hat Advances Virtualization Leadership with Qumranet, Inc. Acquisition". Red Hat. 4 September 2008. http://www.redhat.com/en/about/press-releases/qumranet.
- ↑ "KVM 15 equipped with live migration | IT World Canada News". 7 March 2007. https://www.itworldcanada.com/article/kvm-15-equipped-with-live-migration/7901.
- ↑ Libby Clark (7 April 2015). "Git Success Stories and Tips from KVM Maintainer Paolo Bonzini". Linux.com. http://www.linux.com/news/featured-blogs/200-libby-clark/821899-git-success-stories-and-tips-from-kvm-maintainer-paolo-bonzini.
- ↑ "KVM/QEMU Storage Stack Performance Discussion". Linux Plumbers Conference. 2010. http://www-01.ibm.com/support/knowledgecenter/api/content/nl/en-us/linuxonibm/liaav/LPCKVMSSPV2.1.pdf.[yes|permanent dead link|dead link}}]
- ↑ "SeaBIOS". seabios.org. 2013-12-21. http://www.seabios.org/SeaBIOS.
- ↑ "Hot Plugging Virtual CPUs with Red Hat Enterprise Virtualization Manager". https://access.redhat.com/articles/1339413.
- ↑ "Faq - KVM". https://www.linux-kvm.org/page/FAQ#Is_dynamic_memory_management_for_guests_supported.3F.
- ↑ "KVM-15 release [LWN.net]". https://lwn.net/Articles/223754/.
- ↑ "Migration - KVM". https://www.linux-kvm.org/page/Migration.
- ↑ "Daniel P. Berrangé » Blog Archive » Analysis of techniques for ensuring migration completion with KVM". https://www.berrange.com/posts/2016/05/12/analysis-of-techniques-for-ensuring-migration-completion-with-kvm/.
- ↑ "The Definitive KVM (Kernel-based Virtual Machine) API Documentation — the Linux Kernel documentation". https://www.kernel.org/doc/html/latest/virt/kvm/api.html#kvm-create-irqchip.
- ↑ "Linux kernel licensing rules — The Linux Kernel documentation". https://www.kernel.org/doc/html/latest/process/license-rules.html#kernel-licensing.
Bibliography
- Amit Shah (2016-11-02). "Ten years of KVM". https://lwn.net/Articles/705160/.
External links
- Best practices for the Kernel-based Virtual Machine, 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
Original source: https://en.wikipedia.org/wiki/Kernel-based Virtual Machine.
Read more |