---
title: "KVM"
url: https://www.daytona.com/definitions/k/kvm
---

# KVM

KVM is the Linux feature that turns the kernel into a hypervisor.

KVM, short for Kernel-based Virtual Machine, is a module of the Linux kernel. It uses the hardware virtualization features of the processor to run guest virtual machines. KVM handles only the work that needs those features and leaves guest setup and device emulation to a separate program. This split keeps the privileged part small. KVM ships in the mainline kernel, so nearly any Linux host with a suitable processor can run guests.

The separate program is the virtual machine monitor, such as QEMU, Firecracker, or Cloud Hypervisor. It runs as an ordinary process on the host and talks to KVM through a device file. The monitor creates each guest and gives it memory and virtual processors. Each request on the device file returns a new handle for the guest or for one of its processors. Any program with access to the file can run guests, so access to it is restricted.

Because KVM is part of Linux, the host schedules and limits each guest like any other process. Host tools such as cgroups therefore work on guests too. Several of the largest public clouds run their virtual machines on KVM or on a hypervisor derived from it. MicroVM-based sandboxes also depend on KVM for their hardware isolation. Ending a guest is as simple as stopping its monitor process.

## Related terms

- [Firecracker](https://www.daytona.com/definitions/f/firecracker.md)
- [Hypervisor](https://www.daytona.com/definitions/h/hypervisor.md)
- [MicroVM](https://www.daytona.com/definitions/m/microvm.md)
- [QEMU](https://www.daytona.com/definitions/q/qemu.md)
