Skip to content

๐Ÿ–ฅ๏ธ Virtualization

Understanding Virtual Machines, Hypervisors and the foundations of modern infrastructure.


Table of Contents

  1. What is Virtualization?
  2. Why Virtualization Exists
  3. Physical Machines Before Virtualization
  4. What is a Virtual Machine?
  5. Hypervisors
  6. Type 1 vs Type 2 Hypervisors
  7. VirtualBox Overview
  8. Host vs Guest Systems
  9. Virtual Hardware
  10. Virtual CPU
  11. Virtual RAM
  12. Virtual Storage
  13. Virtual Network Interfaces
  14. Virtual Disks
  15. Snapshots
  16. Resource Allocation
  17. Advantages of Virtualization
  18. Disadvantages of Virtualization
  19. Real World Uses
  20. Virtualization vs Containers
  21. Why Born2beroot Uses Virtualization
  22. Mental Model

1๏ธโƒฃ What is Virtualization?

Virtualization is the process of creating a virtual version of a computer system.

Instead of running a single operating system directly on physical hardware, virtualization allows multiple isolated systems to run on the same machine.


Think of virtualization as:

Creating a computer inside another computer

2๏ธโƒฃ Why Virtualization Exists

Before virtualization became common, organizations typically used:

1 Physical Server
        =
1 Operating System

This approach caused several problems:

  • Expensive hardware
  • Low resource usage
  • Difficult maintenance
  • Poor scalability

Many servers used only a small percentage of their available resources.

Example:

CPU Usage: 10%
RAM Usage: 15%
Disk Usage: 20%

Most of the hardware remained unused.


Virtualization was created to solve this problem.


3๏ธโƒฃ Physical Machines Before Virtualization

Traditional infrastructure looked like this:

Server A โ†’ Database
Server B โ†’ Website
Server C โ†’ Mail Server
Server D โ†’ Backup System

Each service required its own machine.


Today, a single powerful server can host many virtual systems simultaneously.


4๏ธโƒฃ What is a Virtual Machine?

A Virtual Machine (VM) behaves like a completely independent computer.

A VM has:

  • CPU
  • Memory
  • Storage
  • Network Interface
  • Operating System

Even though these resources are virtual, the operating system treats them as real hardware.


Example:

Physical Machine
      โ”‚
      โ–ผ
 Hypervisor
      โ”‚
      โ–ผ
 Virtual Machine
      โ”‚
      โ–ผ
 Debian Linux

5๏ธโƒฃ Hypervisors

A hypervisor is software responsible for managing virtual machines.

Its job is to:

  • Create virtual machines
  • Allocate resources
  • Isolate systems
  • Control access to hardware

Without a hypervisor, virtualization would not be possible.


Popular hypervisors:

  • VirtualBox
  • VMware
  • Hyper-V
  • KVM
  • Xen

6๏ธโƒฃ Type 1 vs Type 2 Hypervisors

There are two main categories.


Type 1 Hypervisors

Run directly on hardware.

Hardware
    โ”‚
Hypervisor
    โ”‚
Virtual Machines

Examples:

  • VMware ESXi
  • Hyper-V Server
  • Xen

Type 2 Hypervisors

Run inside another operating system.

Hardware
    โ”‚
Host OS
    โ”‚
VirtualBox
    โ”‚
Virtual Machines

Examples:

  • VirtualBox
  • VMware Workstation

Born2beroot normally uses this model.


7๏ธโƒฃ VirtualBox Overview

VirtualBox is one of the most popular desktop virtualization tools.

It allows users to:

  • Create VMs
  • Allocate resources
  • Manage virtual disks
  • Create snapshots
  • Configure networking

VirtualBox acts as the bridge between the host machine and the guest operating system.


8๏ธโƒฃ Host vs Guest Systems

This distinction is extremely important.


Host

The host is:

The real machine

Examples:

  • Windows
  • macOS
  • Linux

Guest

The guest is:

The virtual machine

Examples:

  • Debian
  • Rocky Linux

Example:

Windows Host
      โ”‚
