Hexworth Prime House of Forge

Virtualization & Cloud Computing

CompTIA A+ Core 1 (220-1101) • Domain 4.0 Virtualization and Cloud
Key Concepts: Hypervisors Virtual Machines Containers IaaS/PaaS/SaaS Cloud Models

What is Virtualization?

Virtualization creates virtual versions of physical resources like servers, storage, and networks. Multiple virtual machines (VMs) can run on a single physical host.

Benefits
  • Hardware consolidation (fewer servers)
  • Isolation between workloads
  • Easy backup & disaster recovery
  • Rapid provisioning of new systems
  • Testing & development sandboxes
Requirements
  • CPU virtualization support (Intel VT-x/AMD-V)
  • Sufficient RAM for all VMs
  • Fast storage (SSD recommended)
  • Enable virtualization in BIOS/UEFI
  • 64-bit host operating system
A+ Exam Tip: If virtualization software won't start VMs, check that Intel VT-x or AMD-V is enabled in the BIOS/UEFI settings!

Hypervisor Types

A hypervisor (Virtual Machine Monitor) manages virtual machines and allocates physical resources.

Type 1: Bare-Metal

VM 1
VM 2
VM 3
Type 1 Hypervisor
Physical Hardware
  • Runs directly on hardware
  • Better performance
  • Enterprise/data center use

Examples: VMware ESXi, Microsoft Hyper-V Server, Citrix XenServer

Type 2: Hosted

VM 1
VM 2
Type 2 Hypervisor
Host Operating System
Physical Hardware
  • Runs on top of host OS
  • Easier to install
  • Desktop/development use

Examples: VMware Workstation, VirtualBox, Parallels

Feature Type 1 (Bare-Metal) Type 2 (Hosted)
Performance Higher - Direct hardware access Lower - Goes through host OS
Setup Complexity More complex Easier - Install like any app
Use Case Production servers, data centers Development, testing, learning
Examples ESXi, Hyper-V Server, XenServer VirtualBox, VMware Workstation

Containers vs Virtual Machines

Virtual Machines

App A
Guest OS
App B
Guest OS
Hypervisor
Hardware
  • Full OS per VM (heavy)
  • Complete isolation
  • Boot time: minutes
  • Size: GBs per VM

Containers

App A
App B
App C
Container Runtime (Docker)
Host Operating System
Hardware
  • Shared OS kernel (light)
  • Process-level isolation
  • Boot time: seconds
  • Size: MBs per container
Docker: The most popular container platform. Containers are defined in "Dockerfiles" and stored in "images" that can be shared via registries like Docker Hub.

Cloud Service Models

Cloud computing delivers resources over the internet. Three main service models:

IaaS

Infrastructure as a Service

Rent virtual servers, storage, networks

You manage: OS, apps, data
Provider manages: Hardware, network

AWS EC2, Azure VMs, Google Compute Engine

PaaS

Platform as a Service

Development platform with runtime

You manage: Apps, data
Provider manages: OS, runtime, hardware

Heroku, Google App Engine, Azure App Service

SaaS

Software as a Service

Ready-to-use applications

You manage: Data, settings
Provider manages: Everything else

Microsoft 365, Google Workspace, Salesforce

A+ Exam Tip: Remember the "pizza analogy" - IaaS = buying ingredients, PaaS = buying premade dough, SaaS = ordering delivery pizza. More service = less control but less work!

Cloud Deployment Models

Model Description Best For
Public Cloud Shared infrastructure, pay-per-use, managed by provider Startups, variable workloads, cost-sensitive
Private Cloud Dedicated infrastructure for single organization Regulated industries, sensitive data, compliance
Hybrid Cloud Mix of public and private, data moves between them Flexibility, cloud bursting, gradual migration
Community Cloud Shared by organizations with common concerns Government agencies, healthcare, research

Virtual Machine Resource Allocation

Key VM Resources

Resource Description Best Practice
vCPU Virtual CPU cores assigned to VM Don't over-provision; monitor usage
RAM Memory allocated to VM Allow headroom; avoid memory swapping
Virtual Disk Storage for VM (thin or thick provisioned) Thin provision to save space; use SSD
Virtual NIC Network adapter connecting VM to networks Use paravirtualized drivers for performance

Virtual Disk Types

Thin Provisioned
Allocates space as needed. 100GB disk might only use 20GB initially. Saves storage but can lead to overcommitment.
Thick Provisioned
Allocates full space immediately. 100GB disk uses 100GB from the start. Better performance, no overcommitment risk.

Snapshots & Clones

Snapshots

  • Point-in-time image of VM state
  • Captures disk, memory, settings
  • Used for backups, testing rollback
  • Not a replacement for proper backups
  • Performance impact if kept too long

Clones

  • Full copy of a VM
  • Independent from original
  • Used for deploying multiple similar VMs
  • Full clone: Complete independent copy
  • Linked clone: Shares base disk, saves space
Warning: Don't keep snapshots for extended periods! They grow continuously and can consume all available storage, causing VM failures.

Knowledge Check

Question 1: Which hypervisor type runs directly on hardware without a host OS?

Incorrect. Type 2 hypervisors run on top of a host operating system.
Correct! Type 1 (bare-metal) hypervisors run directly on hardware. Examples: VMware ESXi, Microsoft Hyper-V Server.
Incorrect. Container runtimes like Docker run on top of a host OS.
Incorrect. A virtual NIC is a network adapter for VMs, not a hypervisor type.

Question 2: A company wants to use cloud-based email (Microsoft 365). What service model is this?

Incorrect. IaaS provides infrastructure like VMs and storage, not finished applications.
Incorrect. PaaS provides development platforms, not end-user applications.
Correct! SaaS (Software as a Service) delivers ready-to-use applications like Microsoft 365, Google Workspace, and Salesforce.
Incorrect. Private Cloud is a deployment model, not a service model.

Question 3: Virtual machines won't start and show a "VT-x disabled" error. What should you check?

Incorrect. RAM issues would cause different errors, not VT-x disabled.
Incorrect. Network settings don't affect VM startup capability.
Correct! VT-x (Intel) or AMD-V must be enabled in BIOS/UEFI for hardware virtualization to work.
Incorrect. Disk size doesn't affect virtualization technology support.