PM & AI Chronicles

From Product Thinking to Prompt Engineering – One Tool at a Time

Virtual Machines πŸ–₯️✨: Turning One Computer 1️⃣ Into Many πŸ”’Β …

This article is part of the Cloud Computing & AI Foundations series, where we break down the core technologies shaping today’s digital world. For the full overview of how virtualization, cloud platforms, and intelligent systems work together, refer to the main article in this series. πŸ‘‰ Cloud Computing & AI

For most of computer history, one physical computer could run only one operating system at a timeβ€”a strict one-machine β†’ one OS rule.

Virtualization breaks this rule. With virtualization, a physical computer can be divided into multiple virtual computers, each acting like its own independent machine. These virtual computers are called VMs β€” Virtual Machines.

πŸ’‘ Think of a Virtual Machine like a house that’s been turned into apartments.

  • You still have one building (the physical computer).
  • Inside, you create several separate apartments (VMs).
  • Each apartment has its own tenants, furniture, keys, and utilities (its own OS, apps, and settings).
  • What happens in one apartment doesn’t affect the others.
  • This is exactly how virtualization works.

Thanks to VMs:

  • Dual-boot setups are becoming rare. Instead of restarting your PC to switch OSes, you just open a VM and run Windows inside macOS, Linux inside Windows, and so on.
  • Cloud computing exists because of virtualization. Cloud providers run many virtual systems on a single powerful server.

πŸ’‘ Example: One Supercomputer β†’ Many Customer β€œComputers”

Imagine a cloud provider owns one enormous serverβ€”a β€œsuper building.” Inside it, they carve out:

  • VM for Client A
  • VM for Client B
  • VM for Client C
  • …and so on

Each client feels like they got their own full computer, even though they’re all sharing the same hardware underneath.

πŸ’‘ And the opposite is also true:

  • Cloud providers can combine multiple physical servers into a single, massive virtual system for customers who need high processing power or storage.
  • It’s all invisible to the clientβ€”they feel like they have β€œunlimited” resources (as long as the cloud provider doesn’t literally run out of hardware).

Virtualization exists primarily to save money and use hardware more efficiently.

They get economies of scaleβ€”adding one more customer doesn’t require buying a whole new server right away.

From the customer’s side: You don’t pay for expensive hardware. You pay only for:

  • Ram you need
  • CPU you use
  • Storage you consume

Plusβ€”you don’t pay for electricity, cooling, hardware failures, maintenance, etc.

When running multiple VMs:

  • Each VM can be powered on or off independently
  • Restarting one VM doesn’t restart others
  • The host computer stays running even if all VMs shut down
  • Each room (VM) can turn lights on or off
  • One guest can sleep, another can watch TV
  • The hotel (host computer) stays open regardless

To understand virtualization clearly, beginners need two key terms:

  • Hypervisor (The Manager / Landlord)

A hypervisor is software that creates and manages VMs, controls how much CPU, memory, and storage each VM gets, and keeps them isolated.

Think of it as a building manager who divides the floors, assigns apartments, and ensures everyone gets their share of water and electricity.

  • Guest OS (The Resident)

This is the operating system running inside the VM β€” Windows, Linux, macOS, etc. It behaves like it’s running on real hardware, but all the β€œhardware” it sees is virtual.

πŸ’‘ Real-world analogy:

Think of a tenant living inside an apartment (the VM).

  • The apartment walls, flooring, and furniture are virtualβ€”provided by the landlord (the hypervisor).
  • But the tenant (the Guest OS) behaves as if everything is real.
  • They cook, clean, watch TV, and live normally without knowing (or caring) how the building is constructed underneath.

In the same way, the Guest OS behaves like it’s on a real computer, unaware that it’s actually running inside a virtual environment.

The hypervisor β€” also called a VMM (Virtual Machine Monitor) β€” is the special software that makes virtualization possible. Its job is simple:

  • Create Virtual Machines
  • Give each VM its share of CPU, RAM, and storage
  • Keep all VMs separate and running smoothly

Imagine a large building that will be divided into many apartments (VMs). The building manager (hypervisor):

  • Decides how much space each apartment gets
  • Ensures each tenant has water, electricity, and privacy
  • Prevents tenants from disturbing each other

