Virtualization Basics, Explained in Plain English

5 concepts · 4 comparisons · 5 updated this month

Virtualization basics in plain English: how a hypervisor works, virtual machines, types of virtualization, containers vs VMs, benefits, and security.

Type 1bare-metal hypervisors
vMotionlive migration
OCIthe container standard
per corethe licensing model now
In this guide

Virtualization basics, from one hypervisor to the cloud

Virtualization basics come down to one idea: software can pretend to be hardware. A program called a hypervisor divides one physical computer into several virtual machines, each of which believes it has a processor, memory, a disk and a network card of its own.

That single trick is why a rack of servers became one host, why a server can be copied like a file, and why cloud computing exists at all.

This guide covers the fundamentals of virtualization in the order they build on each other: what virtualization is, how it works, hypervisors, virtual machines, the types of virtualization, containers, the benefits and the drawbacks, the features that matter in production, how virtualization relates to the cloud, and how to keep it secure. Each section links to a full page in this library.

DefinitionWhat is virtualization?

Virtualization is the creation of a software version of a computing resource, such as a server, a desktop, a network or storage, that behaves like the physical one. The most common form is server virtualization, where one physical server runs many isolated virtual servers at the same time.

Put another way, virtualization lets a single physical computer run multiple operating systems and multiple applications at the same time, each in its own isolated environment. The processor, memory, storage and network of the machine become a pool of resources that software hands out on demand.

The reason it caught on is utilization. A physical server dedicated to one application sits mostly idle, because it is sized for its busiest moment. Virtualization lets many workloads share the same hardware, each taking resources as it needs them, so an organization runs the same applications on far fewer machines.

Three terms recur throughout:

  • Host: the physical machine that provides the resources.
  • Guest: a virtual machine running on the host, with its own operating system.
  • Hypervisor: the software layer between them that shares out the hardware and keeps the guests apart.

MechanicsHow virtualization works

The hypervisor sits between the physical hardware and the virtual machines and does three jobs. It presents each virtual machine with virtual hardware. It schedules the real processor, memory, storage and network among them. And it isolates them, so that a crash or a compromise in one guest does not reach another.

Modern processors help. Intel VT-x and AMD-V are hardware virtualization extensions that let guest code run directly on the processor at close to native speed, with the hypervisor stepping in only for privileged operations.

They are usually switched on or off in the firmware settings, which is the first thing to check when a hypervisor refuses to start; what a BIOS is explains where those settings live.

HypervisorsType 1 and type 2 hypervisors

Hypervisors come in two types, distinguished by what they run on.

Type 1, bare metalType 2, hosted
Runs onThe hardware directly, with no operating system underneathAn ordinary operating system, as an application
PerformanceClose to nativeLower, because the host operating system is in the path
Used forProduction servers and data centersTesting, development and running a second operating system on a desktop
ExamplesVMware ESXi, Microsoft Hyper-V, KVM, Xen, Proxmox VEOracle VirtualBox, VMware Workstation, Parallels Desktop

Type 1 vs type 2 hypervisor goes through the differences in detail. For choosing a production platform, Hyper-V vs VMware compares the two most common, and ESX vs ESXi clears up the naming of the VMware hypervisor.

Virtual machinesWhat a virtual machine is made of

A virtual machine, or VM, is a complete computer defined in software. To its operating system it is indistinguishable from a physical one. On the host, it is a handful of files:

  • Virtual CPUs (vCPUs): shares of the host's processor cores, scheduled by the hypervisor.
  • Virtual memory: a portion of the host's RAM assigned to the guest.
  • Virtual disk: a file on the host's storage, such as a VMDK or VHDX, that the guest sees as a hard drive.
  • Virtual network adapter: connected to a virtual switch, which joins the VM to other VMs and to the physical network.
  • Configuration file: the definition that ties the rest together.

Because a VM is files, it can be copied, moved, backed up and restored like files, which is where most of the practical benefits come from.

ScopeTypes of virtualization

Servers were first, but the same idea is applied to most of the data center:

