4 Virtualization Technology

Cloud Computing · Unit 4

Virtualization Technology

Exam-focused notes for Virtualization Technology (Cloud Computing, BIT408): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

Virtualization Technology in short

Virtualization is the base technology of the cloud. It lets one physical machine act as many separate machines, which is how providers share hardware among many customers.

Virtualization Technology: notes

Definition and characteristics of virtualization

Virtualization is the creation of a virtual version of a computing resource, such as a server, storage device, network or operating system. Software separates the resource from the physical hardware underneath. A single physical server can then run many isolated virtual machines (VMs), each with its own operating system and applications.

Characteristics of a virtualized environment:

  • Isolation: each VM works separately. A crash or attack in one does not affect the others.
  • Resource sharing: CPU, memory, storage and network are divided among the VMs.
  • Encapsulation: a VM is saved as a set of files, so it can be copied, backed up or moved easily.
  • Hardware independence: a VM can run on different physical servers without change.
  • Better utilization: a server that once ran one lightly used application now runs many.
  • Easy management: VMs can be created, paused, cloned and removed quickly.

Significance in cloud computing:

  • It makes resource pooling possible, since many customers share the same hardware.
  • It supports elasticity, because new VMs can start in minutes.
  • It lowers cost by using fewer physical servers, less power and less space.
  • It helps backup and recovery, because VM files can be copied to another site.
  • It allows live migration, moving a running VM to another host with no break in service.

Types of virtualization

  • Hardware (server) virtualization: one physical server runs several VMs through a hypervisor.
  • Full virtualization: the guest operating system runs unchanged and does not know it is virtual.
  • Paravirtualization: the guest system is modified to work with the hypervisor, which reduces overhead.
  • Operating system level virtualization: several isolated user spaces, called containers, share one kernel. Docker is an example.
  • Storage virtualization: many physical storage devices appear as one logical pool.
  • Network virtualization: physical network resources are combined into software-defined virtual networks.
  • Desktop virtualization: a user's desktop runs on a central server and is shown on any device (VDI).
  • Application virtualization: an application runs apart from the operating system, as the Java Virtual Machine does.

What this unit covers

  • Definition and characteristics of virtualization
  • Types of virtualization
  • Server virtualization
  • Storage virtualization
  • Hypervisor definition and roles
  • Hypervisor benefits for organizations
  • VMware technology and functionality

Definition and characteristics of virtualization

2082 · 10 marks

Define virtualization. What is the significance of virtualization in cloud computing? How VMware and hypervisor work?[10]

Show solved answer

Model Answer: Virtualization in Cloud Computing

1. Definition of Virtualization

Virtualization is a technology that allows the creation of multiple virtual instances (virtual machines, virtual servers, virtual storage, etc.) from a single physical hardware resource. It abstracts the physical hardware layer and presents logical or virtual computing resources to users and applications, enabling multiple operating systems and applications to run simultaneously on a single physical machine while remaining isolated from each other.


2. Significance of Virtualization in Cloud Computing

Virtualization is fundamental to cloud computing for the following reasons:

a) Resource Optimization

  • Maximizes utilization of physical hardware by running multiple VMs on a single server
  • Reduces idle time and improves overall system efficiency
  • Lowers hardware costs by consolidating workloads

b) Scalability and Flexibility

  • Enables dynamic allocation of resources based on demand
  • Allows rapid provisioning and deployment of new virtual machines
  • Supports elastic scaling up or down as needed

c) Cost Reduction

  • Decreases capital expenditure (CapEx) on physical infrastructure
  • Reduces operational expenditure (OpEx) through efficient resource management
  • Minimizes energy consumption and cooling requirements

d) Isolation and Security

  • Provides logical isolation between virtual machines
  • Prevents one VM from directly accessing another's resources
  • Enhances security by containing failures and threats

e) High Availability and Disaster Recovery

  • Enables easy migration of VMs between physical servers
  • Supports backup and recovery mechanisms
  • Reduces downtime through redundancy

f) Multi-tenancy

  • Allows multiple users/organizations to share the same physical infrastructure
  • Each tenant operates independently with dedicated virtual resources
  • Foundation for cloud service delivery models (IaaS, PaaS, SaaS)