VirtualBox
      โ”‚
Debian Guest

9๏ธโƒฃ Virtual Hardware

Every VM receives virtual hardware.

Examples:

  • Virtual CPU
  • Virtual RAM
  • Virtual Disk
  • Virtual Network Card

The guest operating system believes this hardware is real.


๐Ÿ”Ÿ Virtual CPU

The virtual CPU represents processing power assigned to the VM.

Example:

Physical CPU = 8 cores

VM 1 = 2 cores
VM 2 = 2 cores
VM 3 = 2 cores
VM 4 = 2 cores

The hypervisor distributes resources between machines.


1๏ธโƒฃ1๏ธโƒฃ Virtual RAM

Memory is also shared.

Example:

Physical RAM = 16 GB

VM A = 4 GB
VM B = 4 GB
VM C = 4 GB

Allocating too much memory may negatively impact the host system.


1๏ธโƒฃ2๏ธโƒฃ Virtual Storage

A VM stores data inside virtual disks.

The guest operating system sees:

A normal hard drive

even though the disk is actually a file on the host machine.


1๏ธโƒฃ3๏ธโƒฃ Virtual Network Interfaces

Virtual machines require network connectivity.

Virtual adapters allow:

  • Internet access
  • Communication between VMs
  • Communication with the host

1๏ธโƒฃ4๏ธโƒฃ Virtual Disks

Virtual disks are files representing storage devices.

Common formats:

  • VDI
  • VHD
  • VMDK

The guest system treats these files as physical disks.


1๏ธโƒฃ5๏ธโƒฃ Snapshots

Snapshots are one of the most useful virtualization features.

A snapshot records the state of a VM at a specific moment.


Example:

Clean Installation
      โ†“
Snapshot
      โ†“
Experiment
      โ†“
Problem Occurs
      โ†“
Restore Snapshot

Snapshots make testing much safer.


1๏ธโƒฃ6๏ธโƒฃ Resource Allocation

Every VM consumes resources.

Administrators must decide:

  • CPU allocation
  • Memory allocation
  • Storage allocation
  • Network configuration

Poor allocation can reduce performance.


1๏ธโƒฃ7๏ธโƒฃ Advantages of Virtualization

Benefits include:

โœ… Isolation

โœ… Easy testing

โœ… Portability

โœ… Lower hardware costs

โœ… Better resource utilization

โœ… Safer experimentation


1๏ธโƒฃ8๏ธโƒฃ Disadvantages of Virtualization

Potential drawbacks:

โŒ Resource overhead

โŒ Increased complexity

โŒ Additional management layers

โŒ Hardware limitations


Despite these drawbacks, the benefits usually outweigh the costs.


1๏ธโƒฃ9๏ธโƒฃ Real World Uses

Virtualization is used almost everywhere.

Examples:

  • Cloud providers
  • Development environments
  • Testing platforms
  • Corporate servers
  • Educational environments

Companies often run hundreds or thousands of virtual machines.


2๏ธโƒฃ0๏ธโƒฃ Virtualization vs Containers

Students often confuse these concepts.


Virtual Machines

Include:

Operating System
Kernel
Applications

Containers

Share the host kernel.

They are lighter and faster but provide a different type of isolation.

Examples:

  • Docker
  • Podman

2๏ธโƒฃ1๏ธโƒฃ Why Born2beroot Uses Virtualization

Virtualization provides:

  • Safety
  • Isolation
  • Reproducibility
  • Easy recovery

Students can experiment without risking their primary operating system.


If something breaks:

Delete VM
Create New VM
Continue Learning

2๏ธโƒฃ2๏ธโƒฃ Mental Model

Think of a Virtual Machine as:

A complete computer
inside another computer

Think of the Hypervisor as:

The manager
of those computers

Final Mental Image

Physical Computer
        โ”‚
        โ–ผ
   VirtualBox
        โ”‚
        โ–ผ
   Debian VM
        โ”‚
        โ–ผ
 Linux Administration

Virtualization creates a safe environment where systems can be studied, configured and maintained without affecting the real machine.