Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

Virtual environments: good and bad

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

45 minutes

Twenty servers or four?

A company has 20 old servers. Each one uses power, takes space and needs cooling. Most of them are busy for only an hour a day.

The company moves them into virtual machines. A virtual machine is a computer made of software. Now four strong computers do the work of twenty. Is it always a good idea? No. In this lesson you look at the good points and the bad points.

Key words

WordWhat it meansExample
Virtual machineA computer made of software. It runs inside a real computer.A server in a file
VirtualisationMaking virtual versions of computers and their parts.Four hosts, twenty servers
Disaster recoveryGetting the systems working again after a big failure, such as a fire.Start the VMs at another site
Carbon footprintThe amount of carbon dioxide made by what we do. Less power means a smaller footprint.Fewer machines, less power
HypervisorThe software that makes and runs virtual machines.The software that starts each guest
SnapshotA saved copy of a virtual machine at one moment. You can go back to it.Before a risky change
OverheadExtra work that the computer does only to run the virtual layer.CPU used by the hypervisor
Test environmentA safe copy of a system used to try changes before they go live.A copy of the website
ContainerA light, fast way to run one program in its own space. It shares the host's operating system.A Docker container
Operating systemThe main program that runs a computer.Windows, Linux
ResilienceBeing able to keep working, or recover fast, when something fails.Move a VM to another host
CPUThe processor. It runs the instructions of a program.The brain of a computer

The cells students fill in are left blank in this preview.

Seven benefits

BenefitWhy
Cost effective for large environmentsFewer machines to buy, house, power and cool
Easy to manageOne tool makes, copies, moves and removes many VMs
ResilienceA VM can move to another host if one host fails
Potentially lower carbon footprintFewer machines use less power. This depends on how well they are used.
Improved disaster recoveryA VM is a set of files, so it is easy to copy to another place and start again
Better testing environmentsMake a copy, test, throw it away. Use snapshots to go back.
Education and trainingEach learner has a safe machine of their own

The cells students fill in are left blank in this preview.

Three drawbacks

DrawbackWhy
Extra hardware loadThe hypervisor and each guest operating system use CPU, memory and storage. The host must be strong.
Slower executionThe program runs more slowly. There is an extra layer between the program and the hardware
A false picture of performanceA test in a VM may not match the real machine, because VMs share hardware and the layer adds delay

The cells students fill in are left blank in this preview.

Quick check: good or bad?

Have a go

Quick check: good or bad?

4 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Worked example: is it cheaper?

Here are the numbers for the company in the hook. They are made up for this example.

Each old server costs 600 pounds a year to run: power, space and cooling. A strong host costs 1500 pounds a year to run. One host holds 5 virtual machines.

Worked example: the sums

StepSumAnswer
Hosts needed for 20 servers20 divided by 5 (20 / 5)4 hosts
Cost of the old way20 times 600 (20 x 600)12000 pounds
Cost of the new way4 times 1500 (4 x 1500)6000 pounds
Saving each year12000 take away 6000 (12000 - 6000)6000 pounds

The cells students fill in are left blank in this preview.

The lesson goes on

8 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.