0% found this document useful (0 votes)
69 views61 pages

CC Lab Manual

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views61 pages

CC Lab Manual

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

SAVITRIBAI PHULE PUNE UNIVERSITY

ADSUL’S TECHNICAL CAMPUS

DEPARTMENT OF COMPUTER ENGINEERING

CLOUD COMPUTING

LAB MANUAL 2019 PATTERN

THIRD YEAR

ACADEMIC YEAR (2023-24)

1
ADSUL’S TECHNICAL CAMPUS

DEPARTMENT OF COMPUTER ENGINEERING

SUBJECT: LABORATORY PRACTICE II (310258)

INDEX

Sr.No. Name of Experiments Page No.


1. Case study on Microsoft azure to learn about Microsoft Azure is a cloud
computing platform and infrastructure, created by Microsoft, for building,
deploying and managing applications and services through a global network
of Microsoft-managed data centers. 3
OR
Case study on Amazon EC2 and learn about Amazon EC2 web services.
2. Installation and configure Google App Engine.
OR 22
Installation and Configuration of virtualization using KVM.
3. Creating an Application in SalesForce.com using Apex programming
Language. 28
4. Design and develop custom Application (Mini Project) using Salesforce
Cloud. 38
5. Mini-Project
Setup your own cloud for Software as a Service (SaaS) over the existing
LAN in your laboratory. In this assignment you have to write your own
code for cloud controller using open-source technologies to implement with 48
HDFS. Implement the basic operations may be like to divide the file in
segments/blocks and upload/ download file on/from cloud in encrypted
form.

2
Experiment No: 1(a)
Aim: Case study on Microsoft azure to learn about Microsoft Azure is a cloud computing
platform and infrastructure, created by Microsoft, for building, deploying and managing
applications and services through a global network of Microsoft-managed data centers.

Theory:
Azure virtual machines (VMs) can be created through the Azure portal. This method provides a
browser-based user interface to create VMs and their associated resources. This Assignment
discuss you how to use the Azure portal to deploy a virtual machine (VM) in Azure that runs
Windows Server 2016. To see your VM in action, you then RDP to the VM and install the IIS
Web server.
If you don't have an Azure subscription, create a free account before you begin.
Sign in to Azure
Sign in to the Azure portal at https://portal.azure.com.
Create virtual machine
1. Choose Create a resource in the upper left-hand corner of the Azure portal.
2. In the search box above the list of Azure Marketplace resources, search for
and select Windows Server 2016 Datacenter, then choose Create.
3. In the Basics tab, under Project details, make sure the correct subscription is selected
and then choose to Create new resource group. Type myResourceGroup for the name.

3
4
4. Under Instance details, type myVM for the Virtual machine name and choose East US for
your Location. Leave the other defaults.

Under Administrator account, provide a username, such as azureuser and a password. The
password must be at least 12 characters long and meet the defined complexity requirements.

Under Inbound port rules, choose Allow selected ports and then select RDP
(3389) and HTTP from the drop-down

7. Leave the remaining defaults and then select the Review + create button at the bottom of the
page.

Connect to virtual machine –

Create a remote desktop connection to the virtual machine. These directions tell you how to
connect to your VM from a Windows computer. On a Mac, you need an RDP client such as this
Remote Desktop Client from the Mac App Store.

1. Click the Connect button on the virtual machine properties page.

5
2. In the Connect to virtual machine page, keep the default options to connect by DNS
name over port 3389 and click Download RDP file.

3. Open the downloaded RDP file and click Connect when prompted.

4. In the Windows Security window, select More choices and then Use a different account.
Type the username as localhost\username, enter password you created for the virtual
machine, and then click OK.

5. You may receive a certificate warning during the sign-in process.

Click Yes or Continue to create the connection.

Install web server

To see your VM in action, install the IIS web server. Open a Power Shell prompt on the VM and

run the following command:

Power Shell Copy

Install-Windows Feature -name Web-Server –Include Management Tools


When done, close the RDP connection to the VM. View the IIS welcome
page

