Virtualization Concepts

Key Takeaways

  • A hypervisor is software that creates and manages virtual machines — Type 1 (bare-metal) runs directly on hardware for production use, while Type 2 runs on top of a host OS for development and testing.
  • Each virtual machine (VM) has its own virtual CPU, RAM, storage, and network adapter, and operates independently as if it were a separate physical computer.
  • Virtual machines provide sandboxing (isolation for testing), legacy application support, cross-platform development, and efficient hardware utilization through consolidation.
  • Resource requirements for virtualization include sufficient CPU cores, RAM (each VM needs dedicated allocation), storage (each VM needs its own virtual disk), and a CPU with hardware virtualization support (Intel VT-x or AMD-V).
  • Containers (Docker, Kubernetes) are lighter than VMs — they share the host OS kernel and start in seconds, while VMs include their own OS and take minutes to boot.
Last updated: March 2026

Virtualization Concepts

What Is Virtualization?

Virtualization is the process of creating virtual (software-based) versions of physical resources — including computers, storage, networks, and operating systems. A single physical machine can run multiple virtual machines (VMs), each functioning as an independent computer with its own operating system and applications.

Hypervisors

A hypervisor is the software layer that creates and manages virtual machines. There are two types:

Type 1 Hypervisor (Bare-Metal)

FeatureDetail
InstallationDirectly on hardware (no host OS)
PerformanceNear-native (minimal overhead)
Use CaseEnterprise servers, data centers, production
ExamplesVMware ESXi, Microsoft Hyper-V (Server), Citrix XenServer, KVM
ManagementRemote management console

Type 2 Hypervisor (Hosted)

FeatureDetail
InstallationOn top of an existing host operating system
PerformanceLower (host OS adds overhead)
Use CaseDevelopment, testing, education, home lab
ExamplesVMware Workstation, Oracle VirtualBox, Parallels Desktop
ManagementApplication window on the host desktop

Exam Tip: Type 1 hypervisors are more efficient because they communicate directly with hardware. Type 2 hypervisors must go through the host OS, adding latency.


Virtual Machine Components

Each VM is allocated virtual versions of physical hardware:

Virtual ComponentDescription
vCPUVirtual CPU cores allocated from the physical CPU
vRAMRAM allocated from the host's physical RAM
Virtual DiskA file on the host that acts as the VM's hard drive (.vmdk, .vhd, .vhdx, .qcow2)
Virtual NICSoftware network adapter connected to virtual switches
Virtual Optical DriveMounts ISO files as virtual CD/DVD
Virtual DisplaySoftware-rendered display output

Virtual Networking Modes

ModeDescriptionInternet AccessHost CommunicationOther VMs
BridgedVM gets its own IP on the physical networkYesYesYes
NATVM shares the host's IP via NATYesLimitedNo (isolated)
Host-OnlyVM can only communicate with the hostNoYesOnly same network
InternalVMs communicate only with each otherNoNoYes

VM Resource Requirements

To run virtual machines effectively, the host needs:

ResourceMinimum RequirementRecommendation
CPUHardware virtualization (VT-x/AMD-V) enabledMulti-core (4+) with VT-x/AMD-V
RAMHost OS + VM RAM requirements16 GB+ (each VM needs 2–8 GB)
StorageHost OS + VM disk filesSSD recommended; each VM uses 20–100 GB
NetworkStandard NICMultiple NICs for bridged VM networking

Critical BIOS Setting: Hardware virtualization (Intel VT-x or AMD-V) must be enabled in BIOS/UEFI for VMs to function. This is often disabled by default.


Containers vs. Virtual Machines

FeatureVirtual MachinesContainers
IsolationFull (separate OS kernel)Process-level (shared kernel)
SizeLarge (GB — includes full OS)Small (MB — app + dependencies only)
Boot TimeMinutesSeconds
Resource UsageHigher (each VM runs its own OS)Lower (shared host kernel)
PortabilityLess portableHighly portable (runs anywhere)
Use CaseRunning different OSes, full isolationMicroservices, DevOps, scaling apps
ExamplesVMware, Hyper-V, VirtualBoxDocker, Podman, Kubernetes (orchestration)

Common Virtualization Use Cases

Use CaseDescription
Server ConsolidationRun multiple server workloads on fewer physical machines
Development/TestingCreate isolated environments for software testing
Legacy ApplicationsRun old software that requires outdated operating systems
SandboxingIsolate potentially dangerous software for safe analysis
Cross-Platform TestingTest software on multiple OS versions from one machine
Disaster RecoveryVM snapshots and cloning for fast recovery
Training/EducationCreate lab environments for learning without risk
Desktop Virtualization (VDI)Centrally managed virtual desktops delivered to thin clients
Test Your Knowledge

Which type of hypervisor runs directly on the hardware without a host operating system?

A
B
C
D
Test Your Knowledge

What BIOS/UEFI setting must be enabled for virtual machines to function?

A
B
C
D
Test Your Knowledge

What is the primary advantage of containers over traditional virtual machines?

A
B
C
D