TypeWhat is virtualizedExample
Server virtualizationOne physical server into many virtual serversSeveral application servers on one host
Desktop virtualization (VDI)User desktops, run in the data center and reached remotelyCall center or remote staff on thin clients
Network virtualizationNetworks defined in software, independent of the cablingVLANs, VXLAN overlays, software-defined networking
Storage virtualizationMany physical disks pooled and presented as oneA SAN, or a hyperconverged cluster
Application virtualizationAn application packaged to run without being installedStreaming a legacy application to users
Operating system virtualizationOne kernel shared by many isolated user spacesContainers

In practiceWhat virtualization is used for

  • Server consolidation: replacing many underused physical servers with a few hosts, the use that paid for the technology.
  • Running multiple operating systems on one machine, such as Windows and Linux side by side, without rebooting.
  • Development and testing: disposable environments that match production and can be reset in seconds.
  • Disaster recovery: replicating virtual machines to a second site, where they can be started on different hardware.
  • Legacy applications: keeping software that needs an old operating system running safely on modern infrastructure.
  • Desktop delivery: giving remote staff a managed desktop while the data stays in the data center.
  • Cloud infrastructure: every virtual server rented from a cloud provider is a virtual machine on someone else's hypervisor.

ContainersVirtualization vs containerization

A container virtualizes the operating system instead of the hardware. Every container on a host shares that host's kernel and carries only its application and the libraries it needs, so it starts in seconds and takes megabytes where a VM takes gigabytes.

Virtual machineContainer
VirtualizesHardwareThe operating system
ContainsA full guest operating systemAn application and its dependencies
Starts inMinutesSeconds
IsolationStrong, enforced by the hypervisorLighter, because the kernel is shared
Best forDifferent operating systems, legacy applications, strong separationMicroservices, fast deployment, high density

The two are usually combined: containers running inside virtual machines. Containers vs VMs covers when to choose each, and what Docker is explains the tool that made containers mainstream.

Trade-offsBenefits and drawbacks of virtualization

The benefits of virtualization are the reason nearly every server is now virtual:

  • Consolidation: fewer physical servers, so less hardware, power, cooling and rack space.
  • Speed: a new server is deployed from a template in minutes, not ordered and racked over weeks.
  • Recovery: a whole server can be backed up, replicated and restored on different hardware.
  • Isolation: each application gets its own operating system, so one cannot break another.
  • Testing: a snapshot before a change gives an instant way back.
  • Legacy support: an old operating system keeps running on new hardware.

The drawbacks are fewer but real:

  • A single point of failure: when a host fails, every VM on it fails, which is why production uses clusters.
  • VM sprawl: servers that are easy to create are easy to forget, and each one still needs patching and licensing.
  • Resource contention: too many busy guests on one host slow each other down.
  • Licensing and skills: hypervisor licensing and the expertise to run a cluster are real costs.

In productionSnapshots, live migration and high availability

A few features turn a hypervisor from a convenience into a platform:

  • Snapshots capture a VM's state at a moment so a change can be undone. They are not backups: they live with the VM and grow the longer they are kept.
  • Templates and clones create new VMs from a known-good image, which is how builds stay consistent. Infrastructure as code takes the same idea further.
  • Live migration moves a running VM from one host to another with no downtime, so hardware can be maintained during the day. It needs shared storage or a fast copy of the disk.
  • High availability restarts the VMs of a failed host on the surviving hosts automatically.
  • Overcommitment assigns more virtual CPU and memory than physically exists, betting that guests will not all peak together. It raises density and, pushed too far, causes contention.

OperationsManaging a virtualized environment

One host is managed from its own console. Beyond that, a management layer such as VMware vCenter, Microsoft System Center Virtual Machine Manager or the Proxmox cluster interface treats multiple hosts as one pool of resources.

It is where an administrator creates virtual machines, balances them across hosts, sets resource limits and reservations, watches capacity and applies updates to the hypervisors themselves.

The management discipline matters as much as the software. Size each VM for what its applications actually use, because unused virtual CPUs still cost scheduling time. Monitor the hosts for memory pressure and storage latency, the two resources that run out first.

Keep an inventory of every VM with an owner and a purpose, and retire the ones nobody claims. Back up virtual machines at the hypervisor level so that a whole system, and not just its data, can be restored.

CloudVirtualization and cloud computing

