The Benefits of Virtualization, Explained

UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 10.2 Free with a free account

The Benefits of Virtualization

Introduction to Operating Systems · Chapter 10: Virtualization and Virtual MachinesSection 10.2 · lesson 79 of 838 min · free with a free account

← Virtualization ConceptsNext lesson: Types of Virtualization →

A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

In this lesson

Consolidation, isolation, snapshots, recovery, and scaling, with their costs.

  • Estimate how many hosts a server consolidation needs, including a spare
  • Explain how isolation and snapshots make virtual machines safe to change
  • Describe how virtual machine files support testing, disaster recovery, and scaling
  • Identify the costs of virtualization: overhead, single-host failure, and sprawl

Free study notes

Get this lesson's notes by email

The key points and 4 practice questions with answers, in your inbox. One email, free.

One email. Unsubscribe in one click.

Transcript

Everything said in the video, section by section (1,131 words). Read along, or search it.

Opening Scene

Ten Idle Servers in a Back Room

Walk into an older server room, and you may find ten computers humming away, each doing one small job, and most of them nearly idle. They still need electricity, cooling, floor space, and repairs. Now imagine moving all ten jobs onto two machines, with every job still safely apart. Why is that safe? And how many machines are enough?

Consolidation

Many Small Jobs on Few Hosts

A computer that does one small job wastes most of its power. A mail server might work hard for a few minutes an hour, then sit idle the rest of the time. Server consolidation means running many such jobs as VMs on a few strong hosts, so the hardware is kept busy. Fewer machines mean less electricity, less cooling, less space, and fewer parts to break. And it's safe because of the wall from lesson 10.1: each VM has its own operating system and memory, so a job that crashes doesn't drag the others down.

Worked Example

Sizing Hosts from Added-Up Peaks

How many hosts are enough? You can estimate it. Ivy, who looks after the computers at a school, has ten old servers in a back room. First, add up the busiest moment of each job. Measured as a percent of one old server, the ten peaks add up to 155 percent. Next, the usable room on one new host. Say it does the work of four old servers, 400 percent, but we plan to fill only 70 percent. That's 280. Divide, and round up. 155 over 280 is about half a host, so one host is enough. Then add a spare, because a plan with a single host has no backup if it fails. Ten machines become two. These numbers are illustrative. Real planning uses measurements from the school's own machines.

Common Mistake

Sizing for Averages Instead of Peaks

A common mistake is to add up each job's average use, and size the host to that. But jobs have busy moments. If several peak together, a host sized for averages runs out of room. Adding up the peaks is the careful way. It's a little pessimistic, since peaks rarely land at the same second, but it's a safe start.

Quick Check

How Many Hosts for the Clinic

Quick check. A small clinic has eight old servers. Their busiest moments add up to 300 percent of one old server. Each new host does the work of four old servers, and the clinic plans to fill 70 percent. How many hosts should it buy, counting one spare? Pause, and work it out. Three. The usable room on one host is 280 percent, and 300 is more than that, so the clinic needs two hosts. One spare makes three. Two is the trap. You get it by forgetting the spare, or by planning each host at a full 400 percent. Then one failure, or one busy morning, leaves no room.

Isolation

A Crash Stays in One VM

Consolidation would be a bad idea if one job could harm its neighbors. Isolation is what makes it safe. Each VM has private memory and its own virtual disk. If a program crashes the whole guest in VM 3, VM 1 keeps serving. And if one VM catches malware, from lesson 9.1, the infection doesn't walk across to the others on its own.

Snapshots

Save Points and Rollback

The second gift is the snapshot: a saved picture of a VM at one moment, including its disk, and its memory if you choose. It's like saving a video game before a hard level. If an update goes wrong, rollback returns the VM to the snapshot, and the problem vanishes. A snapshot is stored with the VM itself, on the same host. Try that rollback on a real laptop, and you'd need a full backup and a long wait.

Testing

Experiments, Clones, and Fresh Starts

Experimenting on a real computer risks breaking it. In a VM, the worst case is to delete the VM and start again. Teams use VMs to try new software versions, to test a program on several operating systems, and to practice risky steps, such as repartitioning a disk. A VM can also be cloned: copied to make an identical twin. Ivy prepares one Linux VM carefully, and clones it for every class, so every learner starts the same.

