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

CC Module 2

The document discusses cloud computing migration, focusing on the transfer of memory, files, and network resources during virtual machine migration. It outlines various techniques for memory and file system migration, as well as the role of virtualization tools like VMware, Xen, KVM, and Hyper-V. Additionally, it explains the functions of hypervisors and compares Type-1 and Type-2 hypervisors in terms of performance, security, and usage.

Uploaded by

brunogagana
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 views4 pages

CC Module 2

The document discusses cloud computing migration, focusing on the transfer of memory, files, and network resources during virtual machine migration. It outlines various techniques for memory and file system migration, as well as the role of virtualization tools like VMware, Xen, KVM, and Hyper-V. Additionally, it explains the functions of hypervisors and compares Type-1 and Type-2 hypervisors in terms of performance, security, and usage.

Uploaded by

brunogagana
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

MODULE 2
1. Explain how Migration of Memory, Files, and Network Resources happen in
cloud computing.
Migration in cloud computing refers to transferring a Virtual Machine (VM) from one physical host to
another with minimum downtime. During migration, memory, file systems, and network resources must
be transferred efficiently to maintain continuous service.
Memory Migration

• VM memory migration involves transferring the memory state of a VM from one host to another.
• The Internet Suspend-Resume (ISR) technique uses temporal locality to transfer only modified
data pages.
• A tree-based file structure reduces data transfer by copying only changed portions.
• ISR causes high downtime, so it is not suitable for live migration.
• Common live migration techniques include:
a) Precopy Approach – Copies all memory pages first and then transfers only modified pages
iteratively. It reduces downtime but increases migration time.
b) Postcopy Approach – Transfers memory pages only once, but downtime may increase due to
page fetching delays.
c) Checkpoint/Recovery and Trace/Replay (CR/TR-Motion) – Transfers execution logs instead of
dirty pages to reduce migration time.
d) Memory Compression – Compresses memory pages before transfer to reduce data size and
improve speed.
File System Migration

• File migration ensures that VM files remain accessible after migration.


• The file system must be location-independent and accessible from all hosts.
• Two approaches are used:
a) Virtual Disk Transport – Copies the complete disk image, but it is slow for large files.
b) Global Distributed File System – Avoids full copying and allows direct network access to files.
c) Smart Copying transfers only differences between old and new locations using spatial locality.
d) Proactive State Transfer predicts the destination host and transfers important data in advance.
Network Migration

• Network migration ensures that VM communication continues without interruption.


• Each VM has its own virtual IP address and virtual MAC address independent of the host
machine.
• During migration, unsolicited ARP replies inform network devices about the VM’s new location.
• Switched networks automatically detect the new VM location and reroute traffic correctly.
Live Migration Using Xen

• The Xen Hypervisor supports live VM migration efficiently.


• Domain 0 (Dom0) manages VM creation, migration, and termination.
• Xen uses a send/receive model for transferring VM states.
• Dirty bitmaps track modified memory pages, and memory compression improves migration
speed.
• Remote Direct Memory Access (RDMA) is used to speed up migration by bypassing normal
TCP/IP processing.

2. List and explain any four virtualization tools (like VMware, Xen, KVM, Hyper-
V, VirtualBox).
Virtualization tools help create and manage virtual machines (VMs) on physical hardware. They improve
resource utilization, scalability, flexibility, and isolation in cloud computing environments.
a) VMware
• VMware is one of the most popular virtualization platforms.
• It supports both desktop and server virtualization.
• VMware ESX/ESXi is a bare-metal hypervisor that runs directly on hardware.
• It provides efficient CPU, memory, storage, and network virtualization.
• VMware supports features like live migration (VMotion), load balancing, fault tolerance, and
disaster recovery.
• It offers high performance and enterprise-level virtualization support.

b) Xen
• Xen is an open-source microkernel hypervisor developed at Cambridge University.
• It acts as a virtualization layer between hardware and operating systems.
• Xen supports multiple guest operating systems running simultaneously.
• It uses Domain 0 (Dom0) as the privileged domain for managing hardware and guest VMs.
• Xen supports live VM migration, VM replication, and rollback operations.
• It mainly uses para-virtualization for better performance.

c) KVM (Kernel-Based Virtual Machine)


• KVM is a Linux-based virtualization solution integrated into the Linux kernel.
• It converts the Linux kernel into a hypervisor.
• KVM supports hardware-assisted virtualization using Intel VT-x and AMD-V technologies.
• It supports unmodified guest operating systems such as Windows, Linux, Solaris, and UNIX
variants.
• KVM uses Linux memory management and scheduling features, making it lightweight and
efficient.
• It also supports para-virtualization through the VirtIO framework.

d) Microsoft Hyper-V
• Hyper-V is Microsoft’s hardware virtualization technology.
• It is a Type-1 hypervisor that runs directly on physical hardware.
• Hyper-V allows multiple operating systems to run on the same server.
• It provides virtual networking, storage management, and live migration support.
• It is widely used in Windows Server environments and cloud data centers.
• Hyper-V offers good scalability, security, and integration with Microsoft services.
3. Describe the role of a Hypervisor. Compare Type-1 and Tvpe-2 hvpervisors.
A Hypervisor, also called a Virtual Machine Monitor (VMM), is a software layer that enables hardware-
level virtualization by acting as an intermediate layer between physical hardware and operating systems.
It creates and manages virtual machines (VMs) and allows multiple operating systems to run
simultaneously on a single physical machine.

Functions of a Hypervisor
Resource Virtualization

• Virtualizes CPU, memory, storage, and network resources.


• Provides each VM with virtual hardware resources.
VM Management

• Creates, starts, stops, and monitors virtual machines.


• Allocates resources dynamically among VMs.
Isolation

• Ensures that failure of one VM does not affect other VMs.


• Provides security and fault isolation between virtual machines.
Efficient Resource Utilization

• Allows multiple operating systems and applications to share the same hardware efficiently.
Supports Live Migration

• Enables migration of VMs from one physical host to another with minimal downtime.
Hardware Abstraction

• Converts physical hardware into virtual hardware for guest operating systems.

Comparison Between Type-1 and Type-2 Hypervisors


Feature Type-1 Hypervisor Type-2 Hypervisor
Definition Runs directly on physical Runs on top of a host operating
hardware system
Another Name Bare-metal Hypervisor Hosted Hypervisor
Performance High performance due to direct
Lower performance because of
hardware access host OS overhead
Security More secure and reliable Less secure compared to Type-
1
Resource Access Direct access to hardware Accesses hardware through host
resources OS
Efficiency More efficient and scalable Less efficient
Usage Used in servers and data Used in desktops and testing
centers environments
Examples VMware ESXi, Xen, Microsoft VMware Workstation, Oracle
Hyper-V VirtualBox
Type-1 Hypervisor

• Installed directly on the physical machine.


• Does not require a host operating system.
• Provides better performance and resource management.
• Commonly used in cloud computing and enterprise servers.

Type-2 Hypervisor

• Installed as an application on an existing operating system.


• Easier to install and use.
• Suitable for development, testing, and personal use.
• Performance is slower due to additional host OS layer.

You might also like