In the portal, select the VM and in the overview of the VM, use the Click to copy button to the
right of the IP address to copy it and paste it into a browser tab. The default IIS welcome page
will open, and should look like this:

6
Clean up resources:

When no longer needed, you can delete the resource group, virtual machine, and all related
resources. To do so, select the resource group for the virtual machine, select Delete, then confirm
the name of the resource group to delete.

Conclusion: In this Assignment, you deployed a simple virtual machine, open a network port for
web traffic, and installed a basic web server.

7
OR

Experiment No: 1(b)

Aim: Case study on Amazon EC2 to learn about Amazon EC2

Theory:

An EC2 instance is nothing but a virtual server in Amazon Web services terminology. It stands
for Elastic Compute Cloud. It is a web service where an AWS subscriber can request and
provision a compute server in AWS cloud.

An on-demand EC2 instance is an offering from AWS where the subscriber/user can rent the
virtual server per hour and use it to deploy his/her own applications. The instance will be charged
per hour with different rates based on the type of the instance chosen. AWS provides multiple
instance types for the respective business needs of the user.

Thus, you can rent an instance based on your own CPU and memory requirements and use it as
long as you want. You can terminate the instance when it’s no more used and save on costs. This
is the most striking advantage of an on-demand instance- you can drastically save on your
CAPEX. Let us see in detail how to launch an on-demand EC2 instance in AWS Cloud. Login
and access to AWS services

Step 1) In this step,

 Login to your AWS account and go to the AWS Services tab at the top left corner.
 Here, you will see all of the AWS Services categorized as per their area viz. Compute,
Storage, Database, etc. For creating an EC2 instance, we have to choose Compute EC2 as
in the next step.

8
 Open all the services and click on EC2 under Compute services. This will launch the
dashboard of EC2.

Here is the EC2 dashboard. Here you will get all the information in gist about the AWS EC2
resources running.

Step 2) On the top right corner of the EC2 dashboard, choose the AWS Region in which you
want to provision the EC2 server.

9
Here we are selecting N. Virginia. AWS provides 10 Regions all over the globe.

Step 3) In this step

Once your desired Region is selected, come back to the EC2 Dashboard.

Click on 'Launch Instance' button in the section of Create Instance (as shown below).

10
 Instance creation wizard page will open as soon as you click 'Launch
Instance'. Choose AMI

Step 1) In this step we will do,

1. You will be asked to choose an AMI of your choice. (An AMI is an Amazon Machine
Image. It is a template basically of an Operating System platform which you can use as a
base to create your instance). Once you launch an EC2 instance from your preferred
AMI, the instance will automatically be booted with the desired OS. (We will see more
about AMIs in the coming part of the tutorial).

2. Here we are choosing the default Amazon Linux (64 bit) AMI.

Choose EC2 Instance Types

Step 1) In the next step, you have to choose the type of instance you require based on your
business needs.

1. We will choose t2.micro instance type, which is a 1vCPU and 1GB memory server
offered by AWS.

2. Click on "Configure Instance Details" for further configurations

11
In the next step of the wizard, enter details like no. of instances you want to launch at a
time.

 Here we are launching one instance.


 Configure Instance
Step 1) No. of instances- you can provision up to 20 instances at a time. Here we are launching
one instance.

Step 2) Under Purchasing Options, keep the option of 'Request Spot Instances' unchecked as of
now. (This is done when we wish to launch Spot instances instead of on-demand ones. We will
come back to Spot instances in the later part of the tutorial).

12
Step 3) Next, we have to configure some basic networking details for our EC2 server.

 You have to decide here, in which VPC (Virtual Private Cloud) you want to launch your
