CC Lab Manual 1-6
CC Lab Manual 1-6
AIM:
To find the procedure to install VirtualBox/VMWARE workstation with different
flavours of Linux or Windows OS on the top of the Windows 7 or 8.
PROCEDURE:
STEP 1: Download the link. Download the software for Windows click and download
begins.
STEP 2: Download the installer file.
STEP 3: Locate the downloaded installer file.
STEP 4: User Access Control Warning. In UAC dialog box, Click yes to continue.
Install splash screen will appear
. STEP 5: VMware workstation setup wizard dialog box click next to continue.
STEP 6: End user license Agreement. Check “I accept the terms in the license
Agreement” box and press next to continue.
STEP 7: Custom setup options. Select the folder in which you would like to install the
application.
STEP 8: User experience setting.
STEP 9: Application shortcuts preference. Please select both the options, desktop and
start menu and click next.
STEP 10: Installation begins.
. STEP 11: Launch the VMware workstation and License.
STEP 12: The virtualbox/VMware software is ready
RESULT:
Thus the installation of VMware workstation with different flavour of Windows
OS on the top of Windows was successfully completed.
Install a C compiler in the virtual machine created using a
Ex No:2 virtual box and execute Simple Programs.
Date:
AIM:
To install a C program compiler in the virtual machine created using virtual box
and execute simple program.
PROCEDURE:
Thus the C compiler was installed in the virtual machine created using Virtual box
and the C program was executed successfully.
Ex No:3 INSTALLING AND RUNNING THE GOOGLE APP ENGINE
ON WINDOWS
Date:
AIM:
To install google app engine and create hello world app and other simple web
application using Python / Java.
PROCEDURE:
STEP 1: Download and install Python.
STEP 2: Download the google app engine SDK.
STEP 3: Download the Windows Installer.
STEP 4: Double click on the google App Engine Installer click through the installation
wizard and it should install the App Engine.
STEP 5: Make a folder for your google App Engine Application and then make a sub
folder called “ae-01-trivial”
STEP 6: Using a text editor such as JEdit, Create a File called app.yaml in the “ae-01-
trivial” folder with the following contents
application: ae-01-trivial
version: 1
runtime: Python
api_version:1
handlers:
-url : %*
script: index.py
Then create a folder called index.py with three lines
Print”Content-type text/Plain”
Print””
Print”Hello there”
STEP 7: Start the Google App Engine Launcher program using file-> Add existing
Application , select the ae-01- trivial folder. Once you have selected the application ;
Press Run
STEP 8: After a few moments, your application will start and the Launcher will
show a green icon next to it. Then press Browse do open a browser pointing
at your application which is running at http://localhost.8080/
STEP 9: Paste http://localhost.8080/ into your browser and you should see your
applications output.
STEP 10: Select your application in the Launcher and press the logs button to bring
up a log Window.
STEP 11: To shut down the server , use the launcher select you application and press
the stop button.
RESULT:
Thus the google app engine was installed and a simple application using python was
created and executed successfully.
EX NO:4
USE GAE LAUNCHER TO LAUNCH THE WEB APPLICATIONS
DATE:
AIM:
To use GAE launcher to launch the web applications.
PROCEDURE:
STEP 1: Create a new cloud console project or retrieve the project ID of an existing
project.
STEP 2: Install and then initialize the Google Cloud SDK.
STEP 3: The basic structure for the project consisted of two files, namely , app.yaml which
continue the configure settings of your AppEngine application Next , the www.directory to
store all of your static files, such as HTML, CSS, image and Java Script.
STEP 4: In the google SDK shell, initialize the cloud. Then deploy your application to
AppEngine using gcloud app deploy.
STEP 5: To view your application and launch it use the command gcloud app browse.
STEP 6: Now we can view the app with the corresponding link shown in the shell like
https://PROJECT_ID.REGION_ID_r.appspot.com.
RESULT:
Thus the web application was launched successfully using the GAE launcher.
Ex No:5 SIMULATE A CLOUD SCENARIO USING CLOUS SIM AND
RUN A SCHEDULING ALGORITHM THAT IS NOT PRESENT
IN CLOUD SIM
Date:
AIM:
To simulate a cloud scenario using clous sim and run a scheduling algorithm that is
not present in cloud sim.
PROCEDURE:
STEP 1: Download the cloud sim installable files from
http://code.google.com/p/cloudsim/downloads/list and unzip
STEP 2: Open the IDE’s such as Eclipse or NetBeans in your system
STEP 3: Create a new java project File -> New
STEP 4: Import an unpacked Cloud Sim project into the new Java project
.STEP 5: The first step is to initialize the cloud sim package by initializing the cloud Sim
Library ,as cloud Sim.init (num-user , calender , trace-flag)
STEP 6: Creation of data centers is the second step. To create datacenter, you need the Data
center characteristics object that stores the properties of data center such as OS , list of
machines,time zone etc
STEP 7: The third step is to create a broker.
DataCenter Broker broker =CreateBroker();
STEP 8: The fourth step is to create one virtual machine Unique mips, ID of the VM ,
UserID ID the VM’s owner,mips,amount of storage etc
Vm vm = new Vm (VMid ,brokerID ,mips.ped Number,ram,bw,size,vmm,new
CloudScheduler Time Shared())
STEP 9: Submit the VM list of the broker Broker.submit
Vmlist (Vmlist)
STEP 10: Create a cloud let with length , file size , output and utilization model.
Cloudlet.Cloudlet=newcloudlet(id,length,pesNumber,filesize,outputsize,utilization,Model,Utili
zation mode)
STEP 11: Submit the cloud let list to the broker broker.submit Cloudlet list(Cloudlet List)
STEP 12: Start the simulation Cloudsim , startSimulation()
RESULT:
Thus a cloud scenario using Cloud Sim was simulated and a scheduling algorithm that
is not present in cloud Sim was executed and the output is verified successfully.
Ex no: 6 FIND A PROCEDURE TO TRANSFER THE FILES FROM ONE
VIRTUAL MACHINE TO ANOTHER VIRTUAL MACHINE
Date:
AIM:
To find a procedure to transfer the files from one virtual machine to another virtual
machine.
PROCEDURE:
STEP 1: You can copy dew (or more) lines with copy & paste mechanism, For this you need
to share clipboard between, host OS and guest OS, installing Guest Addition on both the
virtual machines.
STEP 2: You can enable drag and drop too with the same method (Click on the machine,
settings, general, advanced , drag and drop: set to bidirectional)
STEP 3: You can have common shared folders on both virtual machines and use one of
the directory shared as buffer to copy. Installing Guest Additions you have the
possibility to set shared folders too.
STEP 4: You can use usual method to copy file between two different computer with
client server application (eg: scp with sshd active for linux)
STEP 5: You can mount part of the wile system op a virtual machine via NFS or 3S HFS
(or) you can also share file and directory with samba.
RESULT:
Thus the procedure to transfer the files from one virtual machine to another virtual
machine was explained and the output is verified successfully.