a tutorial on greencloud

18
GreenCloud: A Tutorial GreenCloud: A Tutorial Presented by: Md. Habibur Rahman (11-94853-2) Adnan Mehedi (12-95467-1) Adnan Mehedi (12-95467-1) Course: Simulation and Modeling Techniques Instructor: Dr. Md. Shamim Akhter

Upload: habibur-rahman

Post on 22-May-2015

3.426 views

Category:

Education


8 download

TRANSCRIPT

Page 1: A tutorial on GreenCloud

GreenCloud: A TutorialGreenCloud: A Tutorial

Presented by:

Md. Habibur Rahman (11-94853-2)Adnan Mehedi (12-95467-1)Adnan Mehedi (12-95467-1)

Course:Simulation and Modeling Techniques

Instructor:Dr. Md. Shamim Akhter

Page 2: A tutorial on GreenCloud

£ Introduction to GreenCloud£ Reasons for Learning GreenCloud£ PrerequisitesHow to install GreenCloud in Ubuntu 11.10

AgendaAgenda

£How to install GreenCloud in Ubuntu 11.10£ Exciting example on GreenCloud

Page 3: A tutorial on GreenCloud

GreenCloudGreenCloud£Motivation• The lack of detailed simulators on the market was the motivation to develop GreenCloud that allows researchers to observe, interact and measure cloud performance. measure cloud performance.

£ GreenCloud is a sophisticated open source cloud computing simulator

£ Greencloud as been elaborated in the context of the GreenIT project.

http://greencloud.gforge.uni.lu/index.html

Page 4: A tutorial on GreenCloud

£ There also was no provisioning for observing clouds for their energy-efficiency

£ Simulation environment for energy-aware cloud computing data centers.

GreenCloud FeatureGreenCloud Feature

£ GreenCloud is an extension of the well-known NS2 network simulator

£ Focused primarily on the communications within a cloud, i.e., all of the communication processes are simulated on packet level.

Page 5: A tutorial on GreenCloud

GreenCloud GreenCloud ArchitectureArchitecture

GreenCloud: A Packet-level Simulator of Energy-aware Cloud Computing Data Centers by D. Kliazovich et al.

Page 6: A tutorial on GreenCloud

GreenCloud: A Packet-level Simulator of Energy-aware Cloud Computing Data Centers by D. Kliazovich et al.

Page 7: A tutorial on GreenCloud

£ Basic knowledge in C++ £ Terminal Command Language (TCL)£ Knowing Network Simulator (NS2) is a plus point

PrerequisitesPrerequisites

plus point

Page 8: A tutorial on GreenCloud

£Operating System requirements – Ubuntu 11.10 (Tested)

£ Install GreenCloud in two ways• Simple way

How to install GreenCloud?How to install GreenCloud?

• Simple way• Complex way

£ GreenCloud Download Link: http://greencloud.gforge.uni.lu/index.html

Page 9: A tutorial on GreenCloud

£We need to download the virtual machine (Ubuntu) with GreenCloud simulator and VM contains:• default Ubuntu installation, with many extraneous packages removed

Simple way to install GreenCloudSimple way to install GreenCloud

packages removed• TCL, TK, OTCL, TclCL packages are installed • NS2 and GreenCloud installed from source• Eclipse with the NS2/GreenCloud project already set up• Only need the VMware Player or VMware Workstation

VM Download Link : http://greencloud.gforge.uni.lu/vm.html

Page 10: A tutorial on GreenCloud

£ VMware Player 4 is a free software£ To download VMware Player : http://www.vmware.com/go/downloadplayer/

£ Download and install VMware player according to the instruction on the screen

Simple way: Run SimulationSimple way: Run Simulation

the instruction on the screen£ Extract ubuntu-greencloud-v1.02.tar.gz£ Start VMware player from menu select open and select your ubuntu-greencloud-v1.02 extracted

£ Power on ubuntu-GreenCloud

Page 11: A tutorial on GreenCloud

Start VM using VMware PlayerStart VM using VMware Player

Page 12: A tutorial on GreenCloud

£ cd ~/greencloud-*£ ./run or ns example.tcl 0.30 100000

Run Simulation ExampleRun Simulation Example

“run” script to test simulation

Page 13: A tutorial on GreenCloud

£ For example you’ve installed ubuntu 11.10 in your machine.

£ Now you want to install GreenCloud in your machine to simulate cloud.

Complex way to install Complex way to install GGreenCloudreenCloud

machine to simulate cloud.£ You need to download GreenCloud: http://greencloud.gforge.uni.lu/

£ Unpack the downloaded GreenCloud software.£ Install GreenCloud using a setup script

Page 14: A tutorial on GreenCloud

Setup GreenCloud using scriptSetup GreenCloud using script

Page 15: A tutorial on GreenCloud

£ From home directory “sudo gedit .bashrc”

Setting Setting Environmental PathEnvironmental Path

Page 16: A tutorial on GreenCloud

£ Navigate to the root GreenCloud directory£ Copy “simulation_DC.tcl” and “setup_params.tcl” into “/home/sadamon/greencloud/ns2/ns-2.35gc/” directoryTo run the test simulation:

Complex way to install GreenCloudComplex way to install GreenCloud

£ To run the test simulation:• cd ~/greencloud• ./run

Page 17: A tutorial on GreenCloud

Simulation ResultSimulation Result

Page 18: A tutorial on GreenCloud

Thank you ☺Thank you ☺