---
title: "Virtual Machine (VM)"
url: https://www.daytona.com/definitions/v/virtual-machine-vm
---

# Virtual Machine (VM)

A virtual machine (VM) is a software-defined computer that runs a complete operating system, its own kernel included, as if it owned the hardware.

A virtual machine runs on a physical machine called the host, and the operating system inside it is the guest. One host can run many guests, each unaware of the others. To the software inside, nothing looks different from a real computer. The guest has its own virtual processors, memory, disks and network devices.

A hypervisor decides which physical resources back each guest and keeps guests apart. Most guest code runs directly on the physical processor, so a guest runs close to the speed of the host. The hypervisor traps and handles only the events it chooses to intercept, such as privileged instructions or access to a virtual device. Each guest behaves as if it had the processor to itself.

Because the whole machine is defined in software, its state can be saved as a snapshot and restored later, on the same host or another. The same property lets one host run guests of different operating systems side by side. A saved disk can also be copied to start many identical machines, which is how cloud images work. Because each guest has its own kernel, a virtual machine also gives a strong isolation boundary for sandboxes.

## Related terms

- [Auto-stop](https://www.daytona.com/definitions/a/auto-stop.md)
- [Bare metal](https://www.daytona.com/definitions/b/bare-metal.md)
- [Baseboard management controller](https://www.daytona.com/definitions/b/baseboard-management-controller.md)
- [Block storage](https://www.daytona.com/definitions/b/block-storage.md)
- [Boot process](https://www.daytona.com/definitions/b/boot-process.md)
- [Capabilities](https://www.daytona.com/definitions/c/capabilities.md)
