Type 2 hypervisor

Also known as: hosted hypervisor

On this page 7

A Type 2 hypervisor, also called a hosted hypervisor, is virtualization software that runs as an application on top of a conventional host operating system and creates virtual machines that share the host’s kernel, drivers and scheduler. In virtualization and cloud practice, it is the counterpart of the Type 1 hypervisor, which runs directly on the hardware.

Typical examples are Oracle VirtualBox, VMware Workstation, VMware Fusion and Parallels Desktop. They dominate developer laptops, training labs and desktop testing, while production clouds and data centers rely almost exclusively on bare-metal hypervisors for density, isolation and predictable performance.

How a Type 2 hypervisor runs on a host operating system

A Type 2 hypervisor works by combining a user-space management process with a kernel driver installed into the host operating system. The user-space part draws the console window, emulates devices and manages configuration, while the kernel driver switches the processor into guest mode and handles the privileged transitions.

On modern processors, the guest code runs natively through hardware-assisted virtualization: Intel VT-x or AMD-V for the CPU and EPT or NPT for second-level address translation of guest memory. When the guest performs a sensitive operation, the processor triggers a VM exit, the hypervisor handles it and resumes the guest. The host kernel still schedules each virtual CPU as an ordinary host thread, which is the defining architectural difference from a Type 1 design.

The following table lists the main components and the role each plays in a hosted setup.

ComponentRuns inRole
Kernel driverHost kernel modeEnters guest mode, handles VM exits
VMM processHost user spaceOne process per VM, owns guest memory
Device emulationHost user spaceVirtual disk, network, USB and display
Guest additionsInside the guestParavirtual drivers, clipboard, shared folders
Host operating systemHardwareSchedules vCPU threads, owns real drivers
Components of a hosted virtualization stack

Because all real I/O passes through host drivers, a guest disk write travels from the guest driver to the emulated controller, into a virtual disk file such as VDI, VMDK or VHDX, and only then through the host file system to the physical drive.

Type 2 hypervisor compared with Type 1

The core distinction is where the hypervisor sits: a Type 1 hypervisor such as VMware ESXi, Xen or Hyper-V owns the hardware directly, whereas a Type 2 hypervisor depends on a general-purpose operating system underneath. The comparison below summarizes the practical consequences.

AspectType 2 hypervisorType 1 hypervisor
InstallationApplication on Windows, macOS or LinuxInstalled on bare metal
SchedulingHost scheduler, competes with host appsDedicated hypervisor scheduler
I/O pathThrough host drivers and file systemDirect or via a control domain
Attack surfaceHypervisor plus entire host OSSmall, purpose-built layer
Typical densityA handful of VMs per machineDozens to hundreds per host
Typical useDesktop, development, labsData centers, public cloud
Hosted and bare-metal hypervisors side by side

The boundary is not perfectly sharp. KVM turns the Linux kernel itself into a hypervisor and is generally classed as Type 1, although it also runs ordinary processes. Hyper-V on Windows inserts itself beneath the Windows installation, so the familiar desktop becomes a privileged partition rather than a host. The classification describes architecture, not product branding.

Performance characteristics and key parameters

With hardware assistance enabled, CPU-bound workloads run close to native speed inside a hosted VM, often within a few percent of bare metal. The overhead concentrates in storage, networking and graphics, where every operation crosses several software layers.

The parameters below decide whether a hosted VM feels responsive. The ranges are typical for a modern laptop or workstation and depend on host resources.

ParameterTypical settingEffect
vCPU count1 to half of host coresMore vCPUs can add scheduling contention
Guest memory2 to 16 GB, fixed allocationToo much starves the host and causes paging
Virtual disk typeDynamic or preallocatedPreallocated avoids growth stalls
Disk controllerVirtio, NVMe or SATA emulationParavirtual controllers cut overhead
Network modeNAT, bridged or host-onlyControls reachability and isolation
3D accelerationOff or enabledOffloads graphics to the host GPU
Settings that shape hosted VM performance

A common rule is to leave at least two cores and several gigabytes of RAM to the host, because a starved host slows every guest at the same time. Installing the vendor’s guest additions or tools is the single most effective tuning step, since it replaces fully emulated devices with paravirtualized drivers.

When a hosted hypervisor is the right choice

A Type 2 hypervisor is the right choice when convenience and coexistence with a desktop matter more than density or uptime. It installs in minutes, needs no dedicated hardware and lets one person run several operating systems side by side.

SituationRecommended choiceReason
Testing software on other OSesType 2 hypervisorRuns next to daily applications
Classroom or certification labType 2 hypervisorPortable images, easy reset via snapshots
Malware analysis workstationType 2 with strict isolationSnapshots allow fast rollback
Production server consolidationType 1 hypervisorDensity, isolation, live migration
Multi-tenant cloud platformType 1 or microVM monitorSecurity boundary and efficiency
Choosing a hypervisor type by situation

Hosted hypervisors are also a frequent target for nested virtualization: an engineer runs a Type 1 hypervisor such as ESXi inside a VirtualBox or Workstation VM to rehearse a data-center deployment. This works when the host CPU exposes nested VT-x or AMD-V to the guest, at a noticeable performance cost.

Limitations and common mistakes

The main limitation is that a Type 2 hypervisor inherits the weaknesses of its host. A host reboot for updates stops every guest, a host crash takes them all down, and a compromised host gives an attacker control over every VM.

  • Conflicting hypervisors: on Windows, enabling Hyper-V, WSL 2 or virtualization-based security can force other hosted products into a slower compatibility mode.
  • Disabled firmware virtualization: if VT-x or AMD-V is switched off in UEFI settings, 64-bit guests fail to start or run very slowly.
  • Overcommitting memory: assigning guests more RAM than the host can spare causes host paging and erratic latency.
  • Treating snapshots as backups: a snapshot depends on its base disk and is lost together with it.
  • Assuming production equivalence: timing, I/O and network behavior on a laptop differ from a cloud host, so performance tests rarely transfer.

Stripped to the essentials

A Type 2 hypervisor is a program that lets one computer pretend to be several computers. It runs like any other app on Windows, macOS or Linux, and inside its window another complete operating system boots as if it had its own machine.

Think of the host computer as a building and each virtual machine as a rented room. The building’s owner still controls the electricity, the doors and the elevators, so the rooms depend on the building. That makes hosted virtualization easy and flexible for personal use, but less suited to running hundreds of business systems at once.

Where it is applied

A web developer on a 16 GB laptop needs to verify that an internal application works on an older Linux distribution and on a Windows Server release used by a client. Instead of requesting two physical test machines, the developer installs a hosted hypervisor and creates two VMs with 2 vCPUs and 4 GB of RAM each, leaving the rest for the host’s editor and browser.

Each VM uses NAT networking for updates and a host-only network for test traffic. Before every test run the developer takes a snapshot, and after a failed installation simply reverts in a few seconds. The result is a reproducible test environment that costs nothing beyond the laptop, while the client’s production stack continues to run on bare-metal hypervisors in a data center.