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
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Operating Systems.
Lesson complete
Earn the 3 college credits for Introduction to Operating Systems
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Types of Virtualization →← 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 →
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.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: Linux vs Operating Systems
Why take it here
Why students take Introduction to Operating Systems with UPI Study
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.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →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?
How do you estimate how many hosts are needed for virtualization?
Is a VM snapshot the same as a backup?
What are the disadvantages of virtualization?
About the Introduction to Operating Systems course
How many college credits is Introduction to Operating Systems?
How much does Introduction to Operating Systems cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Operating Systems take?
How are the exams done?
How do my credits reach my college?
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
3 credits · NCCRSEnroll →