Skip to main content
VIRTUALISATION · EDGE COMPUTING

Type 1 vs Type 2 Hypervisor: What Is the Difference?

A Type 1 hypervisor runs directly on a computer’s hardware and hosts virtual machines above it. A Type 2 hypervisor runs as an application on top of an ordinary operating system. Type 1 gives better performance, isolation and uptime, so it is used on servers and edge systems. Type 2 is simpler to install and suits desktops, testing and development.

01

What a hypervisor is

A hypervisor is the layer of software that lets one computer run several operating systems at the same time, each inside its own virtual machine. It shares out the processor cores, memory, storage and network ports between the virtual machines and keeps them isolated, so a crash or a restart in one does not disturb the others.

The Type 1 vs Type 2 hypervisor question is about where that layer sits. A Type 1 hypervisor, also called native or bare metal, runs directly on the hardware. A Type 2 hypervisor, also called hosted, runs as a program on top of a normal operating system such as Windows, Linux or macOS.

Both rely on the processor. Current Intel and AMD processors include hardware-assisted virtualisation, Intel VT-x and AMD-V, which lets guest operating systems run their code directly on the processor with the hypervisor stepping in only when needed.

02

Type 1 hypervisors: running on bare metal

A Type 1 hypervisor is installed on the computer in place of a conventional operating system, or is built into one at the lowest level. Nothing sits between it and the hardware, which keeps overhead low and leaves fewer components that can fail or be attacked. Virtual machines are created and managed from a console or over the network. This is the type used on servers, in data centres and on edge systems that run unattended.

  • //
    VMware ESXi. Broadcom’s server hypervisor, renamed ESX from version 9. It installs directly on the server.
  • //
    Microsoft Hyper-V. Part of Windows Server and an optional feature in some editions of Windows. Microsoft describes it as a Type 1 hypervisor.
  • //
    KVM. Kernel-based Virtual Machine, part of the Linux kernel since 2007. It turns Linux itself into the hypervisor, and platforms such as Proxmox VE are built on it.
  • //
    Xen. An open-source hypervisor that the Xen Project describes as Type 1, or bare metal.
  • //
    ACRN. A Linux Foundation project launched in 2018: a Type 1 reference hypervisor built with real-time and safety-critical embedded systems in mind.
03

Type 2 hypervisors: running on a host operating system

A Type 2 hypervisor is installed like any other application. The host operating system starts first, and the hypervisor asks it for processor time, memory and access to devices on behalf of its virtual machines. That extra layer costs some performance, and the virtual machines depend on the host staying healthy, but set-up takes minutes and the computer remains usable as a normal PC.

Oracle describes VirtualBox as a hosted, or Type 2, hypervisor, with versions for Windows, macOS, Linux and Solaris hosts. VMware Workstation and Fusion, which Broadcom calls desktop hypervisors, fill the same role. Engineers use them to test software on another operating system, to try an update before it reaches a live machine, or to keep an old engineering tool running on a new laptop.

04

Type 1 and Type 2 compared

The table sets the two types side by side. The differences are tendencies, not absolutes, and they narrow on fast modern hardware.

Aspect Type 1 (bare metal) Type 2 (hosted)
Runs on The hardware A host operating system
Performance Close to native Lower, because requests pass through the host
Isolation Strong; little software beneath the virtual machines Depends on the security and stability of the host
Set-up Takes over the machine; managed remotely Installed like an application
Direct device access Network cards and GPUs can be passed through to a virtual machine Limited; mostly USB devices and emulated hardware
Typical use Servers, edge systems, always-on workloads Desktops, development, testing and training
Examples VMware ESXi, Hyper-V, KVM, Xen VirtualBox, VMware Workstation and Fusion
Layer diagram of a Type 1 hypervisor running on the hardware and a Type 2 hypervisor running on a host operating system
FIG · 01A Type 1 hypervisor sits directly on the hardware, while a Type 2 hypervisor runs on top of a host operating system.
FAQ · 01
What is a virtual server?
A server that runs as software on shared hardware. A hypervisor splits one physical server into several virtual machines, each with its own operating system, so one machine can do the work of many.
Read the full FAQ —
05

Where the line blurs: KVM and Hyper-V

The two-type model is a simplification, and some current products do not fit it neatly. KVM is loaded as part of an ordinary Linux installation, which looks like Type 2, yet once loaded the Linux kernel is the hypervisor and runs on the hardware, so it is generally classed as Type 1. Red Hat lists it that way.

Hyper-V causes similar confusion on a desktop. Turning it on in Windows looks like adding an application, but the hypervisor then starts beneath Windows. The copy of Windows you were using becomes the root partition, a privileged partition that manages the others and has direct access to the hardware. In practice the label matters less than two questions: does the hypervisor control the hardware directly, and is the system built to run unattended?

06

Hypervisors on industrial PCs and edge servers

On the factory floor and at remote sites, a hypervisor is mainly a way to put several jobs on one computer. A single industrial PC can run a Windows HMI, a Linux data gateway and a legacy application in separate virtual machines, replacing three computers and their spares. A real-time hypervisor goes further and gives a control task its own processor cores beside a general-purpose operating system, a method our white paper on real-time operating systems describes. These are Type 1 designs, since a general-purpose host underneath would add delays that cannot be bounded.

Our industrial PCs cover consolidation in a cabinet or on a machine, and our edge AI servers add PCIe x16 slots for the graphics cards that AI workloads need. Whatever the size, four things decide whether a computer makes a good host.

  • //
    Cores and memory. Each virtual machine needs its own share, so add up the guests instead of sizing for one. ECC memory is worth having when many workloads depend on one machine.
  • //
    Virtualisation features. Intel VT-x or AMD-V in the processor, and an IOMMU such as Intel VT-d to assign a network card or GPU directly to one virtual machine.
  • //
    Network ports. Separate ports for management, plant and machine networks keep traffic apart and make pass-through simpler.
  • //
    Remote management. A bare-metal host has no desktop to walk up to, so out-of-band access to its console matters.
FAQ · 02
What is an edge server?
An edge server is a server installed close to where data is created or used, such as a factory, depot, shop or cell site, instead of in a central data centre or the cloud. It processes data locally for low latency and lower bandwidth.
Read the full FAQ —
07

Quick answers on hypervisors

Hypervisors: common questions

Is Hyper-V a Type 1 or Type 2 hypervisor?

Type 1. Microsoft describes Hyper-V as a Type 1 hypervisor that runs directly on the hardware, on Windows Server and on Windows desktop editions alike.

Is KVM a Type 1 or Type 2 hypervisor?

Generally Type 1. KVM makes the Linux kernel itself the hypervisor, although it is installed as part of a normal Linux system.

Is Proxmox a Type 1 hypervisor?

In effect, yes. Proxmox VE is a management platform built on KVM and Linux containers, so its virtual machines run on a Type 1 hypervisor.

Is VirtualBox a hypervisor?

Yes, a Type 2 one. Oracle calls VirtualBox a hosted hypervisor. It needs an existing operating system to run on.

Is a container the same as a virtual machine?

No. A virtual machine carries its own operating system. Containers share the kernel of the system they run on, so they are lighter but less isolated. Many edge systems use both.

Which type is faster?

Usually Type 1. It has less software between the virtual machine and the hardware. For light desktop use the difference is often hard to notice.

We supply industrial PCs and edge servers with the processor, memory, storage and network cards for a virtualised system fitted and tested as standard, ready for the hypervisor you choose.