Virtualization is the technology; cloud computing is a way of delivering it. A cloud provider runs hypervisors at enormous scale and adds self-service, automation and billing by usage, so a customer rents virtual machines by the hour without ever seeing the hardware.

An organization that runs its own virtualized servers has virtualization without cloud. One that builds the same self-service layer on top has a private cloud.

SecurityVirtualization security

Virtualization concentrates risk as well as servers, so a few points deserve attention:

  • Patch the hypervisor. A flaw that lets a guest break out to the host, known as a VM escape, is rare and serious, because the host controls every guest.
  • Protect the management interface. Whoever controls the hypervisor console controls every server on it. Keep it on a separate management network with MFA.
  • Treat every VM as a server. It needs patching, antivirus, backup and monitoring like a physical one.
  • Segment virtual networks the way you would physical ones.
  • Control sprawl with an inventory and an owner for every VM.

Reading orderVirtualization for beginners: a learning path

  1. Type 1 vs type 2 hypervisor: the two kinds and where each is used.
  2. Hyper-V vs VMware and ESX vs ESXi: the production platforms.
  3. Containers vs VMs: the alternative, and when it wins.
  4. What Docker is: containers in practice.

The quickest way to learn the virtualization basics is to install a type 2 hypervisor on a laptop, build two virtual machines and a virtual network between them, and break things on purpose.

How to read the virtualization silo

Virtualization basics in plain English: how a hypervisor works, virtual machines, types of virtualization, containers vs VMs, benefits, and security.

  • Start with the concepts at the top, in order. They take about an hour together and everything else refers back to them.
  • Use the index by topic. Each group maps to a chapter of the common certification outlines.
  • Go straight to the troubleshooting group. Each page has a checklist at the top.
  • The comparison pages end with a decision chooser and link to the companies listed in the directory that deploy them.

Virtualization questions we get most

Short answers here, full pages one click away.

What are the basics of virtualization?

A hypervisor divides one physical computer into several isolated virtual machines, each with its own virtual processor, memory, disk and network card. Many workloads then share the same hardware, and because each virtual machine is a set of files, it can be copied, moved and restored like one.

What is virtualization in simple terms?

Software pretending to be hardware. It lets one physical machine run several independent computers at once, each unaware of the others.

What is a hypervisor?

The software layer that creates and runs virtual machines. It shares the physical processor, memory, storage and network among them and keeps them isolated. A type 1 hypervisor runs directly on the hardware; a type 2 hypervisor runs as an application on an ordinary operating system.

Is a container a lightweight VM?

No. A VM virtualizes hardware and runs its own kernel. A container shares the host kernel and isolates processes. The containers page shows what that means for security and density.

Do I need vCenter for a small VMware cluster?

For live migration, high availability and central patching, yes. A single host can run without it, but you lose the features most people virtualize for.

What are the types of virtualization?

Server, desktop, network, storage, application and operating system virtualization. Server virtualization is the most common; containers are the usual form of operating system virtualization.

What are the benefits of virtualization?

Fewer physical servers, faster deployment, easier backup and recovery, isolation between applications, safe testing through snapshots, and the ability to keep old operating systems running on new hardware.

What is the difference between virtualization and cloud computing?

Virtualization is the technology that divides hardware into virtual machines. Cloud computing is a service model built on it, adding self-service, automation and billing by usage. You can have virtualization without cloud, but not the other way round.

Is a snapshot a backup?

No. A snapshot is stored with the virtual machine and depends on its disk, so it is lost with the host or the storage. It is a way to undo a recent change, and it should be deleted once the change is confirmed.

What is live migration?

Moving a running virtual machine from one host to another without shutting it down. It is what allows hardware maintenance during working hours, and it needs shared storage or a fast copy of the virtual disk.

Can I run virtual machines on my own computer?

Yes, with a type 2 hypervisor such as VirtualBox, or Hyper-V on Windows Pro. The processor needs hardware virtualization support, Intel VT-x or AMD-V, enabled in the firmware settings.

How many virtual machines can one host run?

It depends on memory first and processor second. Memory is rarely shared well, so add up what the guests need and leave headroom for the hypervisor and for a failed host in the cluster.

Other silos

One packet a weekA short, illustrated explainer every Tuesday. No vendor pitches, unsubscribe in one click.