Ccs335 Cloud Computing Lab Record
Ccs335 Cloud Computing Lab Record
Aim:
Procedure:
Downloading and installing VMware
Step 1: Download the latest version of VMware workstation from the official VMware site
for windows or Linux. Here we are downloading VMware Workstation 16 player.
Step 2:
Install VMware
Step 3: Browse and change the path of installation if needed and check the boxes of necessary
features and then click Next.
Step 4: Edit default settings that can improve your user experience and then click Next.
Step 5: Create shortcuts for VMware workstation 16 player in desktop or start menu or both if
needed and click Next.
Step 6: Now you are finally ready to install the VMware Workstation 16 player and click
Install.
Step 7: Now the VMware Workstation 16 player Setup Wizard is complete if you have
license click License or click Finish.
Downloading Ubuntu
Step 8: Now we have to download OS to run above host OS. Here we are downloading
Ubuntu from the official site. Ubuntu 20.04 LTS is downloaded
Step 9: Open the VMware workstation 16 player and create a new virtual machine by click on
the first logo.
Step 10: Now to install guest OS on VMware check Installer doc image file and browse the
path where the Ubuntu is downloaded and then Click Next.
Step 11: Fill the install information by adding full name, username and password and then
click Next.
Step 12: Name the virtual machine and browse the location of it and then click Next.
Step 13: Now specify the disk capacity the default maximum disk is 20GB and split virtual
disk to multiple files or store as single file and click Next
Step 14: Now you are ready to create virtual machine if needed customize hardware and click
Finish
Step 15: Installing Ubuntu on VMware
Step 16: Login in by entering the password that you have registered.
Step 17: Thus, we have installed VMware Workstation with different flavours of Linux on
top of windows.
Result:
EX. No.: 2 Install a C compiler in the virtual machine
Date: and execute a simple program
Aim:
Procedure:
Step 1: Open terminal on Ubuntu and install C compiler using the command $ sudo apt
install gcc.
Step 2: Wait for some time to install completely and once it is installed then open editor by
gedit command and type a simple c program
Step 3: Now come to the terminal and compile the c program with the command gcc
filename.c and run the program with command ./a.out
Result:
EX. No.:3 Installation of a Google App Engine
Date:
Aim:
Procedure:
Step 1: To install google app engine. Go to google cloud and download the cloud SDK installer
for appropriate OS.
Step 2: Launch the installer and follow the prompts. Click on necessary properties and click
Next.
Step 3: Read terms and conditions of the google cloud platform completely and
click I agree.to proceed further.
Step 4: Select install type either a single user or all users and then click Next.
Step 5: Change the destination folder path in which you want to install your setup
and click next to continue.
Step 6: Check the components you want to install and uncheck the components you
don’t want to install. Then click Install.to start installation.
Step 7: After successful installation click next to proceed.
Step 8: Finally check the boxes you need and then click Finish close the setup
Result:
EX. No.: 4 Use GAE launcher to launch the web application
Date:
Aim:
Procedure:
Step 1: Create a google cloud account and create a new python project. Clone
python using git.
$ git clone \
> https://github.com/GoogleCloudPlatform/python-docs-samples
$ source \
> ~/envs/hello_world/bin/activate
Step 5: Create a new app in gcloud
$ python main.py
Result:
EX. No.: 5 Simulate a cloud scenario using CloudSim and run
Date: a scheduling algorithm
Aim:
Procedure:
Step 1: Download Cloudsim zar file from google code
Result:
EX. No.: 6 Transfer the files from one virtual machine to
Date: another Virtual machine
Aim:
Procedure:
Step 1: Open VM virtualBox Workstation
Step 10: type “ipconfig” to view the ip address of the virtual machine 1.
Step 11: In virtual machine 2, open the run command and type the Ip address of virtual machine 1.
Step 12: Now, We can access the shared folder of virtual machine 1 in network place of virtual
machine 2.
Step 13: After opening the shared folder, we can copy the required files in virtual machine 2.
Result:
EX. No.: 7 Install Hadoop single node cluster and run a simple application
Date:
Aim:
Procedure:
Part 1: Installation of Hadoop single node cluster: Open the terminal in Ubuntu:
Step 1: Update the packages
$ sudo apt-get update
$ su – abinash
Step 9: To check whether ssh is installed properly by logging in and after that exit from it
$ ssh localhost
$ exit
Step 10: Download using this link: https://downloads.apache.org/hadoop/common/
*Click on hadoop-2.9.2/
*The click on hadoop-2.9.2.tar.gz
*You can find the "hadoop-2.9.2.tar.gz" in the downloads.
Step 23:
$ cd /home/abinash201002/Desktop/
*Now create a directory called data:
$ sudo mkdir data
$ cd data/
*Now open a file "sample.txt" and type the input:
$ sudo nano sample.txt
Step 24:
$ cd
$ cd /usr/local/hadoop
$ bin/hdfs dfs -mkdir /user
$ bin/hdfs dfs -mkdir /ypm
Result:
EX. No.: 8 Creating and Executing First Container Using Docker
Date:
Aim:
Procedure:
Step 1: Create a docker hub image library. Search for Docker hub.
Step 6: Thus the first container using docker is created and executed successfully using hello
world.
Result:
EX. No.: 9 Run a Container from Docker
Date:
Aim:
Procedure:
Step 1: Create a docker hub image library. Search for Docker hub.
Step 2: Sign-up and create a new docker id with username and password.
Step 3: Now after creating docker id, sign in with the docker – id.
Step 7: Use docker tag from step 5 as buildpackdemo and its version
Step 8: Use docker push command to push the latest version of buildpackdemo
from docker images.
Step 9: Now the contents are pushed to docker. Hence, open the docker hub and check for
the buildpackdemo. Now you can find the contents.
Step 12: Run the docker rmi buildpackdemo command and pull it.
Result: