0% found this document useful (0 votes)
51 views55 pages

CC Lab Manual 1-6

The document outlines various exercises related to installing software and executing programs in virtual environments. It includes detailed procedures for installing VirtualBox/VMware, setting up a C compiler in a virtual machine, installing Google App Engine, launching web applications using GAE, simulating a cloud scenario with Cloud Sim, and transferring files between virtual machines. Each exercise concludes with a successful result of the installation or execution process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views55 pages

CC Lab Manual 1-6

The document outlines various exercises related to installing software and executing programs in virtual environments. It includes detailed procedures for installing VirtualBox/VMware, setting up a C compiler in a virtual machine, installing Google App Engine, launching web applications using GAE, simulating a cloud scenario with Cloud Sim, and transferring files between virtual machines. Each exercise concludes with a successful result of the installation or execution process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 55

Ex No:1 Install Virtualbox/VMware/ Equivalent open source cloud Workstation with

different flavours of Linux or Windows OS on top of windows 8 and above.


Date:

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:

(i) Install Virtual Box:

1) Download Virtual box platform package for your OS.


2) Open the installation package and finish installing virtual box.
3) When finished installation, close the Window

(ii) Download Linux:

1) Download the latest version of Ubuntu(32-bit)

(iii) Install Linux Using Virtual Box:

1) Run virtual box by double clicking the icon.


2) Click “New” button on the top left corner.
3) Click “Continue” on the pop up Window.
4) Type VM name select “Linux” for the OS and choose “Ubuntu” for version.
5) Choose the amount of memory do allocate(S12 to 1024)
6) Choose create a new Virtual hard Disk.
7) Choose VDI(Virtual Box Disk Image)
8) Choose “dynamically allocated” Click continue. This way the size of you virtual hard
disk , will grow and use.
9) Click the folder and choose the Ubuntu iso file you downloaded
10) Select the size of the Virtual Disk (5GB) and click continue.
11) Click create.

(iv) Running Linux:


1) Choose Ubuntu from left column and click start.
2) Click continue on pop up Window.
3) Choose the Downloaded Ubuntu iso file and click start and install Ubuntu.
4) Check “Download” updated and click forward.
5) Choose “Erase disk and install Ubuntu”.
6) Click install when finished click restart.
(v) C programming on Linux:
1) Open terminal.
2) Open gedit by typing “gedit&” on terminal.
3) Type the C program and save as “filename.c”.
4) Type “ls ” on the terminal to see all files under current folder.
5) Confirm that the program file in the directory.
6) Type “gcc filename.c” to compile and type “ls” to confirm that a new executable
file “a.out” is created.
7) Type “./a.out” on the terminal to run the program.
RESULT:

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy