Cloud Computing Practical Record 2025-2026
Cloud Computing Practical Record 2025-2026
ACADEMIC YEAR
2025-2026
ODD SEMESTER
REGISTER NUMBER :
COURSE :
YEAR :
SEMESTER :
BONAFIDE CERTIFICATE
Register Number :
FIFTH Semester in the CCS335– CLOUD COMPUTING during the year 2025-2026.
Aim:
Procedure:
#2. Setup Wizard: then the setup wizard will install the VMware Workstation Pro on your
system so click Next to go ahead and click Exit to cancel the installation.
Setup Wizard
#3. End-User License Agreement: in this step accept the terms in the license agreement and
click on the Next button.
Accept the terms
#4. Custom Setup: select the folder in which you would like to install the VMware
application. and besides that select enhanced keyboard driver.
Custom Setup
#5. User Experience Setting: select both options but you can uncheck it, so I leave it as
default and click on the Next button.
User Experience Setting
#6. Application Shortcuts preference: here select the place you want the shortcut icons to
be placed on your system to launch the application so I recommend you select both options
and click on the Next button.
#8. Installing VM Workstation On Windows: The below screenshot shows the installation
is in progress, so wait for this to complete.
#9. Complete the Setup Wizard: In the end, you will see the installation complete dialog
box. so, click on Finish and you are done with installation progress. while you click on
Finish then it will ask you to restart your computer so you can do it by clicking on Yes or if
you want to do it later then click on No.
Complete Setup Wizard
Result:
Thus, the Installation of VirtualBox/VMware Workstation with different flavours of
Linux or windows OS on top of windows7 successfully.
Install a C compiler in the virtual machine and execute a sample
Ex. No:2
program.
Aim:
To find procedure to attach virtual block to the virtual machine and check whether it
holds the data even after the release of the virtual machine.
Procedure:
Through Openstack portal create virtual machine. Through the portal connect to virtual
machines. Login to VMs and install c compiler using commands.
• Show the virtual machine migration based on the certain condition from one node to the
other.
$ nova list
• After selecting a VM from the list, run this command where VM_ID is set to the ID in
the list returned in the previous step:
• To migrate an instance and watch the status, use this example script:
#!/bin/bash
# Provide usage
usage() {
echo "Usage: $0 VM_ID"
exit 1
}
[[ $# -eq 0 ]] && usage
# Migrate the VM to an alternate hypervisor
echo -n "Migrating instance to alternate host"
VM_ID=$1
nova migrate $VM_ID
VM_OUTPUT=`nova show $VM_ID`
VM_STATUS=`echo "$VM_OUTPUT" | grep status | awk '{print $4}'`
while [[ "$VM_STATUS" != "VERIFY_RESIZE" ]]; do
echo -n "."
sleep 2
VM_OUTPUT=`nova show $VM_ID`
VM_STATUS=`echo "$VM_OUTPUT" | grep status | awk '{print $4}'`
done
nova resize-confirm $VM_ID
echo " instance migrated and resized."
echo;
# Show the details for the VM
echo "Updated instance details:"
nova show $VM_ID
# Pause to allow users to examine VM details
read -p "Pausing, press <enter> to exit."
Result:
Thus, the Install a C compiler in the virtual machine and execute a sample program
created successfully.
Install Google App Engine. Create hello world app and other
Ex. No:3 simple web applications using python
Aim:
To Install Google App Engine. Create hello world app and other simple web
applications using python
Procedure:
3. When the Cloud Shell Editor status bar is available, click Cloud Code, and then do the
following:
4. In the Save dialog, select your home folder, and then click Create New Application.
Loading the Deploy to Cloud Run tab might take some time to complete. If the Authorize
Cloud Shell dialog appears and you agree to the terms, click Authorize.
2. When the Deploy to Cloud Run tab has loaded, do the following:
b. Click Deploy.
When the deployment of your service is completed, the following message appears:
You have successfully created and deployed a web service on Cloud Run.
Result:
Create hello world app was successfully completed using google cloud.
Ex. No: 4 Use GAE launcher to launch the web applications.
Aim:
To use GAE launcher to launch the web applications
Procedure:
To see where it is, click the following button: Compute Engine chevron_right VM instances
6. Click Select.
8. Click Create.
Your new instance appears on the VM instances page. When a checkmark appears, you can
connect to the instance.
A new command prompt opens and shows that you are connected to your VM terminal.
Aim:
To Simulate a cloud scenario using CloudSim and run a scheduling algorithm that is
not present in CloudSim.
Procedure:
7. Click next and then you will see “cloudsimproject1” will be created. Now expand
cloudsimproject1 and you will see two folders. Soure packages and Libraries. Hit
libraries as given below:
Figure 3: Go to Libraries
[Link] you can see above initially you will have to add jar files into the libraries folder. Now
click add JAR/FOLDER and you will see the following screen :-
[Link] go to the Cloudsim 3.0.3 extracted folder into your directory. Go to the path as given
below: cloudsim3.0.3 -> examples->org . Copy the “org” sub folder which is inside examples
as its parent folder. Once you copy it, now go to netbeans and click paste into the source
packages. It is shown as below:-
[Link] in the following Fig 7, you will see the cloud sim examples get installed.
Figure 7:Installation of cloud sim into Net beans
Vm vm = new Vm(vmid, brokerId, mips, pesNumber, ram, bw, size, vmm, new
CloudletSchedulerTimeShared())
5. Submit the VM list to the broker:
[Link](vmlist)
6. Create a cloudlet with length, file size, output size, and utilisation model:
[Link](cloudletList)
8. Start the simulation:
[Link]()
Sample Output from the Existing Example:
Starting CloudSimExample1...
Initialising...
Starting CloudSim version 3.0
Datacenter_0 is starting...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>null
Broker is starting...
Entities started.
0.0: Broker: Cloud Resource List received with 1 resource(s)
0.0: Broker: Trying to Create VM #0 in Datacenter_0
0.1: Broker: VM #0 has been created in Datacenter #2, Host #0
0.1: Broker: Sending cloudlet 0 to VM #0
400.1: Broker: Cloudlet 0 received
400.1: Broker: All Cloudlets executed. Finishing...
400.1: Broker: Destroying VM #0
Broker is shutting down...
Simulation: No more future events
CloudInformationService: Notify all CloudSim entities for shutting down.
Datacenter_0 is shutting down...
Broker is shutting down...
Simulation completed.
Simulation completed.
========== OUTPUT ==========
Cloudlet ID STATUS Data center ID VM ID Time Start Time Finish Time
0 SUCCESS 2 0 400 0.1 400.1
*****Datacenter: Datacenter_0*****
User id Debt
3 35.6
CloudSimExample1 finished!
Result:
Aim:
To find a procedure to transfer the files from one virtual machine to another virtual machine.
Prerequisites
• Verify that the virtual machines use a guest operating system that supports shared
folders.
• Verify that the latest version of VMware Tools is installed in the guest operating
system.
• Verify that permission settings on the host system allow access to files in the shared
folders. For example, if you are running Workstation Player as a user named User, the
virtual machine can read and write files in the shared folder only if User has
permission to read and write them.
Procedure
• Select the virtual machine and select Player > Manage > Virtual Machine Settings.
Option Description
Always enabled Keep folder sharing enabled, even when the virtual machine is shut
down, suspended, or powered off.
Enabled until Enable folder sharing temporarily, until you power off, suspend, or
next power off shut down the virtual machine. If you restart the virtual machine,
or suspend shared folders remain enabled. This setting is available only when
the virtual machine is powered on.
• (Optional) To map a drive to the Shared Folders directory, select Map as a network
drive in Windows guests.
This directory contains all of the shared folders that you enable. Workstation
Player selects the drive letter.
Characters that the guest operating system considers illegal in a share name appear
differently when viewed inside the guest. For example, if you use an asterisk in a
share name, you see %002A instead of * in the share name on the guest. Illegal
characters are converted to their ASCII hexadecimal value.
Option Description
Enable Enable the shared folder. Deselect this option to disable a shared folder
this share without deleting it from the virtual machine configuration.
Read-only Make the shared folder read-only. When this property is selected, the
virtual machine can view and copy files from the shared folder, but it
cannot add, change, or remove files. Access to files in the shared folder is
also governed by permission settings on the host computer.
The shared folder appears in the Folders list. The check box next to folder name
indicates that the folder is being shared. You can deselect this check box to disable
sharing for the folder.
View the shared folder. On Linux guests, shared folders appear under /mnt/hgfs. On Solaris
guests, shared folders appear under /hgfs.
Creating a Virtual Machine in OpenStack via OpenStack CLI
Source the credential file and then execute the nova-boot command,
Once nova boot command is executed then following are steps are executed behind the scene,
Step:1) The Horizon Dashboard or OpenStack CLI gets user credentials and authenticates
with identity service via REST API
• The identity service (Keystone) authenticates the user with the user credentials and then
generates and send back an auth-token, that auth-token which will be used for sending
the request to other components through REST-Call
Step:2) The Dashboard or OpenStack CLI converts new instance request specified in launch
instance or nova boot command to a REST API request and sent it to nova-api
Step:3) Then nova-api service gets the request and send that request to the identity service
(Keystone) for validation of auth-token and access permission,
• Keystone service validates the token and send the updated authentication headers with
roles along with the permissions
Step:4) After getting the repsonse from keystone, then nova-api checks for conflicts with
nova-database and then it creates initial database entry for new instance or VM.
Step:5) nova-api sends the [Link] request to nova-scheduler expecting to get updated
instance entry with host id specified
Step:8) nova-compute picks the request from the queue and it sends the [Link] request to
nova-conductor to get the VM or instance info such as host id and flavor (RAM, CPU and
Disk)
Step:9) nova-conductor takes the request from queue and communicate with nova-database,
• nova-conductor gets the instance information
• now nova-compute picks the instance information from the queue
Step:10) nova-compute connects to glance-api by making a REST Call using auth-token and
then nova-compute uses the image id to get the image URI from image service and loads the
image from image storage
Step:11) glance-api validates the auth-token with keystone and after that nova-compute gets
the image metadata
Step:12) Nova-compute make the REST-call by passing the auth-token to Network API
(Neutron) to allocate and configure network so that vm gets the IP address
Step:13) Neutron-server validates the auth-token with keystone and after that nova-compute
retrieves the network information.
Step:14) Nova-Compute makes the REST-call by passing the auth-token to Volume API to
attach the volume to the instance or VM.
Step:15) cinder-api validates the auth-token with keystone and then nova-compute gets the
block storage information.
Step:16) nova-compute generates data for the hypervisor driver and executes the request on
the hypervisor using libvirt or API and then finally a VM is created on the hypervior. We can
see that VM in Dashboard and also using “nova list” command.
Result:
Thus, the procedure to transfer the files from one virtual machine to another virtual
machine completed successfully.
Ex. No:7 Install Hadoop single node cluster and run simple applications like
wordcount.
Aim:
Install Hadoop single node cluster and run simple applications like wordcount.
Prerequisites
• VIRTUAL BOX: it is used for installing the operating system on it.
• OPERATING SYSTEM: You can install Hadoop on Linux based operating systems.
Ubuntu and CentOS are very commonly used. In this tutorial, we are using CentOS.
• JAVA: You need to install the Java 8 package on your system.
• HADOOP: You require Hadoop 2.7.3 package.
Install Hadoop
Step 1: Click here to download the Java 8 Package. Save this file in your home directory.
Step 2: Extract the Java Tar File.
Command: tar -xvf [Link]
3 <configuration>
4 <property>
5 <name>[Link]</name>
6 <value>hdfs://localhost:9000</value>
7 </property>
8 </configuration>
Step 8: Edit [Link] and edit the property mentioned below inside configuration tag:
[Link] contains configuration settings of HDFS daemons (i.e. NameNode, DataNode,
Secondary NameNode). It also includes the replication factor and block size of HDFS.
Command: vi [Link]
3 <configuration>
4 <property>
5 <name>[Link]</name>
6 <value>1</value>
7 </property>
8 <property>
9 <name>[Link]</name>
10 <value>false</value>
11 </property>
12 </configuration>
Step 9: Edit the [Link] file and edit the property mentioned below inside
configuration tag:
[Link] contains configuration settings of MapReduce application like number of
JVM that can run in parallel, the size of the mapper and the reducer process, CPU cores
available for a process, etc.
In some cases, [Link] file is not available. So, we have to create the [Link]
file using [Link] template.
Command: cp [Link] [Link]
Command: vi [Link].
3 <configuration>
4 <property>
5 <name>[Link]</name>
6 <value>yarn</value>
7 </property>
8 </configuration>
Step 10: Edit [Link] and edit the property mentioned below inside configuration tag:
[Link] contains configuration settings of ResourceManager and NodeManager like
application memory management size, the operation needed on program & algorithm, etc.
Command: vi [Link]
Fig: Hadoop Installation – Configuring [Link]
1 <?xml version="1.0">
2 <configuration>
3 <property>
4 <name>[Link]-services</name>
5 <value>mapreduce_shuffle</value>
6 </property>
7 <property>
8 <name>[Link]</name>
9 <value>[Link]</value>
10 </property>
11 </configuration>
Step 11: Edit [Link] and add the Java Path as mentioned below:
[Link] contains the environment variables that are used in the script to run Hadoop like
Java home path, etc.
Command: vi hadoop–[Link]
Start JobHistoryServer:
JobHistoryServer is responsible for servicing all job history related requests from client.
Command: ./[Link] start historyserver
Step 14: To check that all the Hadoop services are up and running, run the below command.
Command: jps
If Apache Hadoop 2.2.0 is not already installed then follow the post Build, Install,
Configure and Run Apache Hadoop 2.2.0 in Microsoft Windows OS.
2. Start HDFS (Namenode and Datanode) and YARN (Resource Manager and Node
Manager)
Namenode, Datanode, Resource Manager and Node Manager will be started in few
minutes and ready to execute Hadoop MapReduce job in the Single Node (pseudo-
distributed mode) cluster.
Namenode & Datanode :
• Copy the text file(say '[Link]') from local disk to the newly created 'input'
directory in HDFS.
C:\hadoop>bin\hdfs dfs -copyFromLocal c:/[Link] input
Copy
• Check output.
• C:\hadoop>bin\hdfs dfs -cat output/*
• Example 1
• Hadoop 2
• Install 1
• Mapreduce 1
• Run 1
Wordcount 1
Copy
Result:
Thus, the Installation of Hadoop single node cluster and wordcount program executed
successfully.
Ex. No:8 Creating and Executing Your First Container Using Docker.
Aim:
wsl -install
● The above command will install ubuntu terminal on your [Link] installed Type
“ubuntu” on powershell .This opens the Ubuntu terminal.
● Install Docker on your computer.
● Create a Dockerfile. This is a text file that contains the instructions for creating a Docker
container.
nano dockerfile
● The following is an example of a Dockerfile that creates a container that runs the nginx web
server:
FROM nginx:latest
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]
● Build the Docker image from the Dockerfile. You can do this by running the following
command:
This will start a Docker container running the nginx web server.
● To verify that the container is running, you can open a web browser and navigate to the IP
address of your Docker host.
Result:
Creating and Executing Your First Container Using Docker was successful.
Creating and Executing Container Using Docker was completed
Ex. No:9
successful
A Docker ID grants you access to Docker Hub repositories and lets you explore available
images from the community and verified publishers. You also need a Docker ID to share
images on Docker Hub.
13. To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
14. Share images, automate workflows, and more with a free Docker ID:
[Link]
15. For more examples and ideas, visit:
[Link]
Step 5: Build and push a container image to Docker Hub from your computer
1. Start by creating a Dockerfile to specify your application as shown below:
2. # syntax=docker/dockerfile:1
3. 1. FROM busybox
4. CMD echo "Hello world! This is my first Docker image."
5. Run docker build -t <your_username>/my-private-repo. To build your Docker image.
6. Run docker run <your_username>/my-private-repo to test your Docker image locally.
7. Run docker push <your_username>/my-private-repo to push your Docker image to
Docker Hub. You should see output similar to:
Result:
Running a Container from Docker Hub was completed successfully.