0% found this document useful (0 votes)
4 views25 pages

Cloud Computing Overview

The document provides a comprehensive overview of virtualization concepts and architecture, detailing its definition, characteristics, taxonomy, advantages, and disadvantages. It explains how virtualization allows multiple operating systems to run on a single physical hardware system through the use of hypervisors, and discusses various virtualization techniques such as full virtualization, para-virtualization, and hardware-assisted virtualization. Additionally, it highlights the benefits of virtualization in improving resource utilization and reducing infrastructure costs while also addressing potential challenges such as performance overhead and security risks.

Uploaded by

Denish Suhagiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views25 pages

Cloud Computing Overview

The document provides a comprehensive overview of virtualization concepts and architecture, detailing its definition, characteristics, taxonomy, advantages, and disadvantages. It explains how virtualization allows multiple operating systems to run on a single physical hardware system through the use of hypervisors, and discusses various virtualization techniques such as full virtualization, para-virtualization, and hardware-assisted virtualization. Additionally, it highlights the benefits of virtualization in improving resource utilization and reducing infrastructure costs while also addressing potential challenges such as performance overhead and security risks.

Uploaded by

Denish Suhagiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Cloud Computing Overview

Below are clear, structured, detailed exam-ready notes for the topic:

Virtualization Concepts and Architecture


(I organized it exactly according to your syllabus: Introduction → Characteristics →
Taxonomy → Pros & Cons → Technologies)

1. Introduction to Virtualization
Definition
Virtualization is a technology that allows multiple operating systems or applications
to run on a single physical hardware system by creating virtual machines (VMs).

It abstracts the physical hardware resources and presents them as virtual resources
to users and applications.

Basic Idea
In a traditional system:
One Operating System (OS) runs on one physical machine.

In a virtualized system:
A Virtual Machine Monitor (VMM) or Hypervisor sits between hardware and OS.
Multiple virtual machines share the same hardware resources.

Each VM contains:
its own operating system
its own applications
virtual CPU, memory, and storage.

The hypervisor manages access to the physical resources.

Purpose of Virtualization
Virtualization is used to:
improve hardware utilization

1/25
reduce infrastructure cost
enable cloud computing
provide isolation between applications
support multiple operating systems simultaneously.

It is a core technology in cloud computing architectures.

2. Characteristics of Virtualized Environments


A virtualized environment has several key characteristics.

1. Resource Abstraction
Physical resources such as:
CPU
memory
storage
network

are abstracted and presented as virtual resources.

Users interact with virtual machines instead of physical hardware.

2. Isolation
Each virtual machine runs independently.

Failure or attack in one VM does not affect other VMs.

This improves security and reliability.

3. Resource Sharing
Multiple VMs share the same physical resources.

Example:

One server can run multiple operating systems simultaneously.

2/25
This improves resource utilization.

4. Encapsulation
A VM is encapsulated as a set of files representing the complete system state.

This allows:

easy backup
easy cloning
easy migration.

5. Portability
Virtual machines can be moved between physical servers.

This is useful for:

load balancing
system maintenance
disaster recovery.

3. Taxonomy of Virtualization Techniques


Virtualization techniques can be classified based on how hardware is virtualized.

3.1 Full Virtualization


Full virtualization provides a complete simulation of the underlying hardware.

Guest operating systems do not need modification.

The hypervisor intercepts and emulates privileged instructions.

Advantages
Supports unmodified operating systems
High compatibility

3/25
Disadvantages
Slight performance overhead

Example systems:
VMware
Microsoft Hyper-V

3.2 Para-Virtualization
In para-virtualization:

the guest operating system is modified


it communicates directly with the hypervisor using hypercalls.

This reduces virtualization overhead.

Advantages
better performance
efficient resource usage

Disadvantages
OS modification required
limited OS support.

Example:
Xen Hypervisor

3.3 Hardware-Assisted Virtualization


Modern processors provide hardware support for virtualization.

Examples:

Intel VT
AMD-V

These processors include features that help the hypervisor manage virtual machines
efficiently.

