Virtual Machines and Case Studies
Explore the concept of virtualization, understand the role of hypervisors, and examine real-world case studies of UNIX and Windows.
Learning Goals
- Understand the basic concept of a Virtual Machine and how it abstracts hardware.
- Differentiate between Type 1 (Bare-Metal) and Type 2 (Hosted) Hypervisors.
- Analyze the architectural characteristics of UNIX and Windows operating systems.
The Concept of Virtual Machines
A Virtual Machine (VM) takes the layered approach of OS design to its logical conclusion. It treats hardware and the operating system kernel as though they were all hardware.
The fundamental idea is to provide an exact duplicate of the underlying bare computer hardware. This illusion is created by a software layer known as a Virtual Machine Manager (VMM) or Hypervisor.
Benefits of Virtualization:
- Isolation and Security: Each VM is isolated from the others. A crash or security breach in one VM does not affect the others.
- Resource Consolidation: Multiple VMs can run on a single physical server, maximizing hardware utilization.
- Development and Testing: Developers can run multiple operating systems on a single physical machine to test software compatibility.
Types of Hypervisors
Hypervisors are generally categorized into two types:
1. Type 1 Hypervisor (Bare-Metal)
Runs directly on the host's hardware to control the hardware and manage guest operating systems.
- Examples: VMware ESXi, Microsoft Hyper-V, Xen.
- Use Case: Enterprise data centers and cloud infrastructure due to high performance and low overhead.
2. Type 2 Hypervisor (Hosted)
Runs as a regular computer program on an existing operating system (the Host OS).
- Examples: VMware Workstation, Oracle VirtualBox.
- Use Case: Desktop virtualization for developers and end-users.
Case Studies: UNIX and Windows
To understand how OS concepts are applied in the real world, let's look at two of the most influential operating system families.
UNIX
Originally developed at Bell Labs in the 1970s, UNIX has had a profound impact on OS design.
- Philosophy: "Do one thing and do it well." UNIX relies on many small utility programs that can be combined using pipes.
- Structure: Traditionally monolithic, but modern derivatives (like Linux or macOS) often use hybrid architectures with loadable modules.
- Key Features: Everything is a file (even devices), strong multi-user support, and a powerful command-line interface (Shell).
Microsoft Windows
Windows dominates the desktop market and has evolved significantly from its early days as a GUI shell on top of MS-DOS.
- Structure: Modern Windows (Windows NT family) uses a hybrid/modified microkernel architecture. The Executive layer provides essential services, while the Microkernel handles thread scheduling and interrupt dispatching.
- Key Features: Extensive hardware compatibility, deep integration of a graphical user interface, and the Windows Registry for central configuration management.
Knowledge Check
Which type of hypervisor runs directly on the underlying hardware without a host operating system?