Virtual Machines: Running Multiple Isolated Systems on One Computer

A single physical computer can appear to run several completely separate operating systems at once, each unaware of the others' existence. This article explains what a virtual machine actually is, how a hypervisor manages this illusion, and why this technology matters for both server consolidation and system security.

Virtual MachinesHypervisorHardware Virtualization

~3 دقیقه مطالعه · آخرین به‌روزرسانی ۱۵ شهریور ۱۴۰۵

What a Virtual Machine Actually Is

A Virtual Machine (VM) is a software-created environment that behaves like a complete, independent computer, capable of running its own operating system and applications, even though it is actually sharing the same underlying physical hardware with other virtual machines.

The Software That Makes This Possible

A special layer of software called a Hypervisor (also called a Virtual Machine Monitor

Physical Hardware
       ↓
    Hypervisor
   ↙    ↓    ↘
 VM 1   VM 2   VM 3
(each running its own
 independent operating system)

How Hardware Support Improves Virtualization

Early virtualization relied heavily on software techniques to intercept and translate privileged operations, which introduced meaningful performance overhead. Modern processors, including many RISC-V implementations, include dedicated Hardware Virtualization Extensions that allow a guest operating system's privileged instructions to be handled with far less overhead, since the processor itself can directly recognize and manage many virtualization-related operations rather than requiring the hypervisor to intervene in software for every single one.

Why Isolation Matters

A critical property of virtual machines is Isolation: a fault, crash, or security compromise inside one virtual machine should not be able to affect the others sharing the same physical hardware. This isolation is enforced by the hypervisor, which carefully controls each virtual machine's access to memory and other resources, preventing one guest from reading or corrupting another guest's data.

Practical Uses of Virtual Machines

  • Server Consolidation: running several lightly loaded workloads as separate virtual machines on one powerful physical server instead of dedicating an entire physical machine to each workload, improving overall hardware utilization.
  • Testing and Development: running different operating system versions or configurations on the same physical machine without needing separate dedicated hardware for each.
  • Security Isolation: running an untrusted or experimental application inside its own virtual machine, limiting the potential damage if that application turns out to be compromised or malicious.

Why This Technology Matters for Modern Computing

Virtual machines form the technical foundation underlying most modern cloud computing platforms, allowing a cloud provider to rent out precisely sized slices of physical hardware to many different customers simultaneously, each believing they have access to their own dedicated computer, while the underlying hardware achieves far higher overall utilization than dedicating physical machines individually ever could.

نوشته و پژوهش‌شده توسط دکتر شاهین صیامی

مقالات مرتبط

Common Misconceptions About Parallel Computing and the Book's Final Lessons

After covering everything from thread-level parallelism to warehouse-scale computing, it is worth correcting persistent misconceptions about parallel systems that even experienced engineers sometimes hold. This article addresses common fallacies about scaling and parallel hardware, then closes out the parallel processing chapter by tying together the full journey from a single instruction to a building full of cooperating machines.

ادامه

Real Stuff: Benchmarking CPUs Against GPUs and Multiprocessor Matrix Multiply

Comparing a CPU and a GPU fairly requires a model that accounts for both computational throughput and memory bandwidth limits together. This article introduces the roofline model used to compare real hardware like the Intel Core i7 and NVIDIA Tesla GPU, then shows how matrix multiplication is accelerated across multiple processors as the final practical application of this chapter's parallel concepts.

ادامه

Benchmarking Multiprocessors and Modeling Parallel Performance

Measuring the performance of a parallel system requires different tools and metrics than measuring a single-core processor. This article covers the specialized benchmarks used to evaluate multiprocessor systems, explains how to model scaling behavior as more processors are added, and revisits Amdahl's Law in the context of real-world performance measurement.

ادامه

Cluster Networking: Connecting to the World Outside

A cluster of machines is only useful if it can communicate efficiently both internally and with the outside world. This article covers the networking layers involved in cluster communication, the tradeoffs between latency and bandwidth at scale, and how clusters connect to external networks and users.

ادامه

Clusters, Warehouse-Scale Computers, and Network Topologies

Beyond a single chip, parallelism extends to entire buildings full of independent computers working together. This article explains the shift from shared memory multiprocessing to clusters of separate machines, introduces the concept of warehouse-scale computing, and covers the network topologies that connect these independent machines efficiently.

ادامه

An Introduction to GPUs: Massive Parallelism for Data-Heavy Workloads

A GPU takes the SIMD idea covered earlier in this series to an extreme scale, running thousands of lightweight threads simultaneously to process massive amounts of independent data. This article explains why GPUs are architecturally so different from CPUs, how their thread execution model works, and what kinds of workloads benefit most from this design.

ادامه