4/25
Hardware virtualization allows the hypervisor to run guest operating systems
without modification while maintaining good performance.

3.4 OS-Level Virtualization


Also known as container-based virtualization.

Multiple isolated user-space environments run on the same operating system kernel.

Examples:

Docker
Solaris Containers

Advantages:
lightweight
high performance

Disadvantages:
all containers share the same OS kernel.

4. Virtualization Architecture
A typical virtualization architecture contains several layers.

1. Hardware Layer
Includes physical resources such as:
CPU
memory
storage
network devices.

2. Hypervisor (Virtual Machine Monitor)


The hypervisor controls the creation and management of virtual machines.

5/25
Responsibilities include:

CPU scheduling
memory management
device virtualization
VM isolation.

Hypervisors can be:

Type 1 Hypervisor (Bare-metal)


Runs directly on hardware.

Examples:

VMware ESXi
Xen
Microsoft Hyper-V

Type 2 Hypervisor (Hosted)


Runs on top of an operating system.

Examples:

VMware Workstation
VirtualBox

3. Virtual Machines
Each VM contains:
guest operating system
applications
virtual hardware resources.

5. Virtualization of System Components


Virtualization must manage several hardware components.

6/25
CPU Virtualization
The hypervisor schedules CPU time among multiple VMs.

Techniques used:

binary translation
hardware-assisted virtualization.

VMware uses direct execution and binary translation to execute most CPU
instructions efficiently.

Memory Virtualization
Virtual memory of guest OS is mapped to physical memory using techniques like:
shadow page tables
nested page tables.

Shadow page tables map guest virtual memory to actual physical memory.

I/O Virtualization
I/O devices such as:
disks
network cards

must also be virtualized.

Approaches include:

direct device access


split driver model.

6. Advantages (Pros) of Virtualization

1. Higher Resource Utilization


Many servers operate at 10–15% utilization.

7/25
Virtualization allows multiple workloads to run on a single server.

2. Server Consolidation
Multiple physical servers can be replaced with fewer physical machines.

This reduces:

hardware cost
maintenance cost.

3. Lower Power Consumption


Fewer servers reduce:
electricity usage
cooling requirements.

4. Improved Disaster Recovery


Virtual machines can be:
backed up
cloned
migrated.

5. Workload Isolation
Virtual machines isolate applications from each other.

Failures in one VM do not affect others.

6. Easier Migration
Virtual machines can be moved between servers using live migration techniques.

This supports load balancing and system maintenance.

8/25
7. Disadvantages (Cons) of Virtualization

1. Performance Overhead
Virtualization introduces some overhead because the hypervisor must manage
hardware access.

2. Resource Contention
Multiple VMs sharing hardware may compete for resources such as CPU and
memory.

3. Complexity
Managing virtualization infrastructure requires specialized knowledge.

4. Security Risks
If the hypervisor is compromised, multiple VMs may be affected.

8. Technology Examples

8.1 Xen
Xen is an open-source hypervisor that uses para-virtualization.

Features:

high performance
support for live migration
uses a privileged domain called Domain 0 for device drivers.

8.2 KVM

9/25
Kernel-based Virtual Machine (KVM) is a virtualization technology built into the Linux
kernel.

Features:

hardware-assisted virtualization
uses Intel VT or AMD-V
converts Linux into a hypervisor.

8.3 VMware
VMware provides enterprise virtualization solutions.

Examples:

VMware ESXi
VMware Workstation

Features:
full virtualization
advanced VM management
live migration (VMotion).

8.4 Microsoft Hyper-V


Microsoft Hyper-V is Microsoft’s virtualization platform.

Features:

Type 1 hypervisor
integrated with Windows Server
supports hardware virtualization.

9. Summary
Virtualization is a key technology in modern computing and cloud infrastructure. It
enables efficient resource utilization, system isolation, and flexible deployment of
applications.

10/25
Using hypervisors, multiple virtual machines can share a single physical server while
maintaining independence and security.

Technologies such as Xen, KVM, VMware, and Hyper-V provide practical