Without this manager, everything would fall apart. That manager is the hypervisor.

There are two kinds of hypervisors. They work differently, and the difference is VERY easy when explained with real-world examples.

  • Type 1 Hypervisor β€” β€œBare-Metal Hypervisor”

This one runs directly on the hardware. No other OS is present. It becomes the OS for the physical machine.

πŸ’‘ Analogy:

Think of a building manager who lives on-site and manages everything from the ground up. There is no landlord above them.

  • Because the manager is closest to the building foundation:
  • Everything is faster ⚑
  • Fewer layers to go through.
  • Better performance, especially for servers

Because cloud providers need:

  • High performance
  • Reliability
  • Low overhead
  • Ability to run many VMs efficiently

Real-world examples of Type 1 hypervisors:

  • VMware ESXi
  • Microsoft Hyper-V (Server mode)
  • Xen / Citrix XenServer
  • KVM (Linux Kernel-based Virtual Machine)

Beginner example:

Imagine that Amazon or Azure needs to run 200 virtual servers on a single large physical machine. They want maximum performance β†’ so they use Type 1.

  • Type 2 Hypervisor β€” β€œRuns on Top of an Existing OS”

This one is installed like normal software on Windows, macOS, or Linux.

πŸ’‘ Analogy:

Think of a tenant renting an apartment (your computer), and inside that apartment, they build a small β€œmini-house” (a VM). There is:

  • A landlord (your Windows/macOS host OS)
  • And inside your home, the tenant builds another mini-room (the VM)

So Type 2 = Hypervisor sitting on top of a host OS.

Because users want convenience:

  • Install it like an app
  • Run Linux inside Windows
  • Run Windows inside macOS
  • Run multiple test OSes without affecting your machine

Downside:

Because there is a β€œHost OS” layer:

  • The host OS consumes memory and CPU
  • If the host OS crashes β†’ all VMs also crash
  • Performance is lower than Type 1
  • VMware Workstation
  • Oracle VirtualBox
  • Parallels Desktop (Mac)
  • VMware Fusion (Mac)

Beginner example:

You have a Windows laptop. You want to learn Linux for your AI course. Instead of dual booting:

  • You install VirtualBox (Type 2).
  • Inside it, you install Ubuntu Linux.
  • Now both Windows and Linux run side by side.

This is the MOST common use of Type 2 for students and developers.

TypeRuns OnBest ForAnalogy
Type 1Directly on hardwareServers, cloud providersManager living at construction site β†’ fastest, no middle layer
Type 2On top of an OSLaptops/desktopsThe tenant is building a mini-house inside a house
──────────────────────────────────────────────────────────────────────────────
                         TYPE 1 HYPERVISOR (Bare Metal)
──────────────────────────────────────────────────────────────────────────────

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                 Applications                  β”‚
        β”‚   App1      App2      App3      App4          β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 4)

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚               Guest Operating Systems          β”‚
        β”‚        Guest OS 1          Guest OS 2          β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 3)

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                   Hypervisor                  β”‚
        β”‚                (Type 1 Hypervisor)            β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 2)

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                Physical Hardware               β”‚
        β”‚      CPU / RAM / Storage / Network            β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 1)



──────────────────────────────────────────────────────────────────────────────
                         TYPE 2 HYPERVISOR (Hosted)
──────────────────────────────────────────────────────────────────────────────

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                 Applications                  β”‚
        β”‚   App1      App2      App3      App4          β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 5)

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚               Guest Operating Systems          β”‚
        β”‚        Guest OS 1          Guest OS 2          β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 4)

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                   Hypervisor                  β”‚
        β”‚                (Type 2 Hypervisor)            β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 3)

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                     Host OS                    β”‚
        β”‚      Windows / macOS / Linux (depends)        β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 2)

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                Physical Hardware               β”‚
        β”‚      CPU / RAM / Storage / Network            β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          (Layer 1)

Step 1 β€” Check Minimum System Requirements (4 one-line checks)

Before enabling Hyper-V, make sure your PC meets the basic requirements:

  • Check Windows Edition: Ensure you’re running Windows 11 Pro, Enterprise, or Education (Home edition does not support Hyper-V).
  • Check RAM: Confirm your system has at least 4 GB of memory (8 GB recommended).
  • Check CPU: Ensure your processor supports hardware virtualization (Intel VT-x / AMD-V).
  • Check BIOS Settings: Verify that Virtualization Technology is enabled in BIOS/UEFI.

