DevOps
Cloud Infrastructure
Virtualization & Hypervisors

Virtualization & Hypervisors

Virtualization is the foundational technology that makes cloud computing possible. It allows a single physical computer to act as multiple "virtual" computers by abstracting hardware resources into isolated environments.


🏗️ Core Architecture

Virtualization inserts a software layer called a Hypervisor between the hardware and the Operating System.

  • Physical Hardware: The "Host" machine (Real CPU, RAM, NIC).
  • Hypervisor (VMM): The Virtual Machine Monitor. It partitions resources and manages communication between the hardware and VMs.
  • Virtual Machine (VM): A software-based "Guest" computer that runs its own OS and applications as if it were on real hardware.

⚡ Types of Hypervisors

Hypervisors are categorized by where they sit in the technology stack.

Type 1: Bare Metal

These hypervisors run directly on the physical hardware. They are extremely efficient and have very low overhead.

  • Best For: Production data centers and enterprise cloud environments (AWS, Azure).
  • Examples: VMware ESXi, Microsoft Hyper-V, KVM (Kernel-based Virtual Machine).

Type 2: Hosted

These hypervisors run as an application on a Host Operating System (like Windows or macOS).

  • Best For: Developers testing code, running legacy software, or lab environments.
  • Examples: Oracle VirtualBox, VMware Workstation.

🌍 Types of Virtualization

Virtualization isn't just for servers; it can be applied to almost any IT resource:

  1. Server Virtualization: Running multiple OSs on one physical server (The most common type).
  2. Network Virtualization: Abstracting physical wires and switches into software (Software Defined Networking - SDN).
  3. Storage Virtualization: Combining multiple physical hard drives into a single virtual pool.
  4. Desktop Virtualization (VDI): Hosting a user's desktop on a central server.

🔄 Virtualization vs. Cloud Computing

Learners often confuse these two, but they are different parts of the same puzzle:

ConceptWhat it isAnalogy
VirtualizationThe Technology that creates virtual versions of hardware.The Engine of a car.
Cloud ComputingThe Service that delivers those virtual resources on-demand.The Ride-sharing Service (Uber/Lyft).

[!TIP] Why it Matters for DevOps Virtualization allows you to treat "Infrastructure as Code." Because a VM is essentially a file, you can version it, clone it, and automate its creation—which is the heart of modern DevOps.