implementations of virtualization in enterprise and cloud environments.

If you want, I can also convert this topic into perfect 10-mark answer format used
in VJTI papers (with headings that professors expect), which can help you score full
marks easily.

I converted your transcript into clean, exam-ready structured notes so you can
write it directly in exams.

Full Virtualization vs Para-Virtualization (Virtualization


Techniques)
1. Basic Concept of Virtualization
In a traditional computer system:
The Operating System (OS) runs directly on the hardware.
The OS operates at the highest privilege level (kernel mode).
User applications run at a lower privilege level (user mode).

This allows the OS to control hardware resources such as:


CPU
memory
I/O devices.

2. Virtualized System Architecture


When virtualization is used, an additional layer called the Virtualization Layer or
Hypervisor is inserted between the hardware and the operating system.

11/25
Architecture
Hardware

Hypervisor / Virtual Machine Monitor (VMM)

Guest Operating Systems

Applications

Key points:

The hypervisor runs at the highest privilege level.


The guest OS runs at a lower privilege level.
The hypervisor manages hardware resources for multiple virtual machines.

However, the guest OS still assumes it has direct control over hardware, so it may
execute privileged or sensitive instructions.

Since the hypervisor now controls the hardware, these instructions must be handled
carefully.

3. Types of Virtualization
Based on how privileged instructions are handled, virtualization is classified into:
1. Full Virtualization
2. Para-Virtualization

4. Full Virtualization
Definition
Full virtualization allows a guest operating system to run without any modification,
while the hypervisor completely manages the hardware.

The guest OS believes it is running directly on physical hardware.

Technique Used

12/25
Full virtualization uses:

1. Direct Execution
Normal instructions from applications run directly on the hardware.

2. Trap and Binary Translation


When the guest OS executes privileged instructions, they cannot run directly
because the hypervisor occupies the highest privilege level.

Steps:

1. Guest OS executes privileged instruction.


2. This causes a trap to the hypervisor.
3. The hypervisor translates the instruction into safe instructions.
4. These translated instructions are executed on hardware.

This method is called:

Trap-and-Binary Translation Approach

Key Characteristics
Guest OS does not need modification
Guest OS is unaware of virtualization
Hypervisor emulates hardware behavior
OS behaves exactly as if it runs on real hardware.

Advantages
Supports unmodified operating systems
Compatible with many OS types.

Disadvantages
Binary translation causes performance overhead
Slightly slower than para-virtualization.

13/25
5. Para-Virtualization
Definition
Para-virtualization is a technique where the guest operating system is modified to
interact directly with the hypervisor.

Instead of executing privileged instructions directly, the OS makes special calls to


the hypervisor.

Technique Used
Para-virtualization replaces privileged instructions with hypercalls.

Hypercalls
Hypercalls are special API calls provided by the hypervisor that allow the guest OS
to request services from the virtualization layer.

Steps:

1. Guest OS executes a hypercall.


2. Hypervisor receives the request.
3. Hypervisor performs the hardware operation.

Key Characteristics
Guest OS must be modified
OS is aware of virtualization
Hypervisor provides interfaces for communication

Advantages
Better performance
Reduced overhead
Efficient hardware access.

Disadvantages

14/25
Requires modification of operating system
Not compatible with all OS types.

6. Comparison: Full Virtualization vs Para-


Virtualization
Feature Full Virtualization Para-Virtualization

Guest OS Not required Required


modification

OS awareness Unaware of Aware of virtualization


virtualization

Method used Trap and binary Hypercalls


translation

Performance Lower Higher

Compatibility Supports Limited OS support


unmodified OS

Complexity More complex for Simpler hypervisor


hypervisor

7. Summary
Virtualization introduces a hypervisor layer between hardware and operating
systems to manage multiple virtual machines.

Two major approaches exist:

Full Virtualization, where the OS runs unmodified and the hypervisor handles
privileged instructions using trap and binary translation.
Para-Virtualization, where the OS is modified to communicate with the
hypervisor using hypercalls.

