Explore

Virtualization and hypervisors

by Froga

Starts from one application per server and shows why data centres virtualized. Covers what a virtual machine is, the three rules a hypervisor must meet, the costs of sharing hardware, and type 1 versus type 2. You will be able to explain, calculate and compare. About 14 minutes.

You're previewing this room. Log in or create a free account to answer the questions and track your progress.
Study material

What this room is about. Virtualization lets one physical server run several complete virtual computers at the same time. This room covers what a virtual machine is, the three rules a hypervisor has to meet, why data centres moved to sharing hardware, what that costs, and how type 1 and type 2 hypervisors differ. It is the first step in the course story, from one physical server towards the cloud.

Why it matters. For years data centres ran one application per physical server, and most of those servers sat at only 10 to 15 percent utilization while still taking up power, space and money. Virtualization lets many workloads share the same hardware, so far fewer machines do the same work and a new server becomes a file to create rather than hardware to buy. Every cloud is built on this idea.

Words you will meet.

  • Virtual machine (VM): a complete computer made of software-defined parts, on which a guest operating system runs as if the parts were real hardware.
  • Host: the physical machine that runs the virtual machines, which are its guests.
  • Hypervisor: the software between the hardware and the virtual machines that shares the resources out and keeps the guests apart.
  • Type 1 and type 2: a type 1 hypervisor runs directly on the hardware like an operating system, while a type 2 hypervisor runs as a process on a host operating system.
  • Overallocation: giving guests more resources in total than the host physically has, because they are rarely all busy at the same moment.
  • Consolidation ratio: the number of virtual machines that run on each physical host.
  • Popek and Goldberg requirements: three rules from 1974 for a hypervisor: safety (it keeps control of the resources), fidelity (a program behaves as on real hardware) and efficiency (most instructions run directly on the processor).

By the end you should be able to:

  • Explain why data centres once ran one application per server and why that left so much capacity idle.
  • Describe what a virtual machine presents to its guest operating system.
  • Apply the three requirements to decide which one a given hypervisor design fails.
  • Calculate a consolidation ratio and weigh the benefits of sharing hardware against its risks and costs.
  • Compare type 1 and type 2 hypervisors, including the argument about how much a hypervisor exposes to attack.

How to use it. Each question has its own study text above it, so read that first and then answer; the answers and explanations show at the end of the room.

What does a hypervisor do?

multiple choice

AIt copies a server's disk to a second machine so that a failed server can be rebuilt quickly
BIt translates a program written for one operating system so that it runs on another
CIt shares the physical hardware among virtual machines and keeps them apart
DIt watches a physical server and restarts the application whenever it crashes
Log in to answer

Ready to test yourself?

Sign up free to answer, score points, and build your streak.