PromleeBlog

posting thumbnail
Virtual Machines and Operating Systems โ€” 10 Minutes of OS, Day 18

๐Ÿ“…

Before getting started ๐Ÿ”—

What if you could run several operating systems on one computer at the same time?
Virtual machines
make that possible and are a key foundation of modern cloud computing.
This post walks through virtualization, virtual-machine architecture, hypervisors, hardware support, and the advantages and disadvantages.

What is virtualization? ๐Ÿ”—

Virtualization uses software to divide and emulate a physical computer's resources.

Virtual-machine architecture ๐Ÿ”—

A virtual machine places a software layer above real hardware, allowing an
independent operating system
to run on top.

Components ๐Ÿ”—

If you run VirtualBox on Windows and install Linux, the host OS is Windows and the guest OS is Linux.

Types of hypervisors ๐Ÿ”—

A hypervisor is the core component that creates and manages virtual machines.

1. Type 1 (bare metal) ๐Ÿ”—

2. Type 2 (hosted) ๐Ÿ”—

Think of Type 1 as selling products in a factory-operated store, and Type 2 as selling through a shop inside a dealer's premises.

Hardware-assisted virtualization ๐Ÿ”—

Virtualizing access to basic resources such as CPU and memory also requires substantial computation.
To help,
modern CPUs directly support virtualization instruction sets such as VT-x and AMD-V
.

Advantages and disadvantages of virtual machines ๐Ÿ”—

Advantages ๐Ÿ”—

Disadvantages ๐Ÿ”—


Summary ๐Ÿ”—

Virtual machines separate operating systems and resources to make efficient use of one physical device.
Because they underpin cloud, server, and development environments, understanding their structure and operation is useful.
The next post covers
networks and distributed systems
.

References ๐Ÿ”—

    Virtual Machines and Operating Systems โ€” 10 Minutes of OS, Day 18 | PromleeBlog