CC Lab
CC Lab
No:
LAB MANUAL
Year / Semester:
HR-21III / VI
2023-2024
Hyderabad Institute of Technology and Management Roll. No:
LIST OF EXPERIMENTS
Simple Programs.
3. Install Google App Engine. Create hello world app and other simple web
5. Simulate a cloud scenario using CloudSim and run a scheduling algorithm that is not
present in CloudSim.
https://www.youtube.com/watch?v=jfjvOmTQxz8
https://www.youtube.com/watch?v=6-2y3yA2w3M
https://www.youtube.com/watch?v=a7sj6nT0na0
https://www.youtube.com/watch?v=uqsg0lLvbj0
https://www.youtube.com/watch?v=jfjvOmTQxz8
https://www.youtube.com/watch?v=PWVtpd6n8ks
https://www.youtube.com/watch?
v=u1olWm2agFM&list=PL9IfziJ50JY5z2ppTLAFJ2yxyVtBbhpgD
6. Find a procedure to transfer the files from one virtual machine to another virtual
machine.
https://www.youtube.com/watch?v=0aQEgGOF9RE
https://www.youtube.com/watch?v=IRNIogwTkII
https://www.youtube.com/watch?v=7YcLgTj4Peg
https://www.youtube.com/watch?v=FYmck1G0fqY
Hyderabad Institute of Technology and Management Roll. No:
7. Find a procedure to launch virtual machine using trystack (Online Openstack Demo
Version)
https://www.youtube.com/watch?v=XVsn2e2fvLQ
https://www.youtube.com/results?
search_query=7.%09Find+a+procedure+to+launch+virtual+machine+using+trystack+
(Online+Openstack+Demo+Version)
https://www.youtube.com/watch?v=N6Cbb_dSzpc
https://www.youtube.com/watch?v=X7IfK-pDLDM
8. Install Hadoop single node cluster and run simple applications like wordcount.
https://www.youtube.com/watch?v=5rJTPMLKsq0
https://www.youtube.com/watch?v=g7Qpnmi0Q-s
https://www.youtube.com/watch?v=98UCknD8_qA
https://www.youtube.com/watch?v=_F4CaEu0yTg
https://www.youtube.com/watch?v=QXXMNIzFRDY
https://www.youtube.com/watch?v=1-tQz1K_k1g
https://www.youtube.com/watch?v=OF4CzB54VYc
Hyderabad Institute of Technology and Management Roll. No:
Aim: Install Virtualbox / VMware Workstation with different flavours of linux or windows
OS on top of windows7 or 8.
PROCEDURE:
1. Overview
1. Overview
we’ll walk you through one of the easiest ways to try out Ubuntu Desktop on a virtual
machine. VirtualBox is a general purpose virtualiser that is available across Linux, Mac OS
and Windows.
Hardware requirements:
• 4 GB system memory
• Either a DVD drive or a USB port for the installer media/ ISO file of guest machine.
3. Click on the next button custom setup wizard appeared on the screen and select the
way you want features to be installed. Click on the icons in the tree below to change
the way features will be installed.
Hyderabad Institute of Technology and Management Roll. No:
6. Click the install button the setup wizard is ready to begin the custom installation
8. Click the finish button to exit the setup wizard and start oracle VM virtualBox 7.0.14
after installation
9. Once you have completed the installation, go ahead and run VirtualBox.
Hyderabad Institute of Technology and Management Roll. No:
Name: If you include the word Ubuntu in your name the Type and Version will auto-
update.
Machine Folder: This is where your virtual machines will be stored so you can
resume working on them whenever you like.
ISO Image: Here you need to add a link to the ISO you downloaded from the Ubuntu
website.
We want to install Ubuntu unattendedly so we can leave the checkbox to skip unchecked.
10. Fill the required attributes of guest operating system like name, folder, ISO image ,
which is located in the drives and click the next button.
Username: vboxuser
Password: changeme
It is important to change these values since the defaults will create a user without sudo
access.
Hyderabad Institute of Technology and Management Roll. No:
It is also recommended to check the Guest Additions box to install the default Guest
Additions ISO that is downloaded as part of VirtualBox.
Define Virtual resources:
we can specifiy how much of our host machine’s memory and processors the virtual
machine can use. For good performance it’s recommended to provide your VM with around
8GB of RAM (althought 4GB will still be usable) and 4 CPUs. Try to remain in the green areas
of each slider to prevent issues with your machine running both the VM and the host OS.
Hyderabad Institute of Technology and Management Roll. No:
Then we need to specify the size of the hard disc for the virtual machine. For Ubuntu we
recommend around 25 GB as a minimum. By default, the hard disk will scale dynamically as
more memory is required up to the defined limit.
You will see a message saying ‘Powering VM up …’ and your desktop window will appear.
Hyderabad Institute of Technology and Management Roll. No:
You will notice at this stage that the resolution of the window is fixed at 800x600. This is
because the Guest Additions features are not installed until after the Ubuntu installation has
completed.
Hyderabad Institute of Technology and Management Roll. No:
Once the installation completes, the machine will automatically reboot to complete the
installation.
Hyderabad Institute of Technology and Management Roll. No:
Finally you will be greeted with the Ubuntu log-in screen where you can enter your
username and password defined during the initial setup (don’t forget that the default
password is ‘change me’ if you left everything as the default).
As always we recommend opening a terminal and running sudo apt update && sudo apt
upgrade -y and then sudo snap refresh to get everything updated to the latest versions.
APPLICATIONS:
There are various applications of cloud computing in today’s network world. Many
search engines and social websites are using the concept of cloud computing like
www.amazon.com, hotmail.com, facebook.com, linkedln.com etc. the advantages of cloud
computing in context to scalability is like reduced risk , low cost testing ,ability to
segment the customer base and auto-scaling based on application load.
RESULT:
Write a C code by using any one of the editor and save it sample.c, and set file path at
terminal
Hyderabad Institute of Technology and Management Roll. No:
#include <stdio.h>
int main() {
printf("Welcome to Cherry Servers\n");
return 0;
}
Save the file as sample.c
#Step 2: Compile sample.c using GCC
Now that we have our source code, we can compile it with GCC using the following
command:
gcc sample.c
By default, GCC will output the compiled source code in a file called a.out
Let's execute it and check the results:
https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/
To Install Google App Engine. Create HitamWorld app and other simple web applications
using python/java.
Software Requirements:
Java 8 and Java 11+ runtimes on the App Engine standard environment
eclipse-java-2021-09-R-win32-x86_64
Install GoogleCloudSDKInstaller for windows operating system. The software
access from the below link
https://cloud.google.com/sdk/docs/install#windows
Procedure:
1. Install the Eclipse IDE for Java Developers, version 4.8 - 4.21 (later versions are not
supported).
Note:
When installing the plugin on Eclipse versions 4.21 (2021-09) and 4.20 (2021-06) you
Hyderabad Institute of Technology and Management Roll. No:
b. If you have the Google Plugin for Eclipse installed, complete the migrating from
GPE procedures.
c. Install JDK 8. Earlier and later versions of Java are not supported.
To create a new project for the App Engine standard environment in Eclipse:
2. Select Create New Project > Google App Engine Standard Java Project
Hyderabad Institute of Technology and Management Roll. No:
4. Click Next.
5. Select any libraries you need in the project.
6. Click Finish.
8. The extra is this file “appengine-web.xml“, Google App Engine need this
to run and deploy the application.
browser and navigate to http://localhost:8080. Either way, you'll see a static HTML page with
a link to the servlet.
Note: You may see a message that says, Port 8080 already in use. If so, you can run your
application on a different host or port.
Hyderabad Institute of Technology and Management Roll. No:
Just click on the servlet link message will be displayed on the host machine
Hyderabad Institute of Technology and Management Roll. No:
To debug your project locally, complete the running the project locally steps, except
select Debug As > App Engine instead of Run As > App Engine in the context menu.
The server stops at the breakpoints you set and shows the Eclipse debugger view.
EXP: 4
https://github.com/suyash-more/Cloud-Computing-Projects
https://www.youtube.com/watch?v=KrN7yg2Kqxo
https://github.com/suyash-more/Cloud-Computing-Projects
helloworld
https://www.youtube.com/watch?v=cURnZmHcvIQ
https://www.youtube.com/watch?v=qtiZwxXFy8I
Hyderabad Institute of Technology and Management Roll. No:
EXP: 5 Date:
Aim: Simulate a cloud scenario using CloudSim and run a scheduling algorithm
Procedure:
Software Requirements:
Procedure:
1. Install any of the IDE for running JAVA applications (eclipse recommended)
2. Install JDK and JRE for the same
3. Add the jdk\bin path to the environment variables Open environment variables
window, add the following to the path variable
8. Now right click on the project and choose configure build path.
9. Click on the libraries section and add external jars
10. Extract the Cloudsim.tar file you downloaded
11. Now import the jar files in that Cloudsim.tar into the external jars.
12. Do remember to change the name of the package in all the source files.
13. Now right click on the project and run the project as JAVA Application.
14. Select the SJF_Scheduler.java file present in the list.
15. Add CloudSim and commons math .jar files to the Java Project using build path select
configure Build path
3. Create a new java package name com.abc inside the src folder then click finish
Hyderabad Institute of Technology and Management Roll. No:
4. Dump the five .java files into the ClousSimulator_SJF/src/com.abc which are not existed
in the cloudsim and these files are accessing from github
https://github.com/suyash-more/Cloud-Computing-Projects/tree/master/Scheduling-
Algorithm-in-CloudSim
Hyderabad Institute of Technology and Management Roll. No:
4. Refresh the eclipse IDE dumping files are appeared in the folder hierarchy and
remember to change the name of the package in all the source files.
Hyderabad Institute of Technology and Management Roll. No:
4. Add CloudSim and commons math .jar files to the Java Project. right click on the
project name then choose build path select configure Build path, then choose class
path click on external jar button ---- > click on apply and close button.
Hyderabad Institute of Technology and Management Roll. No:
Output:
Hyderabad Institute of Technology and Management Roll. No:
Hyderabad Institute of Technology and Management Roll. No:
3. Create brokers
https://www.youtube.com/watch?v=YYTrlyUYpRU
https://www.youtube.com/watch?v=ohNUqIQ2t3M
https://www.youtube.com/watch?v=Ci-mKYbpeYQ
https://www.youtube.com/watch?v=c8DsJzxkhos
https://www.youtube.com/watch?v=u1olWm2agFM