instance and under which subnets inside your VPC. It is better to determine and plan this
prior to launching the instance. Your AWS architecture set-up should include IP ranges
for your subnets etc. pre-planned for better management. (We will see how to create a
new VPC in Networking section of the tutorial.

 Subnetting should also be pre-planned. E.g.: If it's a web server you should place it in the
public subnet and if it's a DB server, you should place it in a private subnet all inside your
VPC.
Below,

13
1. Network section will give a list of VPCs available in our platform.
2. Select an already existing VPC
3. You can also create a new VPC

Here I have selected an already existing VPC where I want to launch my instance.

Step 4) In this step,

 A VPC consists of subnets, which are IP ranges that are separated for restricting access. 
 Below,
1. Under Subnets, you can choose the subnet where you want to place your instance.
2. I have chosen an already existing public subnet.
3. You can also create a new subnet in this step.
4.

 Once your instance is launched in a public subnet, AWS will assign a dynamic public IP
to it from their pool of IPs. 

Step 5) In this step,

 You can choose if you want AWS to assign it an IP automatically, or you want to do it
manually later. You can enable/ disable 'Auto assign Public IP' feature here likewise. 

 Here we are going to assign this instance a static IP called as EIP (Elastic IP) later. So we
keep this feature disabled as of now.




14

15
16
• Select instance and click on connect.

Select RDP client and download remote desktop file and click on get password

17
• Click on browser

Select download server file

18
• Click on decrypt password

• Copied password and click on download folder and select remotedesktop


downloaded file and click on connect

19
• Paste here copied password click on ok button

• New window created.


• You will disconnect this window then choosecancel button or sign-out button

20
Conclusion: Thus, we saw in detail how to create an on-demand EC2 instance in this tutorial.
Because it is an on-demand server, you can keep it running when in use and 'Stop' it when it's
unused to save on your costs

21
Experiment No: 2(a)
Aim: Assignment to install and configure Google App Engine.

Theory:

Google App Engine is a web application hosting service. By “web application,” we mean

an application or service accessed over the Web, usually with a web browser: storefronts
with shopping carts, social networking sites, multiplayer games, mobile applications, survey

applications, project management, collaboration, publishing, and all the other things we’re

discovering are good uses for the Web. App Engine can serve traditional website content too,
such as documents and images, but the environment is especially designed for real-time
dynamic applications. Of course, a web browser is merely one kind of client: web application
infrastructure is well suited to mobile applications, as well.

In particular, Google App Engine is designed to host applications with many

simultaneous users. When an application can serve many simultaneous users without degrading
performance, we say it scales. Applications written for App Engine scale automatically. As
more people use the application, App Engine allocates more resources for the application and
manages the use of those resources. The application itself does not need to know anything
about the resources it is using.

The app engine is a Cloud-based platform, is quite comprehensive and combines

infrastructure as a service (IaaS), platform as a service (PaaS) and software as a service (SaaS).
The app engine supports the delivery, testing and development of software on demand in a
Cloud computing environment that supports millions of users and is highly scalable.

The company extends its platform and infrastructure to the Cloud through its app engine.

It presents the platform to those who want to develop SaaS solutions at competitive costs .Have
you ever wondered as to who stands to benefit the most from the Google app engine? If you are
a business SME or enterprise which owns any web-based application that needs to be scaled
without any compromise on the performance then Google App Engine is a good fit. Companies
like Best Buy and Khan Academy have chosen Google App Engine for their apps.

22
Google App Engine:

It is a platform-as-a-service (PaaS) Cloud computing platform that is fully managed and

uses inbuilt services to run your apps. You can start development almost instantly after
downloading the software development kit (SDK). You can go on to the developer’s guide right
away when you click on the language you wish to develop your app in.

As soon as you have signed up for a Cloud account, you can build your app:

 With the template/HTML package in Go


 With Jinja2 and webapp2 in Python
 With Cloud SQL in PHP
 With Maven in Java

Generally Available Features

These are covered by the depreciation policy and the service-level agreement of the app
engine. Any changes made to such a feature are backward-compatible and implementation of
such a feature is usually stable. These include data storage, retrieval, and search;
communications; process management; computation; app configuration and management.

 Data storage, retrieval, and search include features such as HRD migration tool,
Google Cloud SQL, logs, datastore, dedicated Memcache, blobstore, Memcache and search.
 Communications include features such as XMPP. channel, URL fetch, mail, and
