
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
| Concept | Meaning |
|---|---|
| Host | The physical computer or server |
| Guest | A virtual machine running on the host |
| Hypervisor | The layer that allocates hardware to VMs |
| Type 1 hypervisor | Runs directly on hardware (data centers) |
| Type 2 hypervisor | Runs on a normal operating system (desktop) |
| Snapshot | A copy of a VM at a point in time |
- 1
A hypervisor is installed on the physical server
- 2
It divides processor, memory and disk into shares
- 3
A virtual machine is created for each share
- 4
A separate operating system is installed on each VM
- 5
The VMs run isolated from each other
Virtual machines versus containers
| Feature | Virtual machine | Container |
|---|---|---|
| Operating system | Each has its own full system | Shares the host kernel |
| Size | Gigabytes | Megabytes |
| Start-up time | Minutes | Seconds |
| Isolation | Stronger | Lighter |
| Typical use | Different operating systems, full servers | App 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
- Over-allocating the host's resources to VMs.
- Treating a snapshot as a backup. A real backup should live somewhere else.
- Forgetting to update virtual machines.
- 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.
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.