toolrota

What is virtualization? Virtual machines, hypervisors and containers explained

Virtualization makes it possible to run several operating systems at once on one physical computer. We explain the core concepts.

Serkan Akyürek··3 min read
What is virtualization? Virtual machines, hypervisors and containers explained – SaaS & Cloud

Did you know the server you rent from a cloud provider usually isn't a single physical machine? Thanks to virtualization, one big server is split into dozens of independent virtual machines (VMs). Each VM runs as if it had its own operating system, memory and disk. This technology sits at the heart of cloud computing.

Core concepts

ConceptMeaning
HostThe physical computer or server
GuestA virtual machine running on the host
HypervisorThe layer that allocates hardware to VMs
Type 1 hypervisorRuns directly on hardware (data centers)
Type 2 hypervisorRuns on a normal operating system (desktop)
SnapshotA copy of a VM at a point in time
How does virtualization work?
  1. 1

    A hypervisor is installed on the physical server

  2. 2

    It divides processor, memory and disk into shares

  3. 3

    A virtual machine is created for each share

  4. 4

    A separate operating system is installed on each VM

  5. 5

    The VMs run isolated from each other

Virtual machines versus containers

FeatureVirtual machineContainer
Operating systemEach has its own full systemShares the host kernel
SizeGigabytesMegabytes
Start-up timeMinutesSeconds
IsolationStrongerLighter
Typical useDifferent operating systems, full serversApp deployment, microservices

For containers see our Docker guide, and for managing them our Kubernetes guide.

Benefits

  • Hardware efficiency: one server carries many workloads.
  • Fast setup: a new server is ready in minutes; see our what is a VPS guide.
  • Isolation: a problem in one VM doesn't affect the others.
  • Easy backup and rollback: with snapshots.
  • Disaster recovery: VMs can be moved to other servers; see our disaster recovery plan guide.

For home and office users

  • Trying Linux on Mac or Windows (see our what is Linux guide).
  • Testing a suspicious program apart from your main system.
  • Running an old app on an old operating system.

Virtualization may need hardware support turned on in BIOS or UEFI settings. For memory needs see our RAM guide.

Common mistakes

  1. Over-allocating the host's resources to VMs.
  2. Treating a snapshot as a backup. A real backup should live somewhere else.
  3. Forgetting to update virtual machines.
  4. Using a heavy VM for every job. Sometimes a container is enough.

Frequently asked questions

Will a virtual machine slow my computer down? It uses resources while running; with enough RAM and CPU it's fine.

Is a cloud server always virtual? Mostly yes; some providers also offer physical (bare metal) servers.

Summary

Virtualization turns one set of hardware into many independent computers and forms the basis of the cloud. Choose VMs for full isolation and containers for lightweight app deployment.

Share
Published:
Author
Serkan Akyürek

Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.

Related guides

SaaS & Cloud