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

Preview

DS 2.13, 2.14: Creating, deploying and valuing disk images

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

60 minutes

Build it once, copy it forty times

A technician spends a whole day building one perfect PC. Every program is in. Every setting is right.

Then she saves that PC as one file and puts the file on forty more PCs before lunch. That file is a disk image.

Key words

WordWhat it means
Disk imagea single file that holds a copy of a whole system
Base imagethe first image, built once and used as the starting point
Answer filea file that holds the settings for each PC, such as its name
Distributionsending the image to where it is needed
Automationgetting a computer to do a repeated task
Drivera small program that lets the system use a piece of hardware
Consistencyevery PC being built the same way
Vulnerabilitya weakness that an attacker could use
Instabilitya tendency to crash or behave oddly
Restorationputting a system back to a known good state

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

By the end of this lesson

Note

I can list the steps of creating and deploying an image, and explain why images are worth using.

Starter

Have a go

Starter

3 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.

Six steps of an image job

  1. Create the base image file from a PC built and tested by hand.
  2. Create a customisation or answer file, for the things that differ per PC, such as its name.
  3. Add extra drivers and software that the image needs.
  4. Distribute the image to the servers or media that will use it.
  5. Deploy the image to the PCs.
  6. Update software versions and drivers in the image.

Why step six matters

An image does not update itself. A year-old image holds year-old software. Put that on a new PC and you start with known vulnerabilities and bugs that cause instability.

So update the versions and drivers in the image on a plan. Then every new PC starts safe.

What the lab can show

No lab here images a whole PC. The closest thing that runs is a Docker image. It is a saved, versioned starting point. It makes the same result every time, and a setting can be handed in at run time, like an answer file.

It is not a disk image of a PC. But the ideas are the same.

Build version 1 of a base image

Command
printf 'FROM alpine:3.20\nRUN echo "build 1.0" > /build.txt\n' > Dockerfile && docker build -q -t pc-base:1 .

A command for the lesson’s lab terminal. It is shown here and not run.

Make PC A from the image

Command
docker run --rm pc-base:1 cat /build.txt

A command for the lesson’s lab terminal. It is shown here and not run.

The lesson goes on

10 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.