3. How VMware and Hypervisor Work

a) Hypervisor: Definition and Role

A hypervisor (also called Virtual Machine Monitor or VMM) is software that creates and manages virtual machines. It sits between the physical hardware and virtual machines, controlling hardware access and resource allocation.

Types of Hypervisors:

  • Type 1 (Bare-metal): Runs directly on physical hardware (e.g., VMware ESXi, Hyper-V)
  • Type 2 (Hosted): Runs on top of a host operating system (e.g., VMware Workstation, VirtualBox)

b) How Hypervisor Works

  1. Hardware Abstraction: The hypervisor abstracts physical hardware resources (CPU, memory, disk, network) and presents them as virtual resources to guest operating systems

  2. Resource Allocation: Allocates and manages physical resources among multiple VMs based on configuration and demand

  3. VM Isolation: Maintains isolation between VMs so they operate independently without interfering with each other

  4. Instruction Translation: Intercepts and translates privileged instructions from guest OS to ensure safe execution

  5. I/O Management: Manages input/output operations and device access for all virtual machines

c) How VMware Works

VMware is a virtualization platform that uses hypervisor technology:

  1. VMware ESXi (Type 1 Hypervisor):

    • Installed directly on physical server hardware
    • Manages multiple guest VMs
    • Provides direct hardware access for better performance
  2. Resource Management:

    • Allocates CPU cores, memory, and storage to each VM
    • Dynamically adjusts resources based on VM requirements
    • Implements scheduling algorithms for fair resource distribution
  3. VM Operations:

    • Creation: Defines VM specifications (vCPU, RAM, disk)
    • Execution: Runs multiple VMs concurrently
    • Migration: Moves VMs between physical servers (vMotion)
    • Monitoring: Tracks performance and resource utilization
  4. Key Features:

    • vMotion: Live migration of running VMs without downtime
    • High Availability: Automatic restart of failed VMs
    • Resource Pools: Groups VMs and allocates shared resources
    • Snapshots: Creates point-in-time copies of VM state

Summary Diagram

Physical Hardware (CPU, Memory, Disk, Network)
            |
            v
    [Hypervisor Layer]
    |    |    |    |
    v    v    v    v
  VM1   VM2   VM3   VM4
 (OS)  (OS)  (OS)  (OS)

This architecture enables cloud providers to deliver Infrastructure-as-a-Service (IaaS) by efficiently managing and allocating virtualized resources to multiple tenants.

Open this answer on its own page →

0 · 10 marks

Define virtualization. What are the characteristics of virtualized environments? Describe the types of virtualizations.[10]

Virtualization is a technology that allows the creation of multiple isolated virtual instances (virtual machines, containers, or environments) on a single physical hardware resource. It abstracts the underlying physical infrastructure and presents logical or virtual resources to users and applica...

Open this answer on its own page →

Server virtualization

2082 · 5 marks

How server and storage virtualization can be done? [5]

Server virtualization involves running multiple virtual servers (VMs) on a single physical server. It can be done through: - Install a hypervisor (Type 1 or Type 2) on the physical server - The hypervisor abstracts hardware resources (CPU, RAM, disk, network) - Create multiple virtual machines on...

Open this answer on its own page →

Hypervisor definition and roles

2081 · 10 marks

Explain the roles of hypervisor in virtualization. Briefly describe different types of virtualizations.[10]

A hypervisor is the core software component that enables virtualization. Its key roles are: - Allocates physical hardware resources (CPU, memory, disk, network) to multiple virtual machines - Manages resource sharing among VMs to prevent conflicts and ensure fair distribution - Dynamically adjust...

Open this answer on its own page →

VMware technology and functionality

2080 · 10 marks

What is VMware? Can you explain what a hypervisor does? What are the benefits of using a hypervisor for an organization.[10]

VMware is a leading virtualization software company that provides platforms and tools for creating and managing virtual machines and virtualized computing environments. VMware products enable organizations to run multiple operating systems and applications on a single physical server by abstracti...

Open this answer on its own page →