cloud computing unit - ii. virtualization virtualization hiding the reality the mantra of smart...

25
Cloud Computing – UNIT - II

Upload: bridget-lewis

Post on 19-Jan-2018

220 views

Category:

Documents


0 download

DESCRIPTION

Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-> Assembly->High level UI hides the business logic DNS names hide the IP addresses URL hides the web resource API hides functionality JVM hides the intermediate code

TRANSCRIPT

Page 1: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Cloud Computing – UNIT - II

Page 2: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

VIRTUALIZATION

Page 3: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Virtualization

• Hiding the reality • The mantra of smart computing is to

intelligently hide the reality• Binary-> Assembly->High level• UI hides the business logic• DNS names hide the IP addresses• URL hides the web resource• API hides functionality• JVM hides the intermediate code

Page 4: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Before we understand Virtualization

• How do you run Multiple Operating Systems on the same box?

• Can they interact with each other ?• Can they share each other’s resources such as

memory, hard disk, network etc ?• Can you run all of them together (in one

shot?)• How easy it is to switch between them ?

Page 5: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

STEP BY STEP UNDERSTANDING OF

VIRTUALIZATION

Page 6: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Hard Disk Partitioning

WIN 7

UBUNTU

RED HAT

Page 7: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

OS Virtualizes the Hardware

Device Drivers

HARDWARE

Page 8: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

CPU Virtualization (x86)

Page 9: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Clustering and Failover• Node 1 and Node 2 have same

content either through shared or replicated mode.

• One node is active and the rest is passive.

• Heartbeat keeps track of the presence of the node

• Node 1 goes down, no heartbeat• The services are transferred and

rendered from Node 2• This is transparent and hence

virtual to the client

Page 10: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Java Virtual Machine• Class loader loads the java

classes/interfaces• Execution Engine executes

the methods contained in the loaded classes

• Run time data areas store run time data like stack.

• Each class execution is done by means of a java thread.

Page 11: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Virtualization Wikipedia Definition

Virtualization, in computing, refers to the act of creating a virtual (rather than actual) version of something, including but not limited to a virtual computer hardware platform, operating system (OS), storage device, or computer network resources.

Page 12: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Concept Of Virtualization

• Simulated Environment (a Virtual Machine) provides the environment required to run he Guest Software

• The Guest Software can be complete OS to specific programs• Simulated Environment can control the guest environment in terms of

access and lifetime• The Guest Program thinks that it is running in an actual system not a

simulated environment

Actual System

SimulatedEnv

GUEST Software

SimulatedEnv

GUEST SoftwareSimulated

Env

Page 13: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Basic Architecture

• Hypervisor allows multiple Guest OSs share the Hardware via Host OS.

• Mostly the Hypervisor is run inside the HOST OS• Example : Guest Windows 7 Prof SP1 running on a HOST

Ubuntu 13.1• In some cases, the Hypervisor is inside the Host OS itself

Page 14: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Hypervisor (Virtual Machine Monitor)

• Directly runs on the hardware of the host

• Shares the hardware resources with multiple VMs

• Manages CPU, memory and Network interface between different VMs

• Runs at ring 0

Page 15: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Virtual Machine

• Software implementation of a computing environment

• A computing environment is a software process which can host an OS or a program

• Computing Environment emulates – A processor architecture– Memory – Secondary Storage

Page 16: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

TYPES OF VIRTUALIZATION

Page 17: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

CPU Virtualization

• CPU is shared between multiple Guest OSs

• Hypervisor does the translations of commands between Guest OSs and the CPU

• Guest OS cannot reside on Ring 0 makes the more complex

Page 18: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Full Virtualization

• Guest OS in Ring 1, Hypervisor in Ring 0

• Hypervisor traps the Guest OS Privileged commands and does the binary translation of the command.

• No change in Guest OS required• Reduced performance due to this

translation process (Virtualization overhead)

Page 19: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Full Virtualization WithReducing Virtualization Overhead

• Guest OS runs on Ring 0 (which is an improvement)

• Ring -1 introduced which runs the Hypervisor

• No binary translation is required as Guest OS can run Privileged instructions directly on the H/W.

• For I/O calls, Hypervisor is used.• Improves performance • Needs change in CPU Arch

(provided by intel-VT and AMD-V)

Page 20: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Para Virtualization• A software hypervisor is installed

on a Physical server• The guest OS is modified to

make Hypervisor calls• These Hypervisor calls (CPU and

memory access) are directly send to the hardware

• I/O calls are routed through regular Hypervisor

• The Hypervisor is not overloaded

• Overhead in modifying OS Kernel

Page 21: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Network Virtualization

Page 22: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

To Summarize….

Page 23: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Benefits of Virtualization

• Server Consolidation• Testing and Development• Dynamic Load Balancing • Disaster Recovery• Pre-loaded VMs for specific needs • Virtual Desktops• Reduces installation and configuration time of the

data center• Improves data center efficiency

Page 24: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Virtualization and the Cloud

• Cloud computing requires many many servers to carry out varied activities

• Creating phyiscal servers is expensive and not scalable• Hence, virtualization is a natural fit • Scalability is a major use case in Cloud computing, it is

easy to create/clone VMs and increase capacities• If there are node failures, it is easy to bring up a VM

from nowhere• Maintaining a VM is easier than maintaining a physical

box.

Page 25: Cloud Computing  UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary-

Thank You