0% found this document useful (0 votes)
11 views58 pages

CC Lab Manual

The document outlines the Cloud Computing Laboratory course for the Department of Computer Science and Engineering at St. Anne's College, detailing various experiments and procedures including the installation of VirtualBox, Google App Engine, and Hadoop, as well as simulating cloud scenarios using CloudSim. Each experiment includes specific aims, procedures, and applications of cloud computing. The course is designed to provide hands-on experience with cloud technologies and programming in a virtualized environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
11 views58 pages

CC Lab Manual

The document outlines the Cloud Computing Laboratory course for the Department of Computer Science and Engineering at St. Anne's College, detailing various experiments and procedures including the installation of VirtualBox, Google App Engine, and Hadoop, as well as simulating cloud scenarios using CloudSim. Each experiment includes specific aims, procedures, and applications of cloud computing. The course is designed to provide hands-on experience with cloud technologies and programming in a virtualized environment.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 58
ST. ANNE’S COLLEGE OF ENGINEERING AND TECHNOLOGY ANGUCHETTYPALAYAM, PANRUTI - 607 110 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS8711 — CLOUD COMPUTING LABORATORY Regulation 2017 Year / Semester : IV / VII Sep 2021 — Nov 2021 PREPARED BY Mr. S. MANAVALAN, M.Tech., Associate Professor / CSE . Install Virtualbox/VMware Workstation with different flavours of linux or windows OS on top of windows7 or 8. . Install a C compiler in the virtual machine created using virtual box and execute Simple Programs. Install Google App Engine. Create hello world app and other simple web applications using python/java. . Use GAE launcher to launch the web applications. Simulate a cloud scenario using CloudSim and run a scheduling algorithm that is not present in CloudSim. Find a procedure to transfer the files from one virtual machine to another virtual machine. Find a procedure to launch virtual machine using trystack (Online Openstack Demo Version) Install Hadoop single node cluster and run simple applications like wordcount. TABLE OF CONTENTS DATE EXPERIMENT TITLE MARKS, /10 SIGN. Tnstall Virtualbox / VMware Workstation with different flavours of linux or windows OS on top of windows7 or 8. Tastall a C compiler in the virtual machine created using virtual box and execute Simple Programs Install Google App Engine. Create hello world app and other simple web applications using python/java, Use GAE launcher to launch the web applications. Simulate a cloud scenario using CloudSim and run a scheduling algorithm that is not present in CloudSim. Find a procedure to transfer the files from one virtual machine to another virtual machine. Find a procedure to launch virtual machine using trystack (Online Openstack Demo Version) Tnstall Hadoop single node cluster and run simple applications like wordcount. EXNO.:1 DATE: Install Virtualbox / VMware Workstation with different flavours of linux or windows OS on top of windows7 or 8. Aim: To Install Virtualbox / VMware Workstation with different flavours of linux or windows OS on top of windows7 or 8. PROCEDURE: Steps _to install Virtual Box: 1. Download the Virtual box exe and click the exe file...and select next button.. Welcome to the Oracle VM VirtualBox 5.0.20 Setup Wizard ‘The Setup Wizard vil install Oracle VI VirtueBo« 5.0.29 on yur computer. Cli Next to contrue or Cancel to exit the Setup Weard Version §.0.20 2. Click the next button.. Custom Setup Select the way you want festures to be instaled, (ick on the consin the tree below to change the way features wil beinstaled, Oracle i VirtualBox 5.0.20 Virtual USE Suppert | application. Virtual Networking B= | Virtuallox ridges : ‘This feature requres 152Mé on ViralEox Host-C] your hard dive, thas 30f3 VirtualBox Python 2.xSt| subfeatures sslectec. The > | subfectures requre 684%B on yo. Location: C:Pragran Fles\OractelVirtualaw\ Brawse 3. Click the next button Custom Setup Select he vay you went features tobe insta, Please choese fiom the opens below: Wcreste 2 shortait on the desktop Create 2 shortaut nthe Quek Launch Sar JRegeter fie sesecatiore Version $0.20 4. Click the YES button.. Warning: Network Interfaces Instaling the Oracle VM VirtualBox 5.0.20 Networkng feature will eset your network connection and temporary disconnect you from the netnork Proceed with instalation naw? Version § 0,20 5. Click the install button... Ready to install ‘The seep Weard-eready t bean he Curt nso, (Certo beg he entation, IFyau sent to reve or change an of oir Fatelaton sting, deka Ce Cancale he wz Version 5.0.20 [ =x (CED | =n] 6. Then installation was completed..the show virtual box icon on desktop screen, VirtualBox Steps to import Open nebula sandbox: 1. Open Virtual box 2. File import Appliance 3. Browse OpenNebula-Sandbox-5.0.0va file 4, Then go to setting, select Usb and choose USB 1.1 5. Then Start the Open Nebula 6 . Login using username: root, password:opennebula ee ea oe 3 Steps to create Virtual Machine through opennebula 1. Open Browser, type localhost: 9869 2. Login using username: oneadmin, password: opennebula 3. Click on instances, select VMs then follow the steps to create Virtaul machine a. Expand the + symbol b. Select user oneadmin ¢. Then enter the VM name,no.of instance, epu. d. Then click on create button. cc. Repeat the steps the C,D for creating more than one VMs. Open Z Nebula Usemame eneacmin Password = £9 @ Shanes a2, crete ihe ons A = a som : . . ea APPLICATIONS: There are various applications of cloud computing in today’s network world. Many search engines and spcial websites are using the concept of cloud computing like www.amazon.com, hotmail.com, facebook com, linkedIn.com ete. the advantages of cloud computing in context to scalability is like reduced risk , low cost tdsting ability to segment the customer base and auto-scaling based on application load. RESULT: ‘Thus the procedure to run the virtual machine of different configuration. EX.NO.:2 DATE: Install a C compiler in the virtual machine created using virtual box and execute Simple Programs Aim: To Install a C compiler in the virtual machine created using virtual box and execute Simple Programs” PROCEDURI Steps to import .ova file: Open Virtual box File >import Appliance Browse ubuntu_gt6.ova file Then go to setting, select Usb and choose USB 1.1 Then Start the ubuntu_gt6 Login using username: dinesh, password:99425, ae kee Steps to run c program: 1 2. 3. 4, 5 . Open the terminal .. Type cd /opt/axis2/axis2-1.7.3/bin then press enter gedit hello.c . gcc hello.c . fa.out 1. Type ed /opt/axis2/axis2-1.7.3/bin then press enter EEE CLLERDE] 2. Type gedit first.c s CI ta] 5 1] i a Le | bed ie} teal 3. Type the c program = Running the C program 5. Display the output: ‘S SI _ 5 >i pe) APPLICATIONS: Simply running all programs in grid environment, LT: Thus the simple C programs executed successfully. EX NO.:3 DATE: Install Google App Engine. Create hello world app and other simple web applications using python/java. Aim: To Install Google App Engine. Create hello world app and other simple web applications using python/java. Procedure: 1. Install Google Plugin for Eclipse Read this guide — how to install Google Plugin for Eclipse. If you install the Google App Engin Java SDK together with “Google Plugin for Eclipse“, then go to step 2, Otherwise, get the Goofgle App Engine Java SDK and extract it. 2. Create New Web Application Project In Eclipse toolbar, click on the Google icon, and select “New Web Application Project...” Figure - New Web Application Project ie Eat Re Bronet Ran Wrdew Hep By SHB OF w HB eee B Proje plo NGL O NeptleeAopicaton Pree. Go Helovedd NEP lpn Goole Hoaed Projet © stat |g ont cmp et ou 1 Profile Using Speed Tracer © WEEAINE i, Depioy to Aop Engin. ces © cet cose App Mrtpce. 18 ape @ Aad Google At. D indechtmt 2%) clasipat B coer Mkyong.com Figure — Deselect the “Google Web ToolKit", and link your GAE Java SDK via the “configure SDK” link. Click finished, 3. Hello World G New Web Application Project Create a Web Application Project Create a Web Application project in the workspace or in an external location Project name: Heloviorld Package: (e.g. com.cxernplesmyproject) com.mkyong Location reate new projectin workspace reate new projectin Directory: [CAUsenibyonglworapace 37AHalaWevld Google SDks Pes Gesele Web Teclks Use default SDK (none) Configure SDKs SDK: Use spet 7]Uze Googe App Engine Use default SDK (appengine-ava-sdk-1.63.1-15.3) Configure SDKs. © Use speciic SDK: [appergine-jave-sdk-16.31 -163 ‘The project will use App Engine’s High Replication Datestore (HRD) by default. Google Apps Marketplace T Add supportfor isting on Google Apps Marketplace Sample Code Generate project sample code 7} Mkyon Google Plugin for Eclipse will generate a sample project automatically. Review the generated project directory. 4 @ HelloWorld & settings 4@ sc 4 @& com 4 & mlyong [i HelloWorldservietjave 4 @ METAANE 1 jdoconfigam! BB oatj.properties 4 @ war 4 @ WEB-INE > & classes 46 lb appengine-api-L0-sdk-16.31 jer appengine-api-abs-1531 jer appengine-jsrl07cache-1.6.31 jar datanucleus-appengine-.0.10,fnaljar datanucleus-core-14.5jar datanucleus-jpe-L1.5jar gerorime-jra 30 spec-1d.tjer gerorime-jta 11.-specLdjar ido2-api-2.3-ebjar 1 jsfl07cache. jar 1B) appengine-websml legging properties 3) webxml 2 sede? } Mkyong.com Nothing special, a standard Java web project structure. HelloWorld/ sre/ Java source code META-INF/ other configuration war! ISPs, images, data files WEB-INF app configuration, lib/ JARs for libraries classes! compiled classes Copy The extra is this file “appengine-web.xml", Google App Engine need this to run and deploy the application. File : appengine-webxml > ttp://appengine. google.com/ns/1.0"> 1 Instagram
    • Scribd - Download on the App Store
    • Scribd - Download on the App Store
    Language: