UNIT – I
Virtual Machine (VM):
A Virtual Machine (VM) is a software-based emulation of a physical computer, providing a isolated operating
environment that runs on top of a physical system.
It functions as an independent computer with its own virtualized hardware components (including CPU,
memory, storage, and network interfaces) and runs its own guest operating system & application, separate
from the host system.
Managed by a hypervisor, the VM allows for efficient resource sharing, hardware abstraction, and system
isolation, enabling multiple operating systems and applications to run simultaneously on a single physical
machine.
How Does a Virtual Machine Work?
1. A hypervisor (Type 1 or Type 2) is installed on the physical machine.
2. The hypervisor creates virtual hardware environments (virtual CPU, RAM, disk, etc.).
3. Guest Operating Systems (like Windows, Linux) are installed on top of these virtual environments.
4. Users can run applications within each VM as if it were a real, separate machine.
Key Features of Virtual Machines
Feature Description
Isolation Each VM is separated from others — secure and crash-resistant.
Portability VM images can be copied/migrated across systems.
Encapsulation Everything (OS, apps, configs) is stored in a VM file.
Disaster Recovery VM snapshots & backups enable quick recovery.
Resource Sharing Multiple VMs share the same physical resources.
Hardware Independence VMs run independently of the underlying hardware type.
Cost Savings: Reduce hardware costs, power consumption, and cooling expenses by consolidating servers.
✅ Advantages of Virtual Machines
1. Hardware Cost Reduction – Multiple VMs on one physical machine.
2. Isolation – Safe and sandboxed environment.
3. Portability – Move VMs across different platforms easily.
4. Testing Flexibility – Try different OSes, apps, or configs risk-free.
5. Disaster Recovery – VM snapshots & backups enable quick recovery.
❌ Disadvantages of Virtual Machines
1. Performance Overhead – Slightly slower than native execution.
2. Resource Intensive – Each VM consumes CPU, RAM, and disk.
3. Security Risks (Host Dependence) – Vulnerability in host affects all VMs.
4. Complex Management – Needs proper configuration and monitoring.
5. Hardware Compatibility – Some hardware features may not be fully accessible.
,Types of Virtual Machines
There are two main types of virtual machines based on their functionality and purpose.
🔹 1. System Virtual Machines
These VMs emulate a complete physical machine, allowing you to run a full OS (guest OS) on virtual
hardware.
✅ Features:
Mimics complete computer system.
Runs its own OS, independent from host OS.
Uses a hypervisor to manage resources.
🔧 Examples:
VMware ESXi
VirtualBox
Microsoft Hyper-V
KVM, Xen
🔄 Use Cases:
Running multiple OSes (Windows/Linux) on one machine.
Server virtualization in data centers.
Testing and development environments.
🔹 2. Process Virtual Machines (Application VMs)
These VMs run a single application or process inside a virtualized environment, rather than an entire OS.
✅ Features:
Exists only while the application is running.
Abstracts and virtualizes the application environment, not full hardware.
Common in programming platforms.
🔧 Examples:
Java Virtual Machine (JVM) – runs Java applications.
Python Virtual Environment (venv) – isolates Python packages.
🔄 Use Cases:
Platform-independent application execution.
Running code across multiple OSes without modification.
Language-specific runtime environments.
,What is Server Virtualization?
Server Virtualization is the process of dividing a single physical server into multiple virtual servers using
virtualization software (hypervisor), where each virtual server behaves like a separate physical machine with
its own operating system, resources, and applications.
This allows for better utilization of server resources, reduced hardware costs, and easier management of IT
infrastructure.
How It Works
A hypervisor (Type 1 or Type 2) is installed on a physical server.
The hypervisor abstracts the server’s physical resources (CPU, RAM, storage, network).
Multiple virtual machines (VMs) are created on the same physical server.
Each VM can run its own OS (Windows, Linux, etc.) and applications independently.
Admins can manage, start, stop, or migrate these VMs using software tools.
✅ Benefits of Server Virtualization
Benefit Description
Cost Savings Reduces need for multiple physical servers.
Better Resource Utilization Maximizes use of CPU, RAM, and storage.
Faster Deployment Easily create and clone new servers.
Isolation VMs are isolated — one crash doesn’t affect others.
Scalability Easily scale up or down based on demand.
Disaster Recovery VMs can be backed up and restored quickly.
Load Balancing & Migration Move VMs between hosts for load balancing or maintenance.
, ❌ Limitations / Challenges
Limitation Description
Performance Overhead Not as fast as bare-metal, especially under high loads.
Hardware Dependency Needs powerful hardware and virtualization support.
Security Risks If the hypervisor is compromised, all VMs are affected.
Single Point of Failure Physical host failure can impact all VMs.
Complex Management Requires skilled administrators and monitoring tools.
🧱 Types of Server Virtualization
1. Full Virtualization
Uses a hypervisor to simulate complete hardware so that unmodified guest OSes can run as if on real
hardware.
OS is unaware it's virtualized.
Uses binary translation or hardware-assisted virtualization (Intel VT/AMD-V).
Example Tools: VMware ESXi, Microsoft Hyper-V, KVM
2. Paravirtualization
The guest OS is modified to interact directly with the hypervisor using hypercalls.
Better performance than full virtualization.
Requires access to and modification of the OS kernel.
Example Tools: Xen, KVM (with VirtIO drivers)
3. OS-Level Virtualization (Container-based)
Virtualizes at the operating system level rather than hardware. All containers share the same OS kernel but
are isolated.
Very lightweight and fast.
Not true VM, but provides similar isolation.
Example Tools: Docker, LXC (Linux Containers), OpenVZ
Business Case for Server Virtualization
Definition:
A business case for server virtualization explains the strategic and financial reasons why an organization
should adopt virtualization technology to improve efficiency, reduce costs, enhance agility, and support
business growth.
Virtual Machine (VM):
A Virtual Machine (VM) is a software-based emulation of a physical computer, providing a isolated operating
environment that runs on top of a physical system.
It functions as an independent computer with its own virtualized hardware components (including CPU,
memory, storage, and network interfaces) and runs its own guest operating system & application, separate
from the host system.
Managed by a hypervisor, the VM allows for efficient resource sharing, hardware abstraction, and system
isolation, enabling multiple operating systems and applications to run simultaneously on a single physical
machine.
How Does a Virtual Machine Work?
1. A hypervisor (Type 1 or Type 2) is installed on the physical machine.
2. The hypervisor creates virtual hardware environments (virtual CPU, RAM, disk, etc.).
3. Guest Operating Systems (like Windows, Linux) are installed on top of these virtual environments.
4. Users can run applications within each VM as if it were a real, separate machine.
Key Features of Virtual Machines
Feature Description
Isolation Each VM is separated from others — secure and crash-resistant.
Portability VM images can be copied/migrated across systems.
Encapsulation Everything (OS, apps, configs) is stored in a VM file.
Disaster Recovery VM snapshots & backups enable quick recovery.
Resource Sharing Multiple VMs share the same physical resources.
Hardware Independence VMs run independently of the underlying hardware type.
Cost Savings: Reduce hardware costs, power consumption, and cooling expenses by consolidating servers.
✅ Advantages of Virtual Machines
1. Hardware Cost Reduction – Multiple VMs on one physical machine.
2. Isolation – Safe and sandboxed environment.
3. Portability – Move VMs across different platforms easily.
4. Testing Flexibility – Try different OSes, apps, or configs risk-free.
5. Disaster Recovery – VM snapshots & backups enable quick recovery.
❌ Disadvantages of Virtual Machines
1. Performance Overhead – Slightly slower than native execution.
2. Resource Intensive – Each VM consumes CPU, RAM, and disk.
3. Security Risks (Host Dependence) – Vulnerability in host affects all VMs.
4. Complex Management – Needs proper configuration and monitoring.
5. Hardware Compatibility – Some hardware features may not be fully accessible.
,Types of Virtual Machines
There are two main types of virtual machines based on their functionality and purpose.
🔹 1. System Virtual Machines
These VMs emulate a complete physical machine, allowing you to run a full OS (guest OS) on virtual
hardware.
✅ Features:
Mimics complete computer system.
Runs its own OS, independent from host OS.
Uses a hypervisor to manage resources.
🔧 Examples:
VMware ESXi
VirtualBox
Microsoft Hyper-V
KVM, Xen
🔄 Use Cases:
Running multiple OSes (Windows/Linux) on one machine.
Server virtualization in data centers.
Testing and development environments.
🔹 2. Process Virtual Machines (Application VMs)
These VMs run a single application or process inside a virtualized environment, rather than an entire OS.
✅ Features:
Exists only while the application is running.
Abstracts and virtualizes the application environment, not full hardware.
Common in programming platforms.
🔧 Examples:
Java Virtual Machine (JVM) – runs Java applications.
Python Virtual Environment (venv) – isolates Python packages.
🔄 Use Cases:
Platform-independent application execution.
Running code across multiple OSes without modification.
Language-specific runtime environments.
,What is Server Virtualization?
Server Virtualization is the process of dividing a single physical server into multiple virtual servers using
virtualization software (hypervisor), where each virtual server behaves like a separate physical machine with
its own operating system, resources, and applications.
This allows for better utilization of server resources, reduced hardware costs, and easier management of IT
infrastructure.
How It Works
A hypervisor (Type 1 or Type 2) is installed on a physical server.
The hypervisor abstracts the server’s physical resources (CPU, RAM, storage, network).
Multiple virtual machines (VMs) are created on the same physical server.
Each VM can run its own OS (Windows, Linux, etc.) and applications independently.
Admins can manage, start, stop, or migrate these VMs using software tools.
✅ Benefits of Server Virtualization
Benefit Description
Cost Savings Reduces need for multiple physical servers.
Better Resource Utilization Maximizes use of CPU, RAM, and storage.
Faster Deployment Easily create and clone new servers.
Isolation VMs are isolated — one crash doesn’t affect others.
Scalability Easily scale up or down based on demand.
Disaster Recovery VMs can be backed up and restored quickly.
Load Balancing & Migration Move VMs between hosts for load balancing or maintenance.
, ❌ Limitations / Challenges
Limitation Description
Performance Overhead Not as fast as bare-metal, especially under high loads.
Hardware Dependency Needs powerful hardware and virtualization support.
Security Risks If the hypervisor is compromised, all VMs are affected.
Single Point of Failure Physical host failure can impact all VMs.
Complex Management Requires skilled administrators and monitoring tools.
🧱 Types of Server Virtualization
1. Full Virtualization
Uses a hypervisor to simulate complete hardware so that unmodified guest OSes can run as if on real
hardware.
OS is unaware it's virtualized.
Uses binary translation or hardware-assisted virtualization (Intel VT/AMD-V).
Example Tools: VMware ESXi, Microsoft Hyper-V, KVM
2. Paravirtualization
The guest OS is modified to interact directly with the hypervisor using hypercalls.
Better performance than full virtualization.
Requires access to and modification of the OS kernel.
Example Tools: Xen, KVM (with VirtIO drivers)
3. OS-Level Virtualization (Container-based)
Virtualizes at the operating system level rather than hardware. All containers share the same OS kernel but
are isolated.
Very lightweight and fast.
Not true VM, but provides similar isolation.
Example Tools: Docker, LXC (Linux Containers), OpenVZ
Business Case for Server Virtualization
Definition:
A business case for server virtualization explains the strategic and financial reasons why an organization
should adopt virtualization technology to improve efficiency, reduce costs, enhance agility, and support
business growth.