Google Cloud Endpoints.
 Process management includes features like scheduled tasks and task queue
 Computation includes images.
 App management and configuration cover app identity, users, capabilities, traffic
splitting,modules, SSL for custom domains, modules, remote access, and multitenancy.

Advantages of Google App Engine:

 Infrastructure for Security

Around the world, the Internet infrastructure that Google has is probably the most secure.
There is rarely any type of unauthorized access till date as the application data and code
are stored in highly secure servers.

23
You can be sure that your app will be available to users worldwide at all times since Google
has several hundred servers globally. Google’s security and privacy policies are applicable to
the apps developed using Google’s infrastructure.

 Scalability

For any app’s success, this is among the deciding factors. Google creates its own apps

using GFS, Big Table and other such technologies, which are available to you when you utilize
the Google app engine to create apps. You only have to write the code for the app and Google
looks after the testing on account of the automatic scaling feature that the app engine has.
Regardless of the amount of data or number of users that your app stores, the app engine can
meet your needs by scaling up or down as required.

 Performance and Reliability

Google is among the leaders worldwide among global brands. So, when you discuss

performance and reliability you have to keep that in mind. In the past 15 years, the company has
created new benchmarks based on its services’ and products’ performance.

The app engine provides the same reliability and performance as any other Google
product.

 Cost Savings

You don’t have to hire engineers to manage your servers or to do that yourself. You can invest
the money saved into other parts of your business.

 Platform Independence

You can move all your data to another environment without any difficulty as there is not many
dependencies on the app engine platform.

O Installation Process

O Make sure that Python is installed in your system.

O Search “Google Cloud” on your browser andopen the link as shown in fig.

24
O Select “Cloud SDK” tab.

O Click on gcloud CLI to install

Google SDK CLI

25
• Click on Finish to start the Google Cloud SDK Shell or
open the application “Google Cloud SDK Shell” and type
“gcloud in it” command to begin the process.

nd
• st Choose 2 option for “Creating a new configuration”
or 1 option for choose the “default settings” from fig.shown
below.
• Now choose account to login. If not logged in earlier you’ll
be redirected to your browser for login with your google
account. Enter the credentials.

26
• Click on “Console” and open cloud shell editor.
• Create New file ‘name.py
• Type the code. Click on ‘Run’ menu tab.
• Click on “Start without debugging” if you want to run without debugging the program.
Proceed with default configurations .
• You have successfully deployed python app.

Conclusion: Thus we have studied Google app Engine.

27
Experiment No: 3(a)

Aim: Assignment to understand and create an application in Salesforce using


Apex programming language
Theory:

The Salesforce is well-known cloud computing company; The cloud services are running
the world at a good pace. Salesforce provides both SaaS and PaaS cloud services.
Salesforce provides different cloud for setup and management of business.

The clouds are: Sales Cloud, Service Cloud, Marketing Cloud, IoT Cloud,
and Community Cloud& App Cloud.
Salesforce.com is a suite of CRM (Customer Relationship Management) tools which are
designed to help big and small businesses dramatically improving their customer service,
retention rates, purchase analysis and much, much more. Force.com is the platform providedby
salesforce, is used for application development.

Salesforce provides the report and dashboard facility that helps to graphically display and
customize data that helps to easily understandable to any non-technical person. Salesforce
provides the transaction security to monitoring Salesforce events in real time to spot and correct
trouble right away.

Apex Programming Language:

The Apex language is similar as a java language but some syntax and functionality is
different and Visualforce is like HTML & XML language that helps to design good UI, but
to provide goodUI using Visualforce page it is good to use Jscript (Java-Script).

Salesforce trailhead:

Trailhead helps developers migrate from Salesforce Classic to Lightning Experience, the modern
development platform . which provides a great deal of declarative code so coding can be
Standardized and user friendly. Modules show users how to program in Apex, and JavaScript
and Visualforce.

1) Open your browser and search for salesforce trailhead

