experiments_cloud Computing
experiments_cloud Computing
Course Objective:
The objective of this course is to make students understand Cloud computing concepts and
the installation of different cloud simulation tools/ cloud setup tools.
Description: Research and document the steps required to run virtual machines with
different configurations on various cloud platforms.
Tools Needed: Internet access for research.
Cost: Free
Description: Develop simple web applications using Google Colab or other free-tier
cloud services and deploy them.
Tools Needed: Google Colab, free-tier cloud service (e.g., Heroku).
Cost: Free
Install Google App Engine. Create Hello World App and Other Simple Web
Applications Using Python/Java
Description: Follow tutorials to set up Google App Engine (GAE) and deploy simple
applications.
Tools Needed: Google Cloud account with free-tier.
Cost: Free within free-tier limits.
Description: Use Google App Engine launcher to deploy and manage web
applications.
Tools Needed: Google Cloud account with free-tier.
Cost: Free within free-tier limits.
Description: Research and document the steps for transferring files between virtual
machines on different cloud platforms.
Tools Needed: Internet access for research.
Cost: Free
Description: Research and document the procedure to launch a virtual machine using
Trystack.
Tools Needed: Internet access for research, Trystack account.
Cost: Free
Experiment Descriptions
Procedure:
2. Cloud Architecture:
o Study the basic architecture of cloud computing which includes the front-end (client
devices and applications) and back-end (servers, storage, databases, etc.)
components.
3. Service Models:
o Understand the three primary service models:
Infrastructure as a Service (IaaS): Provides virtualized computing resources
over the internet.
Platform as a Service (PaaS): Offers hardware and software tools over the
internet.
Software as a Service (SaaS): Delivers software applications over the
internet.
4. Deployment Models:
o Study the four main deployment models:
Public Cloud: Services are delivered over a network that is open for public
use.
Private Cloud: Services are maintained on a private network.
Hybrid Cloud: Combines public and private clouds.
Community Cloud: Shared by several organizations with common concerns.
5. Key Technologies:
o Explore technologies that enable cloud computing such as virtualization, service-
oriented architecture (SOA), grid computing, and utility computing.
7. Case Studies:
o Review case studies of organizations that have successfully implemented cloud
computing solutions.
Code/Commands:
This experiment primarily involves theoretical study and understanding. However, setting up
and using cloud services can be demonstrated using various cloud platforms like AWS, Azure,
and Google Cloud.
Conclusion:
Procedure:
Code/Commands:
Objective: To understand and execute the procedure to run VMs with different
configurations.
Procedure:
3. Verify VM Configuration:
o Ensure the VM runs with the specified configurations.
Objective: To determine the maximum number of VMs that can be utilized simultaneously.
Procedure:
1. Deploy Multiple VMs:
o Deploy VMs until the resources are fully utilized.
3. Determine Limits:
o Identify the point at which additional VMs cannot be deployed.
Procedure:
2. Install C Compiler:
o Install GCC or any other C compiler.
# Install GCC
sudo apt-get update
sudo apt-get install gcc
Procedure:
2. Configure Migration:
o Use the cloud management tools to set up migration policies.
Procedure:
Procedure:
1. Requirement Analysis:
o Identify the requirements for the cloud-based application.
2. Architecture Design:
o Design the architecture of the application.
Procedure:
# View output
hdfs dfs -cat /output/part-00000
Procedure:
1. Install VirtualBox/VMware:
o Download and install VirtualBox or VMware Workstation.
3. Verify Installation:
o Ensure the VMs are running correctly.
Code/Commands:
# VirtualBox example
# Create a new VM using VirtualBox GUI or CLI
VBoxManage createvm --name "UbuntuVM" --ostype Ubuntu_64 --register
# Modify VM settings
VBoxManage modifyvm "UbuntuVM" --memory 2048 --cpus 2 --nic1 nat
# Start VM
VBoxManage startvm "UbuntuVM"
Experiment 11: Install a C Compiler in the Virtual Machine Created Using
VirtualBox and Execute Simple Programs
Procedure:
1. Create VM in VirtualBox:
o Follow steps from Experiment 10.
2. Install C Compiler:
o SSH into the VM and install GCC or another C compiler.
Code/Commands:
ssh user@vm-ip-address
# Install GCC
./hello
Experiment 12: Install Google App Engine. Create Hello World App and
Other Simple Web Applications Using Python/Java
Objective: To install Google App Engine (GAE) and create simple web applications.
Procedure:
3. Deploy Application:
o Deploy the application to GAE.
gcloud init
mkdir hello_world
cd hello_world
Procedure:
# Follow the steps to create and deploy using GAE Launcher GUI
Procedure:
1. Install CloudSim:
o Download and set up CloudSim.
2. Create Simulation:
o Write a CloudSim simulation scenario.
3. Run Simulation:
o Execute the simulation and analyze results.
import org.cloudbus.cloudsim.core.CloudSim;
// Initialize CloudSim
int numUser = 1;
// Start simulation
CloudSim.startSimulation();
// Stop simulation
CloudSim.stopSimulation();
Procedure:
1. Select Scheduler:
o Choose a scheduling mechanism to implement.
2. Modify CloudSim:
o Modify CloudSim code to implement the chosen scheduler.
3. Run Simulation:
o Execute the simulation and compare results.
Experiment 16: Find a Procedure to Transfer Files from One Virtual Machine
to Another Virtual Machine
Objective: To transfer files between VMs.
Procedure:
1. Set Up VMs:
o Ensure both VMs are running and accessible.
2. Transfer Files:
o Use SCP or any other file transfer method.
Procedure:
1. Access Trystack:
o Sign up and log in to Trystack.
2. Launch VM:
o Follow the Trystack interface to launch a VM.
3. Verify VM:
o Ensure the VM is running.
Experiment 18: Install Hadoop Single Node Cluster and Run Simple
Applications Like Word Count
Objective: To set up a Hadoop single-node cluster and run a Word Count application.
Procedure:
1. Install Hadoop:
o Download and install Hadoop.
2. Configure Hadoop:
o Configure the Hadoop environment for single-node operation.
wget https://downloads.apache.org/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz
mv hadoop-3.3.1 /usr/local/hadoop
source ~/.bashrc
# Start Hadoop
start-dfs.sh
start-yarn.sh