Skip to content
VirtualLP Virtual Learning Platform

Virtualization and Type-1 Hypervisors (ESXi, Xen, Hyper-V)

14 min read Topic 2 of 31 3 hands-on labs

One physical computer can run several virtual machines. Each VM is a computer created using software and can have its own operating system.

The real computer is the host. The system inside a VM is the guest. A hypervisor shares the host's resources between guests. You will use these terms in the ESXi, Xen and Hyper-V practicals.

Virtualization

Virtualization creates software-based versions of resources such as computers, storage or networks. For example, one physical server can run several separate virtual machines.

big house split into flats

A large house (the physical server) is split into several flats (the VMs). Each flat has its own door, kitchen and lock, and families in different flats do not disturb each other. The building manager who divides the space and shares the water and electricity fairly is the hypervisor.

The hypervisor

The hypervisor (also called the Virtual Machine Monitor, VMM) is the layer that creates and runs VMs. It shares the CPU (Central Processing Unit), memory, storage and network between them and keeps them isolated from each other.

flowchart TB
    subgraph T1["Type-1 (bare-metal)"]
        direction TB
        V1[VM: Windows] & V2[VM: Linux] & V3[VM: Linux]
        H1[Hypervisor – ESXi / Xen / Hyper-V]
        HW1[(Physical server)]
        V1 & V2 & V3 --> H1 --> HW1
    end
    subgraph T2["Type-2 (hosted)"]
        direction TB
        W1[VM] & W2[VM]
        H2[Hypervisor app – VirtualBox / VMware Workstation]
        OS[Host OS – Windows / macOS / Linux]
        HW2[(PC / laptop)]
        W1 & W2 --> H2 --> OS --> HW2
    end
Type-1 (bare-metal / native) Type-2 (hosted)
Runs on Directly on the hardware On top of a normal operating system
Examples VMware ESXi, Xen / XCP-ng, Microsoft Hyper-V, KVM (Kernel-based Virtual Machine) Oracle VirtualBox, VMware Workstation, Parallels
Performance Almost as fast as the real machine, low overhead One extra layer → more overhead
Used for Data centres, clouds, servers Desktops, labs, development
Managed with Remote web UI (User Interface) / CLI (Command-Line Interface) / central manager (vCenter, XO, SCVMM) A local window (GUI (Graphical User Interface)) on your PC
Key point

All three hypervisors in Practicals 1–3 – ESXi, Xen and Hyper-V – are Type-1. Hyper-V is switched on as a Windows role, but once it is enabled, Windows itself runs in a special parent partition on top of the hypervisor.

Techniques of virtualization

Technique How the guest runs Guest OS (Operating System) changed? Example
Full virtualization (binary translation) The hypervisor catches and translates special (privileged) instructions No Early VMware
Paravirtualization The guest knows it is virtual and calls the hypervisor directly with hypercalls Yes (PV drivers / kernel) Xen PV guests
Hardware-assisted (native) virtualization CPU features Intel VT-x (Virtualization Technology for x86) / AMD-V (AMD Virtualization) run guest code directly and catch sensitive operations No ESXi, Hyper-V, KVM, Xen HVM (Hardware Virtual Machine)

Modern hypervisors mix hardware assistance for the CPU with paravirtual drivers (VMware Tools, Xen PV drivers, Hyper-V Integration Services) for fast disk and network.

Resources a hypervisor virtualizes

Resource Virtual form Notes
CPU vCPU Scheduled onto real cores; you can give out more vCPUs than real cores (over-commit)
Memory Guest RAM (Random Access Memory) Ballooning, dynamic memory, page sharing
Storage Virtual disk file – VMDK (VMware), VHDX (Virtual Hard Disk version 2) (Hyper-V), VHD (Virtual Hard Disk)/QCOW2 (Xen/KVM) Thin or thick created, kept on a datastore / storage repository
Network vNIC connected to a virtual switch vSwitch / port group (ESXi), bridge (Xen), Hyper-V virtual switch (external/internal/private)

The three hypervisors in this course

Feature VMware ESXi Xen / XCP-ng Microsoft Hyper-V
Vendor / licence Broadcom (VMware), commercial Open source (Linux Foundation) Microsoft, built into Windows Server / Pro
Architecture Monolithic micro-kernel (VMkernel) Micro-kernel; a privileged Dom0 manages ordinary DomU guests Micro-kernel; parent partition + child partitions
Management ESXi Host Client (web), vCenter Xen Orchestra, xe CLI Hyper-V Manager, PowerShell, SCVMM
Disk format VMDK on a VMFS (Virtual Machine File System) datastore VHD on a Storage Repository VHDX
Networking vSwitch + port groups Linux bridges / Open vSwitch Virtual switch: External, Internal, Private
Live migration vMotion XenMotion / live migration Live Migration

Benefits and limitations

Benefits Limitations
Server consolidation – fewer physical machines, less power and space One point of failure if the host fails (reduce it with HA clusters)
Isolation – a crash in one VM does not affect others Some slowdown for disk/network-heavy work
Fast setup from templates, snapshots and cloning Licensing and management can be complex
Live migration and high availability VM sprawl – too many forgotten VMs
The basis of IaaS (Infrastructure as a Service) cloud computing The hypervisor's security is critical – if it is broken, all VMs are at risk

Practise it

Virtual lab · VMware ESXi · 40 min

Install VMware ESXi and create a VM with the Host Client

Walk through the ESXi 8 text-mode installer, give the host a static management IP in the DCUI, log in to the ESXi Host Client from an admin PC, upload an ISO to datastore1, create a thin-provisioned Ubuntu VM, install it with VMware Tools and take a snapshot.

Open lab

Virtual lab · Xen / XCP-ng · 45 min

Install XCP-ng (Xen) and manage VMs with XCP-ng Center and the xe CLI

Install the XCP-ng 8.3 Xen hypervisor with a static management IP, connect XCP-ng Center from an admin PC, attach an NFS ISO library, create and install an Ubuntu VM, add the guest agent and snapshot it, then build a second VM entirely with the xe CLI.

Open lab

Virtual lab · Microsoft Hyper-V · 35 min

Native virtualization with Microsoft Hyper-V

On Windows Server 2022, add the Hyper-V role, create an external virtual switch, build a Generation 2 VM with the New Virtual Machine Wizard, fix the Secure Boot trap for Linux guests, install the OS, take a checkpoint and automate a second VM with PowerShell.

Open lab

Quick revision

  1. A hypervisor creates and runs virtual machines and keeps them isolated from each other.
  2. Type-1 runs on bare metal (ESXi, Xen, Hyper-V, KVM); Type-2 runs on a host OS (VirtualBox).
  3. Hardware-assisted virtualization relies on Intel VT-x / AMD-V.
  4. Paravirtualization changes the guest so it calls the hypervisor directly (hypercalls).
  5. Xen uses Dom0/DomU; Hyper-V uses parent/child partitions.

Practise this topic

Hands-on virtual labs

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.