Step 2 β€” Open Windows Features

  • Click the Start button to open the Windows search box.
  • Type β€œTurn Windows features on or off” exactly into the search bar.
  • When the result appears, press Enter on your keyboard or click the result.
  • This will open the Windows Features dialog box

Step 3 β€” Enable Hyper-V Components

In the Windows Features window, check Hyper-V, including:

  • Hyper-V Management Tools
  • Hyper-V Platform

Step 4 β€” Apply and Restart

Click OK, allow installation to complete, and restart the system when prompted.

Step 5 β€” Verify Installation

  • Open Hyper-V Manager from Start Menu.
  • If it opens successfully, Hyper-V is fully enabled.

A Guest OS is simply the operating system that runs inside the virtual machine. If your host computer is running Windows, your guest OS could be:

  • Another copy of Windows
  • A lightweight Linux version like Lubuntu
  • Or even multiple different OSes at once

As long as your computer has enough CPU, RAM, and storage, the guest OS will run normally.

Think of the guest OS as a tenant living inside an apartment (the VM). It has:

  • Its own furniture (desktop icons)
  • Its own routines (Start menu, apps)
  • Its own utilities (virtual hardware)

Even though it’s inside your house (the host OS), it functions like an independent home.

  • Each guest OS has its own desktop, apps, and settings.
  • It manages its own hardware, which is provided virtually by the hypervisor.
  • Guest OSes do not interfere with each other.
  • To Windows, VirtualBox, or Hyper-V is just another application, even if it’s running Linux inside it.

If the host OS crashes, everything inside it crashes too.

Example: If Windows is the host, and Lubuntu is running as a guest OS inside VirtualBox β†’ A Windows crash will also shut down the Lubuntu VM.

But under regular operation, they completely ignore each other

Virtual machines use virtual versions of real hardware. These look and behave the same to the guest OS β€” but they are software-created. Here are the key virtual components:

vCPU β€” Virtual Central Processing Unit

  • A virtual CPU assigned to the VM.
  • It is carved out of your real CPU and scheduled by the hypervisor.

vHDD β€” Virtual Hard Disk Drive

  • A virtual hard drive, usually stored as a file (.vhdx, .vdi, .vmdk).
  • To the guest OS, it looks exactly like a real physical disk.

vNIC β€” Virtual Network Interface Card

A virtual network card that the guest OS uses to send and receive network traffic.

πŸ’‘ Simple analogy :

Imagine a VM sending a letter:

  • It hands the letter to the vNIC (virtual network interface card).
  • The vNIC passes it to a real physical NIC.
  • The physical NIC sends it out to the network.

The VM does not care how the real network cards are arranged or shared.

vRAM β€” Virtual Random Access Memory

  • This is the allocated memory given to the VM.
  • The hypervisor reserves this from the host’s actual RAM.

The guest OS cannot see the real hardware layout. It only interacts with its virtual devices, and the hypervisor handles everything behind the scenes.

Whether:

  • 3 VMs are sharing one physical NIC
  • Or the VM has a dedicated NIC
  • Or the hypervisor is balancing network traffic

None of this matters to the guest OS as long as packets reach the network. To the VM, the virtual hardware feels just as real as a physical device.

Virtual machines may seem complex at first, but the core idea is simple: one physical computer can behave like many. The hypervisor makes this possible by dividing hardware resources, and the guest OS runs inside its own safe, isolated space as if it were on a real machine. Whether you’re learning Linux alongside Windows, testing software safely, or exploring how cloud providers run thousands of virtual servers, these concepts form the foundation of today’s computing world.

Understanding how virtual hardware worksβ€”vCPU, vRAM, vHDD, and vNICβ€”also helps you appreciate how efficiently modern systems share resources without stepping on each other. Once you grasp these basics, the world of virtualization, cloud computing, and system administration becomes far easier to navigate.

In the next article, we’ll build on this knowledge and explore Cloud Computing, where virtualization scales to power entire data centers and global services. πŸ‘‰Cloud Computing