No history yet

Introduction to Hypervisors

The Engine of Virtualization

Virtualization lets one physical computer act like several separate computers. Think of it like an apartment building. Instead of one family living in a giant mansion, a contractor divides the space into multiple apartments, each with its own kitchen, bathroom, and living area. Each family can live independently without interfering with the others, even though they all share the same foundation and structure.

In the world of computing, the software that acts as this contractor is called a hypervisor.

Hypervisor

noun

A type of software that creates and runs virtual machines (VMs). It allows one host computer to support multiple guest VMs by virtually sharing its resources, such as memory and processing.

Also known as a virtual machine monitor (VMM), the hypervisor is the key ingredient that makes virtualization possible. It sits between the physical hardware and the virtual machines, acting as a traffic cop. It separates the computer's resources—like the CPU, memory, and storage—and provides each virtual machine with its own slice.

Each virtual machine runs its own operating system and functions like a completely separate computer, even though it’s sharing the resources of one physical computer.

This setup allows you to run different operating systems on the same machine. You could have a Windows machine running a virtual instance of Linux to test software, or a single powerful server in a data center running dozens of virtual servers for different customers.

Hypervisors come in two main varieties, each with a different approach to managing this process.

Two Flavors of Hypervisor

The primary distinction between hypervisors comes down to where they live in the computer's software stack: do they run directly on the hardware, or do they run on top of an existing operating system?

Type 1: Bare-Metal Hypervisors A Type 1 hypervisor is installed directly onto a computer's physical hardware, just like a traditional operating system. In fact, it is the operating system. There is no other software between it and the hardware.

This direct access to the physical hardware makes Type 1 hypervisors extremely efficient and secure. They are the standard for enterprise-level applications and cloud computing, where performance and stability are critical.

Common examples include:

  • VMware ESXi
  • Microsoft Hyper-V
  • KVM (Kernel-based Virtual Machine)
  • Xen

Type 2: Hosted Hypervisors A Type 2 hypervisor runs as a software application on top of an existing operating system, which is called the host operating system. You install it just like any other program.

Because they run within an operating system, Type 2 hypervisors are simpler to set up and manage. This makes them ideal for individual users, developers, and testers who need to run different operating systems on their personal computers without dedicating an entire machine to the task.

Examples you might have used include:

  • Oracle VirtualBox
  • VMware Workstation/Fusion
  • Parallels Desktop

The tradeoff for this convenience is a slight performance penalty. Since the hypervisor's requests for hardware resources must pass through the host operating system first, there's an extra layer of translation that can slow things down compared to a bare-metal setup.

FeatureType 1 (Bare-Metal)Type 2 (Hosted)
InstallationDirectly on hardwareAs an app on a host OS
PerformanceHighModerate
Best ForServers, data centersDesktops, testing
ExamplesHyper-V, ESXi, KVMVirtualBox, VMware Workstation

Whether running directly on hardware or as an application, hypervisors are the fundamental technology that enables the efficiency and flexibility of virtualization.

Quiz Questions 1/5

What is the primary role of a hypervisor?

Quiz Questions 2/5

In the provided analogy comparing virtualization to an apartment building, what does an individual apartment represent?