Virtual
Machine
Virtual Machine in Operating Systems
It provides an
environment that
A Virtual Machine (VM) is simulates hardware
a software emulation of a functionality so that
physical computer operating systems and
system. applications can run just
like they would on a real
computer.
Concept Description
The actual operating system
Host OS
Virtual
running on the physical hardware
The operating system installed
Guest OS
inside the VM
Machine Hypervisor
Software that creates and
manages VMs (e.g., VirtualBox,
VMware, KVM)
Technology that allows multiple
Virtualization OS instances to run on one
physical machine
Types of Virtual
Machines:
• 1. System Virtual
Machine
• Emulates a complete
hardware system.
• Allows running multiple
operating systems on one
physical machine.
• Examples: VirtualBox,
VMware Workstation, QEMU
Cont
2. Process Virtual
MachineDesigned to
Example: Java Virtual
run a single program,
Machine (JVM), .NET
providing a platform-
CLR
independent
environment.
Hardware Abstraction: The VM abstracts
CPU, memory, disk, etc.
How Virtual
Machines
Work in Hypervisor Role:Type 1 Hypervisor (Bare
Metal): Runs directly on hardware (e.g.,
OS: VMware ESXi, Microsoft Hyper-V)
Type 2 Hypervisor (Hosted): Runs on a
host OS (e.g., VirtualBox, VMware
Workstation)Guest OS Execution: Runs
inside VM, unaware it's not on real
hardware
Isolation – Each VM runs
independently
Security – Crashes or malware in
Advanta one VM don’t affect others
ges: Flexibility – Run different OSes
on the same hardware
Resource Efficiency – Better
hardware utilization
Disadvantages:
Performance Overhead – VMs Resource Usage – Each VM Complex Management –
are slower than running consumes CPU, RAM, disk Especially with many VMs
directly on hardware
Use Cases
Testing new Cloud
Server
operating Running legacy computing
consolidation in
systems or applications environments
data centers
software (e.g., AWS EC2)