While full virtualization provides compatibility, para-virtualization offers better


performance due to reduced overhead.

15/25
If you want, I can also give a very clean diagram explanation (exactly what
professors expect in exams) for:
Virtualization architecture
Full virtualization diagram
Para-virtualization diagram

These diagrams usually give extra marks in cloud computing exams.

Hardware-Assisted Virtualization (6 Marks)


Hardware-Assisted Virtualization is a technique in which the processor provides
built-in support for virtualization, allowing the hypervisor to efficiently create and
manage virtual machines.

Earlier virtualization techniques relied on software methods such as trap-and-binary


translation, which caused performance overhead. To solve this problem, modern
CPUs include virtualization extensions that allow guest operating systems to run
efficiently in virtual environments.

Examples include Intel Virtualization Technology (VT-x) and AMD-V.

Working
Hardware virtualization introduces two execution modes:
1. Root Mode
Used by the hypervisor (VMM).
Has full control over hardware resources.
2. Non-Root Mode
Used by guest operating systems.
Guest OS runs normally but cannot directly access hardware.

When the guest OS executes privileged or sensitive instructions, the CPU


automatically triggers a VM Exit and transfers control to the hypervisor. After
handling the operation, the hypervisor performs a VM Entry to resume execution of
the guest OS.

Advantages
Improves virtualization performance.

16/25
Allows unmodified guest operating systems to run.
Simplifies hypervisor implementation.
Provides better security and isolation between VMs.

Conclusion
Hardware-assisted virtualization enables efficient virtualization by providing
processor-level support for managing virtual machines, reducing software
overhead and improving overall system performance.

Below are clear, exam-ready notes (6–10 marks each) with separate sections and
simple diagrams so you can write them directly in your exam.

1. Full Virtualization and Para-Virtualization (with


Diagram)
Full Virtualization
Full virtualization is a technique where the guest operating system runs without
any modification, and the hypervisor completely emulates the underlying
hardware.

The guest OS believes it is running on real physical hardware, although it is actually


running inside a virtual machine.

In full virtualization:

The hypervisor runs at the highest privilege level.


The guest OS runs at a lower privilege level.
Privileged instructions executed by the guest OS cause traps to the hypervisor.

The hypervisor then translates these instructions using trap-and-binary translation.

Diagram

Applications

Guest Operating System

Hypervisor / VMM

17/25

Physical Hardware

Advantages
No modification of guest OS
Supports multiple operating systems
High compatibility

Disadvantages
Slight performance overhead
Binary translation reduces efficiency

Para-Virtualization
Para-virtualization is a virtualization technique where the guest operating system is
modified to interact directly with the hypervisor.

Instead of executing privileged instructions directly, the OS uses hypercalls to


communicate with the hypervisor.

Diagram

Applications

Modified Guest OS

Hypervisor (handles hypercalls)

Physical Hardware

Advantages
Better performance
Reduced virtualization overhead
Efficient communication with hypervisor

Disadvantages
Guest OS must be modified
Limited compatibility

18/25
2. Hardware-Assisted Virtualization
Hardware-assisted virtualization is a technique where the processor provides built-
in support for virtualization to improve performance and simplify virtualization.

Modern processors include virtualization extensions that allow guest operating


systems to run efficiently.

Examples:

Intel VT
AMD-V

These technologies introduce new processor modes to separate the hypervisor and
guest OS.

Working
The CPU introduces two modes:
1. Root Mode
Used by the hypervisor
Has full control of hardware
2. Non-Root Mode
Used by guest operating systems
Limited access to hardware

If the guest OS executes a privileged instruction, the CPU generates a VM Exit,


transferring control to the hypervisor.

Diagram

Applications

Guest OS (Non-Root Mode)

Hypervisor (Root Mode)

Hardware

Advantages
Improved performance
No OS modification required

19/25
Better security and isolation

3. Architecture of a Virtualized System


In virtualization, a hypervisor layer is inserted between hardware and operating
systems to manage resources.

A single physical machine can run multiple virtual machines (VMs) simultaneously.