28
29
Click on profile and select “Hands On Orgs”.4

• Click on Launch

30
Click on developer console

• Select file name ->New ->apex class

31
Enter class name Then click OK

In body of the created class write following method

32
• Select File menu and save file

• Click debug menu and select open execute anonymous window

33
Add above apex code in open window and click on Execute

• select setting option and click on setup

In your Trailhead Playground, select all apps then click on sales

34
• Select the accounts tab and click on recently viewed

35
• click on recently folder(sforce)

Click on details

36
See the output in description

Conclusion: - We learn about creating an application in salesforce.com using Apex


Programming Language

37
Experiment No: 4

Aim-: Assignment Design and develop custom Application (Mini Project) using Sales force
Cloud.

Theory-:
The lightning app builder is a point and click tool to create a single page application for
Salesforce1 and lightning Experience.
Simply drag and drop the components into the builder layout to build the application. We can
build single-page applications using Visualforce pages and global actions to make the app more
interactive. App builder also provides the capability to build dashboard style applications. It
builds responsive applications for any type of device it will work similarly.
We can create a layout which four choices of sections for an app page. Here is an example of
three sections layout. Section 1 is the Main Column and the other sections are sidebars.
Implementation steps:-

1. From the Home tab in Setup, enter App in the Quick Find box, then select App Manager.

2. Click New Lightning App.

3. Walk through the Lightning App Wizard, creating an app with these parameters. App
Name. ...

4. Click Save and Finish to exit the wizard.

5. From the App Launcher

6. Check out the new app!

38
39
40
• Click on setup

• Search app manager

41
• Select New Lightning App

42
• Insert app name
• Upload app logo image and click

• Click in next

43
• Click on next

Select navigation items. This will appear at the top of the app

• Click on next

44
• Select system administrator
• click on save&finish

• Click on view all

45
• Select your app name

46
• This is your app

Conclusion-:

We learn about Design and develop custom Application using Sales force Cloud
47
Experiment No: 5

Aim:Title: Setup your own cloud for Software as a Service (SaaS) over the existing LAN in your
laboratory

Theory:

Here we are installing VMwareESXi cloud

Host/NodeESXi installation:-

ESXiHardwareRequirements:-

• ESXi6.7requiresahostmachinewithatleasttwoCPUcores.

• ESXi6.7supports64-bitx86processors

• ESXi6.7requirestheNX/XDbit to be enabled for the CPU in the BIOS.

• ESXi6.7requiresaminimumof4GBofphysicalRAM.Itisrecommended to provide at
least 8 GB of RAM to run virtual machines in typical productionenvironments.

• Tosupport64-bitvirtualmachines,supportfor hardware virtualization


(IntelVT-xor AMDRVI) mustbeenabledonx64CPUs.

• One or more Gigabit or faster Ethernet controllers. For a list of


supported network adapter models.

• SCSI disk oralocal,non-network,RAIDLUN with unpartitioned space for the


virtual machines.

ForSerialATA(SATA), a disk connected through supported SAS controller or supported on


board SATA controllers. SATA disks are considered remote not local. These disks are not used
as a scratch partition by default be cause they are seen as remote.

48
SXiInstaller

Accept Agreement:

49
Select Storage:

Select Keyboard Layout:

Set NodeESXi Root Password

50
Installation complete (Reboot)CLII interface to configuration

CLI Interface to Configuration:

Configure Management Network

51
Set IPV4

52
Set DNSresolver

Restart Management Network

53
GUIAccess

• Cluster Setup

• Creating Datacenter

• Creating Cluster

• Adding Hosts in cluster

• Resources after adding cluster.

• DRS

• Failover

54
VCenter Access:

55
Create Datacenter:

Create Cluster

56
Assign Cluster Name:

Add Host

Add Host IP

57
Enter Host credential

Host Summary:

58
Lock Down mode:

Add Host In Pool:

59
Host View and View Config:

Cluster View and Configuration:

60
Conclusion: Like this we have configureVSphere Private Cloud

61

You might also like