Disaster Recovery

VM Files Restart on Any Host

A VM's whole disk is just a file, as lesson 10.4 shows. That small fact has a big payoff. Disaster recovery is the plan for getting services back after a fire, a flood, or a failed machine. Copies of the VM files can wait in another building. After a disaster, the copies start on any working host, and no server is rebuilt by hand. Some systems even move a running VM to another host during repairs.

Scalability

More Processors for the Holiday Rush

Scalability means growing or shrinking easily. A new VM can be made from a template in minutes, and a busy VM can be given more memory or more processors. Sam, who runs a small online bakery, saw it before the holidays. The shop's little server, already moved into a VM by Ivy, slowed down in the busiest week. Ivy gave it two more processors and double the memory, and in a few minutes the shop was fast again. After the holidays, she gave the room back. That's the idea behind renting servers from a cloud company: you rent VMs, not buildings.

Summary

Six Benefits Side by Side

So that's six benefits: consolidation, isolation, snapshots and rollback, testing, disaster recovery, and scalability. Each one solves a real problem, from idle machines wasting power, to slow and costly growth.

Costs

Overhead, One Basket, and Sprawl

Virtualization isn't free magic. Three costs are worth knowing. Overhead: the hypervisor itself uses some processor time and memory, so a VM is a little slower than the same system on bare hardware. Eggs in one basket: if a host fails, every VM on it stops at once. That's why the school's plan kept a spare host. And sprawl: VMs are so easy to create that people forget old ones. Each forgotten VM still uses resources, and still needs security updates, from lesson 9.6.

Quick Check

When the Snapshot Dies with the Disk

Quick check. Sam's shop VM runs on one host in the bakery's back room. Sam took a snapshot of it on Monday. On Wednesday, that host's disk dies completely. What brings the shop back? Pause, and decide. A copy kept somewhere else. The snapshot was stored with the VM, on that same host, so it died with the disk. Rolling back, or cloning from the snapshot, both need a snapshot that no longer exists. So a snapshot is not a backup. Take one before a risky change, give it a name that says why, and keep real backups in another place, as lesson 9.5 says.

Key Takeaways

Gains and Costs Reviewed

To recap. Consolidation runs many idle jobs as VMs on a few hosts. Size it from the added-up peaks, then add a spare. Isolation keeps a crash inside one VM, and snapshots let you roll back a bad change. Clones, file copies, and templates make testing, disaster recovery, and growth easy. And watch the costs: overhead, one basket, and sprawl.

About Introduction to Operating Systems at UPI Study

Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.

Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Where the credit goes

Universities that work with NCCRS

Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.

FAQ

Questions students ask us

About The Benefits of Virtualization

What is server consolidation?
Server consolidation means running many lightly used jobs as virtual machines on a few strong hosts, so the hardware stays busy. A single-purpose server often sits idle most of the time yet still needs power, cooling, space, and repairs. Fewer machines cut those costs, and isolation keeps it safe: each VM has its own operating system and memory, so one crashing job does not drag down the others.
How do you estimate how many hosts are needed for virtualization?
Add up each job's busiest moment, divide by the usable capacity of one host, round up, and add a spare. For example, if eight old servers peak at a combined 300 percent of one old server, and each new host does 400 percent but is planned at 70 percent, usable room is 280 percent. That needs two hosts, plus one spare, for three.
Is a VM snapshot the same as a backup?
No, a snapshot is not a backup. A snapshot saves a VM's state at one moment, including its disk and optionally its memory, so a bad update can be rolled back. But it is stored with the VM on the same host, so if that host's disk dies, the snapshot dies too. Take snapshots before risky changes, and keep real backups in another place.
What are the disadvantages of virtualization?
Virtualization has three main costs: overhead, eggs in one basket, and sprawl. The hypervisor itself uses some processor time and memory, so a VM runs a little slower than the same system on bare hardware. If a host fails, every VM on it stops at once, which is why plans include a spare host. And easy creation leads to forgotten VMs that still use resources and need updates.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

Ready for the full course? Earn 3 credits in Introduction to Operating Systems.

83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.

Updated

Introduction to Operating Systems
3 credits · NCCRS
Enroll →