Virtualization and VMs
Level 1 · Virtual machines
How one real computer is split into many virtual machines, each with its own system. What a vCPU is, and why the cloud is built on this.
Course contentsLesson 1 of 11
Level 1 · Virtual machines
Level 2 · The cloud
Level 3 · Where it runs
Level 4 · Running and paying
After this lesson you can
- Say what virtualization does
- Explain what a virtual machine is
- Read a vCPU count on a server plan
10 mincovers 4 glossary entries
How one real computer becomes many
Virtualization splits one real computer into many pretend ones, called virtual machines or VMs. Each VM gets its own slice of the chip, memory and disk. Each one runs its own system. A server with 16 cores and 128 GB of memory can run ten or more VMs at once.
Most servers sit idle most of the time. One app on one box might use a tenth of what it has. Split that box ten ways, and the same machine does ten jobs instead of one.
A virtual machine acts like a whole computer. It starts up, runs Linux or Windows, and has its own users and files. Programs inside it cannot tell that they share the box with anyone.
The hypervisor is the software that does the split. It sits under the VMs, hands each one its slice, and keeps them walled off. A crash in one VM does not touch the others.
A virtual CPU, or vCPU, is the slice of the chip a VM gets. On many clouds, one vCPU is one thread of a real core, so two vCPUs make about one core. A plan with 2 vCPUs is a small server, not a fast one.
This is what every cloud is built on. A cloud firm owns many huge servers, splits each one into VMs, and rents the VMs out by the hour. The server you rent is almost always a slice of a bigger one.
The mistake is to assume a vCPU is a full core. Some clouds also let other VMs borrow unused time on the same chip. On a cheap plan, a busy neighbour can make your server feel slow at the same hour each day.
Worked example
A school replaces six old servers
A school runs six old servers, each for one job, and each about 10% busy. Two of them are out of warranty.
It buys one new server and runs the six jobs as six VMs on it. The power bill drops by about two thirds, and moving a VM to new hardware later takes an afternoon.
The words for this lesson4
Check yourself
What does a hypervisor do?
Finished this lesson?
Marking it complete also marks its 4 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.