Architecture

Applications Applications Applications


↓ ↓ ↓
Guest OS 1 Guest OS 2 Guest OS 3
↓ ↓ ↓
Hypervisor / VMM

Physical Hardware

Components
1. Physical Hardware
CPU, memory, storage, network devices
2. Hypervisor / VMM
Manages hardware resources
Creates and controls virtual machines
3. Virtual Machines
Independent computing environments
4. Guest Operating Systems
OS installed inside each VM

This architecture allows multiple operating systems to run on the same hardware
simultaneously.

4. Hypervisor (Type-1 and Type-2)


Hypervisor
A Hypervisor is a software layer that creates and manages virtual machines and
allocates hardware resources to them.

20/25
It is also called Virtual Machine Monitor (VMM).

The hypervisor ensures that:

multiple VMs run independently


resources are shared efficiently
systems remain isolated from each other.

Type-1 Hypervisor (Bare-Metal)


A Type-1 hypervisor runs directly on physical hardware without a host operating
system.

Architecture

Applications

Guest OS

Hypervisor

Hardware

Examples
VMware ESXi
Xen
Microsoft Hyper-V

Advantages
High performance
Better security
Used in data centers and cloud systems

Type-2 Hypervisor (Hosted)


A Type-2 hypervisor runs on top of a host operating system.

Architecture

21/25
Applications

Guest OS

Hypervisor

Host Operating System

Hardware

Examples
VMware Workstation
VirtualBox

Advantages
Easy to install
Useful for testing and development

5. Characteristics of a Virtualized Environment


A virtualized environment has several important characteristics.

1. Resource Sharing
Multiple virtual machines share the same physical hardware resources.

2. Isolation
Each virtual machine operates independently without affecting others.

3. Encapsulation
A virtual machine is stored as files that can be easily copied or moved.

4. Hardware Independence
Virtual machines can run on different hardware platforms without modification.

5. Scalability
New virtual machines can be created quickly as needed.

22/25
6. Taxonomy of Virtualization Techniques
Virtualization techniques can be classified based on how hardware resources are
abstracted.

1. Full Virtualization
Complete simulation of hardware
Guest OS does not require modification.

2. Para-Virtualization
Guest OS modified
Uses hypercalls to interact with hypervisor.

3. Hardware-Assisted Virtualization
Uses CPU support for virtualization
Improves performance and compatibility.

These techniques are used to address challenges in virtualizing the x86


architecture.

7. Benefits and Limitations of Virtualization


Benefits

1. Higher Resource Utilization


Virtualization increases hardware utilization by running multiple VMs on one system.

2. Reduced Costs
Organizations save money on hardware, power, and maintenance.

3. Workload Isolation
Each virtual machine is isolated from others.

4. Easier Disaster Recovery


VMs can be backed up and restored easily.

5. Flexible System Management


Virtual machines can be migrated between servers.

23/25
Limitations

1. Performance Overhead
Virtualization adds an additional layer between hardware and applications.

2. Security Risks
If the hypervisor is compromised, all VMs may be affected.

3. Resource Contention
Multiple VMs competing for resources can reduce performance.

4. Hardware Dependency
Some virtualization features require modern hardware support.

8. Role of Virtual Machine Monitor (VMM)


The Virtual Machine Monitor (VMM), also called a hypervisor, is responsible for
managing virtual machines and controlling hardware resources.

Functions of VMM

1. Resource Allocation
Distributes CPU, memory, and storage among virtual machines.

2. Isolation
Ensures that each VM runs independently.

3. Hardware Emulation
Provides virtual hardware devices for guest operating systems.

4. VM Management
Creates, starts, stops, and monitors virtual machines.

5. Security Enforcement
Prevents unauthorized access between virtual machines.

24/25
The VMM arbitrates access to hardware resources so multiple operating systems
can share a single physical machine.

✅ If you want, I can also give a very small revision sheet (2 pages) covering the
entire Virtualization unit, which is perfect for 1-day exam revision.

25/25

You might also like