---
title: "Nested virtualization"
url: https://www.daytona.com/definitions/n/nested-virtualization
---

# Nested virtualization

Nested virtualization is running virtual machines inside a virtual machine, which means virtualizing twice.

Nested virtualization runs a hypervisor inside a guest virtual machine, which then starts its own guests. The outer hypervisor runs on the physical host. The inner hypervisor runs in a virtual machine that the outer one created. The guests of the inner hypervisor are two layers away from the hardware.

The processor's hardware virtualization features normally serve only one hypervisor. To support nesting, the outer hypervisor must expose these features to its guest, often by emulating them. Each privileged event in an inner guest can cause several VM exits through both layers. This extra work makes nested guests slower than guests that run directly on the host.

Nested virtualization matters for any system that runs its own hypervisor on top of cloud infrastructure. Ordinary cloud instances are already virtual machines, so running microVMs inside one means virtualizing twice. Only some cloud instance types allow it. Platforms that need full speed for sandboxes often rent bare-metal servers instead, which avoids the second layer.

## Related terms

- [Bare metal](https://www.daytona.com/definitions/b/bare-metal.md)
