Cloud Computing Lab Manual Jan-jun 2025
Cloud Computing Lab Manual Jan-jun 2025
B.Tech (CSE)
TABLE OF CONTENT
AIM:
THEORY: Cloud computing is on-demand access, via the internet, to computing resources—
applications, servers (physical servers and virtual servers), data storage, development tools,
networking capabilities, and more—hosted at a remote data center managed by a cloud
services provider (or CSP). The CSP makes these resources available for a monthly subscription fee
or bills them according to usage. Cloud computing works by enabling client devices to access data and
cloud applications over the internet from remote physical servers, databases and computers.
On-Demand Self-Service: Users can provision and manage computing resources as needed
without requiring human intervention from the service provider.
Broad Network Access: Cloud services are accessible over the internet from various devices
such as laptops, smartphones, and tablets.
Resource Pooling: Multiple customers share pooled computing resources (e.g., servers,
storage, networking) to serve multiple users or tenants.
Rapid Elasticity: Resources can be quickly scaled up or down based on demand. Users pay for
only the resources they consume.
Measured Service: Cloud computing resources are metered, and users are billed based on their
usage. This pay-as-you-go model offers cost efficiency and flexibility.
1
Various Cloud Deployment Models:
Cloud deployment models refer to the ways in which cloud computing resources and services are
made available to users. There are several deployment models, each with its own characteristics and
use cases. Cloud Deployment Model functions as a virtual computing environment with a deployment
architecture that varies depending on the amount of data you want to store and who has access to the
infrastructure. The three main cloud deployment models are:
Public Cloud: In a public cloud deployment, cloud services are provided by third-party service
providers over the internet. These services are made available to the general public or a large
industry group. The public cloud may be less secure as it is open to everyone. The public cloud
is one in which cloud infrastructure services are provided over the internet to the general
people or major industry groups. The infrastructure in this cloud model is owned by the entity
that delivers the cloud services, not by the consumer. It is a type of cloud hosting that allows
customers and users to easily access systems and services. This form of cloud computing is an
excellent example of cloud hosting, in which service providers supply services to a variety of
customers. The IT giants such as Google, Amazon and Microsoft offer cloud services via
Internet.
2
Private Cloud: In a private cloud deployment, cloud services are used exclusively by a single
organization. The infrastructure can be located on-premises or hosted by a third-party
provider. Private clouds are distributed systems that work on private infrastructure and provide
the users with dynamic provisioning of computing resources. Instead of a pay-as-you-go
model in private clouds, there could be other schemes that manage the usage of the cloud and
proportionally billing of the different departments or sections of an enterprise. Private cloud
providers are HP Data Centers, Ubuntu, Elastic-Private cloud, Microsoft, etc.
Offers greater control over resources and security, as the cloud is dedicated to a single
organization.
Suited for organizations with specific regulatory or compliance requirements.
May be more expensive than public cloud due to dedicated infrastructure.
Provides flexibility in terms of customization and configuration.
Managed by the organization itself or a third-party provider.
Hybrid Cloud: A hybrid cloud deployment combines elements of both public and private
clouds. It allows data and applications to be shared between them. For this reason, they are
also called heterogeneous clouds. A major drawback of private deployments is the inability to
scale on-demand and efficiently address peak loads. Here public clouds are needed. Hence, a
hybrid cloud takes advantage of both public and private clouds.
3
Characteristics of Hybrid Cloud:
Offers greater flexibility by allowing workloads to move between public and private
clouds.
Provides a balance between the cost efficiency of public cloud and the control of private
cloud.
Useful for scenarios where certain data or applications need to remain on-premises while
others can take advantage of the scalability of the public cloud.
Requires effective integration and management of both cloud environments.
Community Cloud: A community cloud is a cloud computing deployment model that is shared
among several organizations with common interests, such as industry-specific compliance
requirements, security concerns, or collaborative projects. In a community cloud, the
infrastructure is shared by a specific community of users who have shared goals and
requirements. This deployment model offers a middle ground between public and private
clouds, providing a level of control and customization while allowing for shared resources and
cost benefits.
Resources like servers, storage, and networks are shared among multiple organizations within
a specific community.
Users in a community cloud share common goals, concerns, or industry-specific requirements.
Designed to foster collaboration and communication among participating organizations.
Organizations within the community share costs, leading to potential cost savings compared to
individual private clouds.
Offers a higher degree of customization and control over infrastructure compared to public
clouds.
Commonly found in industries with specific regulatory standards or where collaboration is
crucial, such as healthcare, finance, and government.
4
Figure: Community Cloud
RESULT:
The choice of the best cloud deployment model depends on the specific needs, goals, and constraints
of an organization. Each deployment model—public, private, hybrid, and community—has its own
advantages and is suitable for different scenarios. A hybrid cloud approach that combines the benefits
of public and private clouds may offer a good balance, allowing organizations to leverage the
advantages of both models.
5
EX. NO.: 2
AIM:
To study about various cloud computing services models.
THEORY: Cloud computing model is used to deliver the services to end users from a pool of
shared resources such as computer systems, network components, storage systems, database servers
and software applications as a pay-as-you-go service rather of purchasing or owning them. The
services are delivered and operated by the cloud provider, which reduces the end user's management
effort.
Cloud computing allows the delivery of a wide range of services categorized into three basic types of
delivery models as follows:
7
Characteristics of IaaS:
Advantages of IaaS:
Cost-Effective: Eliminates capital expense and reduces ongoing cost and IaaS customers
pay on a per-user basis, typically by the hour, week, or month.
Website hosting: Running websites using IaaS can be less expensive than traditional web
hosting.
Security: The IaaS Cloud Provider may provide better security than your existing software.
Maintenance: There is no need to manage the underlying data center or the introduction of
new releases of the development or underlying software. This is all handled by the IaaS
Cloud Provider.
Disadvantages of IaaS:
Limited control over infrastructure: IaaS providers typically manage the underlying
infrastructure and take care of maintenance and updates, but this can also mean that users
have less control over the environment and may not be able to make certain customizations.
Security concerns: Users are responsible for securing their own data and applications,
which can be a significant undertaking.
Limited access: Cloud computing may not be accessible in certain regions and countries
due to legal policies.
Platform as a Service (PaaS): PaaS cloud computing platform is created for the programmer
to develop, test, run, and manage the applications.
Characteristics of PaaS:
8
Advantages of PaaS:
Simple and convenient for users: It provides much of the infrastructure and other IT
services, which users can access anywhere via a web browser.
Cost-Effective: It charges for the services provided on a per-use basis thus eliminating the
expenses one may have for on-premises hardware and software.
Efficiently managing the lifecycle: It is designed to support the complete web application
lifecycle: building, testing, deploying, managing, and updating.
Efficiency: It allows for higher-level programming with reduced complexity thus, the
overall development of the application can be more effective.
Disadvantages of PaaS:
Limited control over infrastructure: PaaS providers typically manage the underlying
infrastructure and take care of maintenance and updates, but this can also mean that users
have less control over the environment and may not be able to make certain
customizations.
Dependence on the provider: Users are dependent on the PaaS provider for the availability,
scalability, and reliability of the platform, which can be a risk if the provider experiences
outages or other issues.
Limited flexibility: PaaS solutions may not be able to accommodate certain types of
workloads or applications, which can limit the value of the solution for certain
organizations.
Characteristics of SaaS:
Disadvantages of SaaS:
RESULT: This was the study of various service models. The organizations may choose a
combination of these service models based on their specific needs, development practices, and the level
of control they require over the underlying infrastructure.
10
EX. NO.: 3
AIM:
To study cloud monitoring systems.
THEORY: Cloud monitoring system is automated and manual tool used to manage, monitoring and
evaluating cloud computing architecture, infrastructure, and service. Cloud monitoring is the process of
reviewing, controlling and managing the operational and active workflow and processes within a cloud
infrastructure. It is the use of manual or automated IT monitoring and management techniques to ensure
that a cloud infrastructure or platform optimize the performance of cloud. Monitoring is crucial for
ensuring optimal performance, identifying potential issues, and maintaining the overall health of cloud-
based systems. Various cloud monitoring solutions offer a range of features to help organizations track
and analyze their cloud resources. Cloud monitoring provides an efficient way to achieve this visibility
while providing an enterprise with actionable insights to improve availability and user experiences.
The cloud has numerous moving components, and for top performance, it’s critical to safeguard that
everything comes together seamlessly. This need has led to a variety of monitoring techniques to fit the
type of outcome that a user wants.
Database monitoring
Because most cloud applications rely on databases, this technique reviews processes, queries,
availability, and consumption of cloud database resources. This technique can also track queries and
data integrity, monitoring connections to show real-time usage data. For security purposes, access
requests can be tracked as well. For example, an uptime detector can alert if there’s database instability
and can help improve resolution response time from the precise moment that a database goes down.
Website monitoring
A website is a set of files that is stored locally, which, in turn, sends those files to other computers over
a network. This monitoring technique tracks processes, traffic, availability, and resource utilization of
cloud-hosted sites.
11
Virtual network monitoring
This monitoring type creates software versions of network technology such as firewalls, routers, and
load balancers. Because they’re designed with software, these integrated tools can give you a wealth of
data about their operation. If one virtual router is endlessly overcome with traffic, for example, the
network adjusts to compensate. Therefore, instead of swapping hardware, virtualization infrastructure
quickly adjusts to optimize the flow of data.
This technique tracks multiple analytics simultaneously, monitoring storage resources and processes
that are provisioned to virtual machines, services, databases, and applications. This technique is often
used to host infrastructure-as-a-service (IaaS) and software-as-a-service (SaaS) solutions. For these
applications, you can configure monitoring to track performance metrics, processes, users, databases,
and available storage. It provides data to help you focus on useful features or to fix bugs that disrupt
functionality.
This technique is a simulation of a computer within a computer; that is, virtualization infrastructure and
virtual machines. It’s usually scaled out in IaaS as a virtual server that hosts several virtual desktops. A
monitoring application can track the users, traffic, and status of each machine. You get the benefits of
traditional IT infrastructure monitoring with the added benefit of cloud monitoring solutions.
RESULT:
This was the study of cloud monitoring systems along with its types.
12
EX. NO.: 4
Install Virtualbox / VMware Workstation with different flavours of linux or
windows OS on top of windows7 or 8.
AIM:
To Install Virtualbox / Vmware Workstation with different flavours of linux or windowsOS on top of
windows7 or 8.
PROCEDURE:
12
3. Click the next button.
13
5. Click the install button.
6. Then installation was completed, then show virtual box icon on desktop screen.
14
Steps to import Open nebula sandbox:
1. Open Virtual box
2. File import Appliance
3. Browse OpenNebula-Sandbox-5.0.ova file
4. Then go to setting, select Usb and choose USB 1.1
5. Then Start the Open Nebula
6. Login using username: root, password:opennebula
15
Steps to create Virtual Machine through opennebula
1. Open Browser, type localhost:9869
2. Login using username: oneadmin, password: opennebula
3. Click on instances, select VMs then follow the steps to create Virtaul machine
a. Expand the + symbol
b. Select user oneadmin
c. Then enter the VM name,no.of instance, cpu.
d. Then click on create button.
e. Repeat the steps the C,D for creating more than one VMs.
16
17
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, 18otmail.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:
18
EX. NO.:5
Install a C compiler in the virtual machine created using virtual box and
execute Simple Programs
AIM:
To Install a C compiler in the virtual machine created using virtual box and execute Simple Programs.
PROCEDURE:
19
Steps to run c program:
20
3. Type the c program
21
5. Display the output:
APPLICATIONS:
Simply running all programs in grid environment.
RESULT:
Thus the simple C programs executed successfully.
22
EX. NO.:6
Install Google App Engine. Create hello world app and other simple web
applications using python/java.
AIM:
To Install Google App Engine. Create hello world app and other simple webapplications
using python/java.
PROCEDURE:
Figure – Deselect the “Google Web ToolKit“, and link your GAE Java SDK via the “configureSDK” link.
23
Click finished, Google Plugin for Eclipse will generate a sample project automatically.
3. Hello World
Review the generated project directory.
24
Nothing special, a standard Java web project structure.
HelloWorld/
src/
...Java source code...
META-INF/
...other configuration...
war/
...JSPs, images, data files...
WEB-INF/
...app configuration...
lib/
...JARs for libraries...
classes/
...compiled classes...
25
The extra is this file “appengine-web.xml“, Google App Engine need this to run and deploy the
application.
File : appengine-web.xml
</appengine-web-app>
4. Run it local
Right click on the project and run as “Web Application“.
Eclipse console :
//...
INFO: The server is running at http://localhost:8888/
30 Mac 2012 11:13:01 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: The admin console is running at http://localhost:8888/_ah/admin
Copy
Access URL http://localhost:8888/, see output
26
and also the hello world servlet – http://localhost:8888/helloworld
In this demonstration, I created an application ID, named “mkyong123”, and put it in appengine-
web.xml.
File : appengine-web.xml
</appengine-web-app>
27
To deploy, see following steps:
Figure 1.2 – Sign in with your Google account and click on the Deploy button.
28
Figure 1.3 – If everything is fine, the hello world web application will be deployed to this URL –
http://mkyong123.appspot.com/
RESULT:
Thus the simple application was created successfully.
29
EX.NO:7
Find a procedure to transfer the files from one virtual machine to
another virtual machine.
AIM:
To find a procedure to transfer the files from one virtual machine to another virtual machine.
Steps:
1. You can copy few (or more) lines with copy & paste mechanism.
For this you need to share clipboard between host OS and guest OS, installingGuest Addition on
both the virtual machines (probably setting bidirectional and restarting them). You copy from
guest OS in the clipboard that is shared with the host OS.
Then you paste from the host OS to the second guest OS.
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 )
3. You can have common Shared Folders on both virtual machines anduse one of the directory
shared as buffer to copy.
Installing Guest Additions you have the possibility to set Shared Folders too.As you put a file in
a shared folder from host OS or from guest OS, is immediately visible to the other. (Keep in
mind that can arise some problems for date/time of the files when there are different clock
settings on the different virtual machines).
If you use the same folder shared on more machines you can exchange filesdirectly copying
them in this folder.
4. You can use usual method to copy files between 2 different computer with client-server
application. (e.g. scp with sshd active for linux, winscp... you can get some info about SSH
servers e.g. here)
You need an active server (sshd) on the receiving machine and a client onthe sending machine.
Of course you need to have the authorization setted (via password or, better, via an automatic
authentication method).
Note: many Linux/Ubuntu distribution install sshd by default: you can see ifit is running with
pgrep sshd from a shell. You can install with sudo apt-get install openssh-server.
5. You can mount part of the file system of a virtual machine via NFS or SSHFS on the other, or
you can share file and directory with Samba. You may find interesting the article Sharing files
between guest and host without VirtualBox shared folders with detailed step by step
instructions.
30
You should remember that you are dialling with a little network of machineswith different operative
systems, and in particular:
Each virtual machine has its own operative system running on and actsas a physical machine.
Each virtual machine is an instance of a program owned by an user in the hosting operative
system and should undergo the restrictions of the user in thehosting OS.
E.g Let we say that Hastur and Meow are users of the hosting machine, but they did not allow
each other to see their directories (no read/write/execute authorization). When each of them
run a virtual machine, for the hosting OS those virtual machine are two normal programs
owned by Hastur and Meow and cannot see the private directory of the other user. This is a
restriction due to the hosting OS. It's easy to overcame it: it's enough to give authorization to
read/write/execute to a directory or to chose a different directory in which both users can
read/write/execute.
Windows likes mouse and Linux fingers. :-)
I mean I suggest you to enable Drag & drop to be cosy with the Windows machines and the
Shared folders or to be cosy with Linux.
When you will need to be fast with Linux you will feel the need of ssh-keygen and
to Generate once SSH Keys to copy files on/from a remote machine without writingpassword
anymore. In this way it functions bash auto-completion remotely too!
PROCEDURE:
Steps:
1. Open Browser, type localhost:9869
2. Login using username: oneadmin, password: opennebula
3. Then follow the steps to migrate VMs
a. Click on infrastructure
b. Select clusters and enter the cluster name
c. Then select host tab, and select all host
d. Then select Vnets tab, and select all vnet
e. Then select datastores tab, and select all datastores
f. And then choose host under infrastructure tab
g. Click on + symbol to add new host, name the host then click on create.
4. on instances, select VMs to migrate then follow the stpes
a. Click on 8th icon ,the drop down list display
b. Select migrate on that ,the popup window display
c. On that select the target host to migrate then click on migrate.
31
Before migration
Host:SACET
Host:one-sandbox
32
33
After Migration:
Host:one-sandbox
34
Host:SACET
APPLICATIONS:
Easily migrate your virtual machine from one pc to another.
RESULT:
Thus the file transfer between VM was successfully completed.
35
EX.NO:8
Find a procedure to launch virtual machine using trystack (OnlineOpenstack
Demo Version)
AIM:
To find a procedure to launch virtual machine using trystack.
Steps:
OpenStack is an open-source software cloud computing platform.
OpenStack is primarily used for deploying an infrastructure as a service (IaaS) solution like Amazon
Web Service (AWS). In other words, you can make your own AWS by using OpenStack. If you want to
try out OpenStack, TryStack is theeasiest and free way to do it.
In order to try OpenStack in TryStack, you must register yourself by joining TryStack Facebook
Group. The acceptance of group needs a couple days because it’s approved manually. After you have
been accepted in the TryStack Group, youcan log in TryStack.
TryStack.org Homepage
I assume that you already join to the Facebook Group and login to the dashboard. After you
log in to the TryStack, you will see the Compute Dashboard like:
36
OpenStack Compute Dashboard
In this post, I will show you how to run an OpenStack instance. The instance willbe accessible
through the internet (have a public IP address). The final topology will like:
37
Network topology
As you see from the image above, the instance will be connected to a localnetwork and the local
network will be connected to internet.
38
4. In Networking tab,
1. In Selected Networks, select network that have been created in Step 1, for example internal.
5. Click Launch.
6. If you want to create multiple instances, you can repeat step 1-5. I created onemore instance with
instance name Ubuntu 2.
39
Step 5: Configure Access & Security
OpenStack has a feature like a firewall. It can whitelist/blacklist your in/out connection. It is called
Security Group.
1. Go to Compute > Access & Security and then open Security Groups tab.
2. In default row, click Manage Rules.
3. Click Add Rule, choose ALL ICMP rule to enable ping into your instance, and then click
Add.
4. Click Add Rule, choose HTTP rule to open HTTP port (port 80), and then click Add.
5. Click Add Rule, choose SSH rule to open SSH port (port 22), and then click Add.
6. You can open other ports by creating new rules.
Now, you can SSH your instances to the floating IP address that you got in the step 4. If you are
using Ubuntu image, the SSH user will be ubuntu.
RESULT:
40
EX.NO.:9
Find a procedure to attach Virtual Box to a Virtual Machine
AIM:
To attach a virtual box to a virtual machine.
ALGORITHM:
Step1:Goto :https://sourceforge.net/projects/rf-virtualbox-lib-py/
41
Step4:Goto Name and LocationProject NameNext
42
Step7:Attached the virtual box in the virtual machine
Step8: Attached the virtual block to the virtual machine in the cloud sim
RESULT:
Thus virtual box has been attached with virtual machine.
43
EX.NO.: 10
Install a C compiler in the virtual machine and execute a sample program.
AIM:
To Install a C compiler in the virtual machine and execute a sample program
Algorithm:
Step1:Copy the cloudsim folder in E:drive
44
Step 4: Go to drive E:\cloudsim- 3.0.3\examples\org\cloudbus\cloudsim\examples\
Cloudsimexample1.c
Step 6: Open Source page in netbeans, delete the code and paste the code ( Step5)
45
Step 7: change the package name and class name as mycloud.
RESULT:
Thus, the c compiler has been implemented successfully.
46
VIVA QUESTIONS AND ANSWERS
47
grids.
48
12. Define Netbeans.
NetBeans is an open-source integrated development environment (IDE) for developing with Java,
PHP, C++, and other programming languages. NetBeans is also referred to as a platform of modular
componentsused for developing Java desktop applications.
The Support of modeling and simulation of large scale computing environment as federated
clouddata centers, virtualized server hosts, with customizable policies for provisioning host resources
to virtual machines and energy-aware computational resources
It is a self-contained platform for modeling cloud’s service brokers, provisioning, and allocation
policies.
It supports the simulation of network connections among simulated system elements.
Availability of a virtualization engine that aids in the creation and management of
multiple independent and co-hosted virtual services on a data center node.
Flexibility to switch between space shared and time shared allocation of processing cores
to virtualized services.
52
40. Define Hadoop.
Hadoop is an open-source software framework for storing data and running applications on clusters of
commodity hardware. It provides massive storage for any kind of data, enormous processing power
and the ability to handle virtually limitless concurrent tasks or jobs.
53