Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views33 pages

MCSL-229 Section 1 Cloud Computing Lab

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)
13 views33 pages

MCSL-229 Section 1 Cloud Computing Lab

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/ 33

CLOUD AND

DATA SCIENCE
LAB

SECTION 1 CLOUD COMPUTING LAB


Structure Page Nos.
1.0 Introduction
1.1 Objectives
1.2 Introduction to Cloud Computing
1.3 General Guidelines
1.4 Illustrative Examples
1.5 Practical Sessions
1.6 Summary
1.7 Further Readings
1.8 Website References

1.0 INTRODUCTION
This is the lab course, wherein you will have the hands on experience in Cloud
Computing concepts. You have studied the course material (MCS-227 Cloud
Computing and IoT). A separate a list of lab-sessions to be performed
sessionwise are given with tentative solutions wherever possible. Please go
through the general guidelines and the program documentation guidelines
carefully.

1.1 OBJECTIVES
After going through this practical course, you will be able to:
 Understand and appreciate cloud architecture and cloud computing
models
 Demonstrate various service models such as Saas, IaaS and PaaS.
 Demonstrate key concepts of virtualization.
 Explore Storage as a Service for remote file access using web
interface.
 Understand security of web server and data directory.
 Understand the Service level agreements (SLAs)
 Understand security and privacy issues in cloud.

1.2 INTRODUCTION TO CLOUD COMPUTING

Cloud computing enables companies to consume compute resources as


a utility -- just like electricity -- rather than having to build and
maintain computing infrastructures in-house. Cloud computing
promises several attractive benefits for businesses and end users.

Three of the main benefits of cloud computing includes:


 Self-service provisioning: End users can spin up computing
resources for almost any type of workload on-demand.
 Elasticity: Companies can scale up as computing needs
increase and then scale down again as demands decreases.
14
 Pay per use: Computing resources are measured at a granular CLOUD COMPUTING
LAB
level, allowing users to pay only for the resources and
workloads they use.

Cloud computing services can be Private, Public or Hybrid.

Private cloud services are delivered from a business data center to


internal users. This model offers versatility and convenience, while
preserving management, control and security. Internal customers may
or may not be billed for services through IT chargeback.

In the Public cloud model, a third-party provider delivers the cloud


service over the Internet. Public cloud services are sold on-demand,
typically by the minute or the hour. Customers only pay for
the CPU cycles, storage or bandwidth they consume. Leading public
cloud providers include Amazon Web Services (AWS),
Microsoft Azure, IBM/SoftLayer and Google Cloud Platform.

Hybrid cloud is a combination of public cloud services and on-premises


private cloud – with orchestration and automation between the two.
Companies can run mission-critical workloads or sensitive applications
on the private cloud while using the public cloud for workloads that
must scale on-demand. The goal of hybrid cloud is to create a unified,
automated, scalable environment which takes advantage of all that a
public cloud infrastructure can provide, while still maintaining control
over mission-critical data.

Types of cloud computing

IT people talk about three different kinds of cloud computing, where


different services are being provided for you.

Infrastructure as a Service (IaaS)

Infrastructure as a service (IaaS) is a cloud computing offering in which


a vendor provides users access to computing resources such
as storage, networking, and servers. Organizations use their own
platforms and applications within a service provider’s infrastructure.

The key features of IaaS are:


 Instead of purchasing hardware outright, users pay for IaaS on
demand.
 Infrastructure is scalable depending on processing and storage
needs.
 Saves enterprises the costs of buying and maintaining their own
hardware.
 Because data is on the cloud, there can be no single point of failure.
 Enables the virtualization of administrative tasks, freeing up time
for other work.

15
CLOUD AND
DATA SCIENCE
LAB
Platform as a Service (PaaS)

Platform as a service (PaaS) is a cloud computing offering that provides


users with a cloud environment in which they can develop, manage, and
deliver applications. In addition to storage and other computing resources,
users are able to use a suite of prebuilt tools to develop, customize, and
test their own applications.

The key features of PaaS are:


 PaaS provides a platform with tools to test, develop, and host
applications in the same environment.
 Enables organizations to focus on development without having to
worry about underlying infrastructure.
 Providers manage security, operating systems, server software and
backups.
 Facilitates collaborative work even if teams work remotely.

Software as a Service (SaaS)

Software as a service (SaaS) is a cloud computing offering that provides


users with access to a vendor’s cloud-based software. Users do not install
applications on their local devices. Instead, the applications reside on a
remote cloud network accessed through the web or an API. Through the
application, users can store and analyze data and collaborate on projects.

The key features for SaaS are:


• SaaS vendors provide users with software and applications via a
subscription model.
• Users do not have to manage, install or upgrade software; SaaS
providers manage this.
• Data is secure in the cloud; equipment failure does not result in loss of
data.
• Use of resources can be scaled depending on service needs.
• Applications are accessible from almost any internet-connected device,
from virtually anywhere in the world.

In this lab course, we will study and implement all the key concepts of Cloud
Computing.

1.3 GENERAL GUIDELINES


Following are some of the general guidelines:

 Observation book and Lab record are compulsory.


 You should attempt all problems/assignments given in the list at Section 1.5
session wise.
 Use only Trail versions / Demo versions for the suggested websites and software
packages.
 For the tasks describe the procedure and also present screenshots wherever
applicable.
16
 You may seek assistance in doing the lab exercises from the concerned lab CLOUD COMPUTING
instructor. Since the assignments have credits, the lab instructor is obviously not LAB
expected to tell you how to solve these, but you may ask questions concerning the
concepts.

 Add comments wherever necessary.

 The program should be interactive, general and properly documented with real
Input/ Output data.

 If two or more submissions from different students appear to be of the same origin
(i.e. are variants of essentially the same program), none of them will be counted.
You are strongly advised not to copy somebody else's work.

 It is your responsibility to create a separate directory to store all the programs, so


that nobody else can read or copy.

 The list of the programs(list of programs given at the end, session-wise) is


available to you in this lab manual. For each session, you must come prepare with
the algorithms and the programs written in the Observation Book. You should
utilize the lab hours for executing the programs, testing for various desired outputs
and enhancements of the programs.

 As soon as you have finished a lab exercise, contact one of the lab instructor /
incharge in order to get the exercise evaluated and also get the signature from
him/her on the Observation book.

 Completed lab assignments should be submitted in the form of a Lab Record in


which you have to write the algorithm, program code along with comments and
output for various inputs given.

 The total no. of lab sessions (3 hours each) are 10 and the list of assignments is
provided session-wise. It is important to observe the deadline given for each
assignment.

Get started with the examples given in the next section for practice and try to solve all
the practical questions given in the practical sessions - sessionwise.

17
CLOUD AND
DATA SCIENCE
LAB

1.4 ILLUSTRATIVE EXAMPLES

Example 1: Study and implementation of Storage as a Service (IaaS)

Requirement: Google Account

Google Drive is a great tool for cloud storage that allows users to backup files
and easily share content and collaborate. Google Drive allows users to store up
to 15GB of files for free, which is fairly generous by industry standards.

How Google Drive Works?

To get started with Google Drive, the end user must create or sign in to a
Google account. Then, the user types “drive.google.com” into his or her
browser. “My Drive” as shown in the figure will automatically appear, which
can contain uploaded or synced files and folders, as well as Google Sheets,
Slides and Docs. Then, the user can either upload files from his or her
computer or create files in Google Drive. Alternatively, the end user can
download a Google Drive application to one or more devices. A Google Drive
folder will appear along with other folders in each device's file system. Files
that the user adds to one folder are available through a Google Drive web app
or the Google Drive folder on each device.

18
CLOUD COMPUTING
LAB

Example 2: Working with Goggle Docs, Sheets and Notes (SaaS)

Requirement: Google account, Internet Connection.

Google Docs is a free cloud-based suite of tools for creating


documents, spreadsheets, presentations, and more. This tutorial will
cover the Spreadsheets application in Google Docs, in addition to
showing you howto access and store your Docs from Google Drive.

Google Docs, Sheets, and Slides are productivity apps that let you create
different kinds of online documents,work on them in real time with other
people, and store them in your Google Drive online — all for free. You
can access the documents, spreadsheets, and presentations you create
from any computer, anywhere in the world. (There's even some work
you can do without an Internet connection!) This guide will give you a
quickoverview of the many things that you can do with Google Docs,
Sheets, and Slides.

Google Docs

Google Docs is an online word processor that lets you create and format
text documents and collaborate withother people in real time. Here's
what you can do with Google Docs:

 Upload a Word document and convert it to a Google document


 Add flair and formatting to your documents by adjusting margins,
spacing, fonts, and colors — all thatfun stuff
 Invite other people to collaborate on a document with you, giving
them edit, comment or view access
 Collaborate online in real time and chat with other collaborators
— right from inside the document
 View your document's revision history and roll back to any
previous version
 Download a Google document to your desktop as a Word,
OpenOffice, RTF, PDF, HTML or zip file
 Translate a document to a different language
 Email your documents to other people as attachments
19
CLOUD AND
DATA SCIENCE
LAB

Google Sheets

Google Sheets is an online spreadsheet app that lets you create and format
spreadsheets and simultaneouslywork with other people. Here's what
you can do with Google Sheets:

Import and convert Excel, .csv, .txt and .ods formatted data to a Google
spreadsheet
 Export Excel, .csv, .txt and .ods formatted data, as well as PDF
and HTML files
 Use formula editing to perform calculations on your data, and use
formatting make it look the wayyou'd like
 Chat in real time with others who are editing your spreadsheet
 Create charts with your data
 Embed a spreadsheet — or individual sheets of your spreadsheet
— on your blog or website

Google Slides

Google Slides is an online presentations app that allows you to show off
your work in a visual way. Here'swhat you can do with Google Slides:

 Create and edit presentations


 Edit a presentation with friends or coworkers, and share it with
others effortlessly
 Import .pptx and .pps files and convert them to Google
presentations
 Download your presentations as a PDF, a PPT, or a .txt file
 Insert images and videos into your presentation
 Publish and embed your presentations in a website

To create, name or delete a Google document

Create a Google document

To create a new document, go to your Drive, click the Create button,


and select Document.

A window with a new Google document will open, and you'll be able to
edit the document, share it with otherpeople, and collaborate on it in
real-time. Google Docs saves your document automatically, and you
can always access it from your Drive.

Name a document

When you create a new document, Google Docs will name it


Untitled by default.

To choose a name other than Untitled, click the File menu, and select
Rename. From here you can choose and confirm your document's title.
20 You can also edit the name by clicking the title displayed at the top of the
page, and making your changes in the dialog that appears. Titles can be CLOUD COMPUTING
LAB
up to 255 characters long.

Delete a document

 Delete an item that you own from your Drive


 From your Drive, select the item(s) you want to delete.
 From the More menu, choose Move to trash.
 If you're deleting a shared document that you own, you'll see an
option to change the ownership of thedocument.
 The item will be moved to the Trash.
 To purge individual items from Trash, select them and choose
Delete forever. To purge all your itemsclick Empty Trash in the
upper left.

Create and save a document

There are different ways of getting started using Google documents: you
can create a new online document,you can upload an existing one, or
you can use a template from our templates gallery.

To create a new document, go to your Drive, click the red Create button,
and select Document from thedrop-down menu.

As soon as you name the document or start typing, Google Docs will
automatically save your work every fewseconds. At the top of the
document, you'll see text that indicates when your document was last
saved. You can access your document at any time by opening your
Drive at http://drive.google.com.

To save a copy of a document to your computer, you can download it. In


your document, go to the File menuand point your mouse to the
Download as option. Select one of the following file types: HTML
(zipped), RTF, Word, Open Office, PDF, and plain text. Your document
will download to your computer.

Upload a document

You can upload existing documents to Google documents at any time.


When you're uploading, you can either keep your document in its
original file type or convert it to Google Docs format. Converting your
document toGoogle Docs format allows you to edit and collaborate
online from any computer.

Note: When uploaded, images within a document are left as images


(rather than being converted to text byOptical Character Recognition
technology).

You can upload the following file types: .html, .txt, .odt, .rtf, .doc
and .docx,.pdf

Follow these steps to upload a document:


21
CLOUD AND
DATA SCIENCE
LAB
 Click the Upload icon in the top left of your Documents List.
 Click Files..., and select the document you'd like to upload.
 Click Open.
 Check the box next to 'Convert documents, presentations,
spreadsheets, and drawings to the corresponding Google Docs
format' if you'd like to be able to edit and collaborate on the
document online. Uploaded document files that are converted to
Google documents format can't be larger than 1MB.
 Click Start upload. The uploaded file will appear in your
Documents List.

Example 3: Installation and Configuring JustCloud.

Requirement: Justcloud exe File

Professional Cloud Storage from JustCloud is Simple, Fast and Secure.


JustCloud will automatically backup the documents, photos, music and videos
stored on your computer, to the cloud so you are never without files again.

Installation :

Vist the website justcloud.com as shown below by giving the URL


www.justcloud.com

1. Download Software this link http://www.justcloud.com/download/

22
CLOUD COMPUTING
LAB

2. By following these steps you will download and install the JustCloud
software application on this computer.
3. This software will automatically start backing up files from your
computer and saving them securely in an online cloud user account.
4. Your free account gives you 15MB storage space or 50 files for 14
days. Once installed a sync folder will be added to your desktop for
you to easily drag and drop files you wish to backup.

Example 4: Working in Cloud9 to demonstrate to work with


programming languages like C, PHP, Ruby, Phython, Javascript etc..

Requirement: Login account in Cloud9 (https://aws.amazon.com/cloud9/)

Cloud9 is an online platform for development that makes developing


applications more convenient than ever. Cloud9 combines a powerful online
code editor with a full Ubuntu workspace in the cloud. It supports more than
40 languages, with class A support for PHP, Ruby, Python, JavaScript, Go, and
more.

Cloud9 workspaces are powered by Docker Ubuntu containers that give you
full freedom over your environment, including sudo rights. Simply pick your
configuration and develop your app. No need to spend valuable development
time on system setup and maintenance - you can create, build and run any
development stack in seconds.

Code with Just a Browser

AWS Cloud9 gives you the flexibility to run your development environment
on a managed Amazon EC2 instance or any existing Linux server that supports
SSH. This means that you can write, run, and debug applications with just a
browser, without needing to install or maintain a local IDE. The Cloud9 code
editor and integrated debugger include helpful, time-saving features such as
code hinting, code completion, and step-through debugging. The Cloud9
terminal provides a browser-based shell experience enabling you to install
additional software, do a git push, or enter commands.

Code Together in Real Time 23


CLOUD AND
DATA SCIENCE
LAB

AWS Cloud9 makes collaborating on code easy. You can share your
development environment with your team in just a few clicks and pair program
together. While collaborating, your team members can see each other type in
real time, and instantly chat with one another from within the IDE.

Build Serverless Applications with Ease

AWS Cloud9 makes it easy to write, run, and debug serverless applications. It
pre-configures the development environment with all the SDKs, libraries, and
plug-ins needed for serverless development. Cloud9 also provides an
environment for locally testing and debugging AWS Lambda functions. This
allows you to iterate on your code directly, saving you time and improving the
quality of your code.

Direct Terminal Access to AWS

AWS Cloud9 comes with a terminal that includes sudo privileges to the
managed Amazon EC2 instance that is hosting your development environment
and a pre-authenticated AWS Command Line Interface. This makes it easy for
you to quickly run commands and directly access AWS services.

Start New Projects Quickly

AWS Cloud9 makes it easy for you to start new projects. Cloud9’s
development environment comes prepackaged with tooling for over 40
programming languages, including Node.js, JavaScript, Python, PHP, Ruby,
Go, and C++. This enables you to start writing code for popular application
stacks within minutes by eliminating the need to install or configure files,
SDKs, and plug-ins for your development machine. Because Cloud9 is cloud-
based, you can easily maintain multiple development environments to isolate
your project’s resources.

Use the URL https://aws.amazon.com/cloud9/

Goto Free Tier (https://aws.amazon.com/free/?all-free-tier.sort-


by=item.additionalFields.SortRank&all-free-tier.sort-
order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categor
ies=*all ) and create a new free account.

24
CLOUD COMPUTING
LAB

Read the details by scrolling down the page as shown below:

Log in to your account, start a new project to write a C++ program “hello.cpp”,
then compile and run the program.

Example 5: Working with Microsoft Azure.

Requirement: Account on Microsoft Azure

In this example we are going to explore the free Microsoft Azure cloud
services for practice purpose.

Log in to the Azure portal using the below link. You can see the screen look
similar to below
https://azure.microsoft.com/en-in/free/

25
CLOUD AND
DATA SCIENCE
LAB

Try to use the options like (i) create cross platform mobile experiences (ii)
Drive Innovation for existing and future Apps and (iii) Build scalable web-sites
and web-workloads as shown below:

In addition to the services discussed, you may explore other services listed
below:

26
CLOUD COMPUTING
LAB

Example 6: Working with Manjrasoft Aneka Software

Requirement: ECMA Runtime Environment, Database

Aneka is a Cloud Application Development Platform (CAP) for


developing and running compute and data intensive applications. As a
platform it provides users with both a runtime environment for
executing applications developed using any of the three supported
programming models, and a set of APIs and tools that allow you to
build new applications or run existing legacy code. The purpose of
this document is to help you through the process of installing and
setting up an Aneka Cloud environment. This document will cover
everything from helping you to understand your existing infrastructure,
different deployment options, installing the Management Studio,
configuring Aneka Daemons and Containers, and finally running some of
the samples to test your environment.

An Aneka Cloud is composed of a collection of services deployed on top


of an infrastructure. This infrastructure can include both physical and
virtual machines located in your local area network or Data Centre.
Aneka services are hosted on Aneka Containers which are managed by
Aneka Daemons. An Aneka Daemon is a background service that runs
on a machine and helps you to install, start, stop, update and reconfigure
Containers. A key component of the Aneka platform is the Aneka
Management Studio, a portal for managing your infrastructure and
clouds. Administrators use the Aneka Management Studio to define their
infrastructure, deploy Aneka Daemons, and install and configure Aneka
Containers. The figure below shows a high-level representation of an
Aneka Cloud, composed of a Master Container that is responsible for
scheduling jobs to Workers, and a group of Worker Containers that
execute the jobs. Each machine is typically configured with a single
instance of the Aneka Daemon and a single instance of the Aneka
Container.

27
CLOUD AND
DATA SCIENCE
LAB
Installation

This section assumes that you have a copy of the Aneka distribution with
you. If you do not have a copy already, you can download the latest version
from Manjrasoft’s Website
(http://www.manjrasoft.com/manjrasoft_downloads.html). Latest release is
Aneka 5.0 version.

Installing Aneka Cloud Management Studio

Aneka installation begins with installing Aneka Cloud Management


Studio. The Cloud Management Studio is your portal for creating,
configuring and managing Aneka Clouds. Installing Aneka using the
distributed Microsoft Installer Package (MSI) is a quick process
involving three steps as described below:

Run the installer package to start the Setup Wizard.

Aneka User Documents are available for Model Programming Tutorial, Thread
Programming Tutorial, Map Reduce Programming Tutorial, Aneka Task
Scheduling Web Service, Aneka Dynamic Provisioning, Using the Design
Explorer and also some programming models and example code are available
as shown below:

28
CLOUD COMPUTING
LAB

By going through the tutorials, learners may practice using the Cloud
Computing with Aneka.

Example 7: Installation and performing virtualization using KVM.

Requirements: Ubuntu operating system, open source software KVM,


Internet.

Virtualization is software that separates physical infrastructures to create


various dedicated resources. It is the fundamental technology that powers
cloud computing. The technology behind virtualization is known as a virtual
machine monitor (VMM) or virtual manager, which separates compute
environments from the actual physical infrastructure. Virtualization makes
servers, workstations, storage and other systems independent of the physical
hardware layer. This is done by installing a Hypervisor on top of the hardware
layer, where the systems are then installed.

There are three areas of IT where virtualization is making headroads, network


virtualization, storage virtualization and server virtualization:

 Network virtualization is a method of combining the available


resources in a network by splitting up the available bandwidth into
channels, each of which is independent from the others, and each of
which can be assigned (or reassigned) to a particular server or device in
real time. The idea is that virtualization disguises the true complexity of
the network by separating it into manageable parts, much like your
partitioned hard drive makes it easier to manage your files.
 Storage virtualization is the pooling of physical storage from multiple
network storage devices into what appears to be a single storage device
that is managed from a central console. Storage virtualization is
commonly used in storage area networks (SANs).
 Server virtualization is the masking of server resources (including the
number and identity of individual physical servers, processors, and
operating systems) from server users.

29
CLOUD AND
DATA SCIENCE
LAB
The intention is to spare the user from having to understand and manage
complicated details of server resources while increasing resource sharing and
utilization and maintaining the capacity to expand later.

Virtualization can be viewed as part of an overall trend in enterprise IT that


includes autonomic computing, a scenario in which the IT environment will be
able to manage itself based on perceived activity, and utility computing, in
which computer processing power is seen as a utility that clients can pay for
only as needed. The usual goal of virtualization is to centralize administrative
tasks while improving scalability and workloads.

Kernel-based Virtual Machine (KVM) is an open


source virtualization technology built into Linux®. Specifically, KVM lets you
turn Linux into a hypervisor that allows a host machine to run multiple,
isolated virtual environments called guests or virtual machines (VMs).
KVM is part of Linux. If you’ve got Linux 2.6.20 or newer, you’ve got KVM.
KVM was first announced in 2006 and merged into the mainline Linux kernel
version a year later. Because KVM is part of existing Linux code, it
immediately benefits from every new Linux feature, fix, and advancement
without additional engineering.

How does KVM work?

KVM converts Linux into a type-1 (bare-metal) hypervisor. All hypervisors


need some operating system-level components—such as a memory manager,
process scheduler, input/output (I/O) stack, device drivers, security manager, a
network stack, and more—to run VMs. KVM has all these components
because it’s part of the Linux kernel. Every VM is implemented as a regular
Linux process, scheduled by the standard Linux scheduler, with dedicated
virtual hardware like a network card, graphics adapter, CPU(s), memory, and
disks.

Procedure:

Installation Steps :
1. #sudo grep -c "svm\|vmx" /proc/cpuinfo
2. #sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
3. #sudoadduserrait
#sudoadduserraitlibvirtd
After running this command, log out and log back in as rait
4. Run following command after logging back in as rait and you should
see an empty list of virtual machines. This indicates that everything is
working correctly.
#virsh -c qemu:///system list
5. Open Virtual Machine Manager application and Create Virtual
Machine
#virt-manager

Result

Step 1 : #sudo grep -c "svm\|vmx" /proc/cpuinfo

30
CLOUD COMPUTING
LAB

Step 2 : #sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager

Step 3 : #sudoadduserrait
After running this command, log out and log back in as rait

Step 4 : #sudoadduserraitlibvirtd
After running this command, log out and log back in as rait

31
CLOUD AND
DATA SCIENCE
LAB

Step 5 : Open Virtual Machine Manager application and Create Virtual


Machine
#virt-manager as shown below

Step 6 : Create a new virtual machine as shown below:

32
CLOUD COMPUTING
LAB

Step 7 : Install Windows operating system on virtual machine

Step 8: Installation of windows on virtual machine

Step 9: Installation of windows 7 on virtual machine

33
CLOUD AND
DATA SCIENCE
LAB

Step 10: Initialization of windows on virtual machine

Installation and configuration of KVM have been done successfully onto


Ubuntu and users added. Like this we can create as many virtual machines as
possible on OS and can install any windows onto it.

Example 8: Study and implement Identity Management in ownCloud

Requirement: ownCloud account (trail account on https://owncloud.com/ )

Identity Management

OwnCloud is open source file sync and share software for everyone from
individuals operating the free ownCloud Server edition, to large enterprises
and service providers operating the ownCloud Enterprise Subscription.
ownCloud provides a safe, secure, and compliant file synchronization and
sharing solution on servers that you control. You can share one or more files
and folders on your computer, and synchronize them with your ownCloud
server.

34
CLOUD COMPUTING
LAB

Step 2 : By default, the ownCloud Web interface opens to your Files page. You
can add, remove, and share files, and make changes based on the access
privileges set by you (if you are administering the server) or by your server
administrator. You can access your ownCloud files with the ownCloud web
interface and create, preview, edit, delete, share, and re-share files. Your
ownCloud administrator has the option to disable these features, so if any of
them are missing on your system ask your server administrator.

Step 3: Apps Selection Menu: Located in the upper left corner, click the
arrow to open a dropdown menu to navigate to your various available apps.
Apps Information field: Located in the left sidebar, this provides filters and
tasks associated with your selected app.
Application View: The main central field in the ownCloud user interface. This
field displays the contents or user features of your selected app.

35
CLOUD AND
DATA SCIENCE
LAB

Step 4: Share the file or folder with a group or other users, and create public
shares with hyperlinks. You can also see who you have shared with already,
and revoke shares by clicking the trash can icon. If username auto-completion
is enabled, when you start typing the user or group name ownCloud will
automatically complete it for you. If your administrator has enabled email
notifications, you can send an email notification of the new share from the
sharing screen.

36
CLOUD COMPUTING
LAB

Step 5: Five Share permissions are :


 Can share; allows the users you share with to re-share.
 Can edit; allows the users you share with to edit your shared files, and
to collaborate using the Documents app.
 Create; allows the users you share with to create new files and add
them to the share.
 Change; allows uploading a new version of a shared file and replacing
it.
 Delete; allows the users you share with to delete shared files.

We have studied how to use ownCloud for ensuring identity management of


the users. We can create multiple groups and provide privileges to view or
modify data as per defined permissions. It also enables simplified look and feel
to be used by anyone.

Example 9: To study and explore Cloud Security Management in AWS

Cloud computing security is the set of control-based technologies and policies


designed to adhere to regulatory compliance rules and protect information, data 37
CLOUD AND
DATA SCIENCE
LAB
applications and infrastructure associated with cloud computing use. Because
of the cloud's very nature as a shared resource, identity management, privacy
and access control are of particular concern. With more organizations using
cloud computing and associated cloud providers for data operations, proper
security in these and other potentially vulnerable areas have become a priority
for organizations contracting with a cloud computing provider.

Cloud computing security processes should address the security controls the
cloud provider will incorporate to maintain the customer's data security,
privacy and compliance with necessary regulations. The processes will also
likely include a business continuity and databackup plan in the case of a cloud
security breach.

Procedure:

Security using MFA(Multi Factor Authentication) device code:


1) goto aws.amazon.com
2) click on "My Account"
3) select "AWS management console" and click on it
4) Give Email id in the required field
if you are registering first time then select "I am a new user" radio button
5) click on "sign in using our secure server" button
6) follow the instruction and complete the formalities
(Note: do not provide any credit card details or bank details)
sign out from
7) Again go to "My Account"

select "AWS management console" and click on it


Sign in again by entering the user name and valid password ( check "I am
returning user and my password is" radio button)
Now you are logged in as a Root User

All AWS project can be viewed by you, but you cant make any changes in it or
you cant create new thing as you are not paying any charges to amazon (for
reason refer step:6)

To create the user in a root user follow the steps mentioned below:

1) click on "Identity and Access Management" in security and identity project


2) click in "Users" from dashboard
It will take you to "Create New Users"
click on create new user button
enter the "User Name"
(select "Generate and access key for each user" checkbox, it will create a user
with a specific key)
click on "Create" button at right bottom
3) once the user is created click on it
4) go to security credentials tab
5) click on "Create Access Key", it will create an access key for user.
6) click on "Manage MFA device" it will give you one QR code displayed on
the screen

38
you need to scan that QR code on your mobile phone using barcode scanner CLOUD COMPUTING
LAB
(install it in mobile phone)you also need to install "Google Authenticator" in
your mobile phone to generate the MFA code
7) Google authenticator will keep on generating a new MFA code after every
60 seconds
that code you will have to enter while logging as a user.

Hence, the security is maintained by MFA device code...


One can not use your AWS account even if it may have your user name and
password, because MFA code is on your MFA device (mobiel phone in this
case) and it is getting changed after every 60 seconds.

Permissions in user account:


After creating the user by following above mentioned steps; you can give
certain permissions to specific user
1) click on created user
2) goto "Permissions" tab
3) click on "Attach Policy" button
4) select the needed policy from given list and click on apply.

Result:
Step 1 :goto aws.amazon.com

Step 2 : Click on "My Account". Select "AWS management console" and click
on it. Give Email id in the required field

Step 3: Addition of security features

Step 4: Sign in to an AWS account

39
CLOUD AND
DATA SCIENCE
LAB

Step 5 : Creation of users

40
CLOUD COMPUTING
LAB

Step 6: Adding users to group

Step 7: Creating Access key

41
CLOUD AND
DATA SCIENCE
LAB

Step 8 : Setting permissions to users

42
CLOUD COMPUTING
LAB

We have studied how to secure the cloud and its data. Amazon EWS provides
the best security with its extended facilities and services like MFA device. It
also gives you the ability to add your own permissions and policies for
securing data more encrypted.

1.5 PRACTICAL SESSIONS

Sessionwise practical problems for 10 sessions are given below:

Session – 1

1. Create a word document of your couselling schedule of the study centre and
store locally and on Google Drive with doc and pdf formats. Share it with your
peer and faculty in View mode.

2. Create Google Sheet which contains employee salary information and


calculate Gross salary and Net salary using,
DA=10%OF BASIC,HRA=30%OF BASIC,
PF= 10% OF BASIC IF BASIC<=3000
12% OF BASIC IF BASIC>3000
TAX=10% OF BASIC IF BASIC<=1500
11% OF BASIC IF BASIC>1500 AND BASIC<=2500
12% OF BASIC IF BASIC>2500
NET_SALARY=BASIC_SALARY+DA+HRA-PF-TAX

Session – 2

3. Using Google Slides, prepare a Presentation consisting of atleast 20 slides


on Cloud Computing covering introduction, models, services, architecture,
applications and security aspects.

43
CLOUD AND
DATA SCIENCE
LAB
4. Using Google Docs, create your Resume in a neat format using Google and
Zoho cloud.

Session – 3

5. Explore box(https://www.box.com/home), Sync(https://www.sync.com/ ),


JustCloud, Amazon Drive and NordLocker file storage and sharing solutions.
Use only their trail versions.

6. Work with Youtube, a cloud service to upload your own educational


video(s) and use appropriate settings to make it public.

7. Work with SlideShare (http://www.slideshare.net/ ) which is a cloud service


for slide sharing owned and controlled by LinkedIn.

Session - 4

8. Virtualization: Install Oracle Virtual box and create two VMs on your
laptop.

9. Install a C++ compiler in the virtual machine and execute a sample program.

Session - 5

10. Study and implementation of Single-Sign-On(SSO), OpenID.

JOSSO is an open source Identity and Access Management (IAM) platform for
rapid and standards-based Cloud-scale Single Sign-On, web services security,
strong authentication and provisioning. Install and use JOSSO (josso.org). The
easiest way to try it out is by using our pre-built Vagrant-based “JOSSO
Playground” which hosts everything you need to roll out a fully functional
environment, along with all the required pieces. Refer to:
http://www.josso.org/getting-started.html

11. Install and use identity management feature of OpenStack


(https://www.openstack.org/) .

Session – 6

12. Establish an Google Cloud Platform(https://cloud.google.com) account


(use trail version). Explore the following:
(i) IAM & Admin
(ii) Billing
(iii) Marketplace (Creating Virtual Machines)
(iv) Compute Engine
(v) Cloud Storage
(vi) SQL
(vii) Security

Session – 7

44 13. Use Google App Engine to


(a) Write a Google app engine program to generate n even numbers and CLOUD COMPUTING
LAB
deploy it to Google cloud.
(b) Write a Google app engine program to multiply two matrices.
(c) Google app engine program to validate user; create a database
login(username, password)in mysql and deploy to cloud.
(d) Write a Google app engine program to display nth largest no from the
given list of numbers and deploy it in Google cloud

Session - 8

14. Establish an AWS account(use trail version). Use the AWS Management
Console to launch an Elastic Compute Cloud (EC2) instance and connect to it.

15.Explore CloudSim. Simulate a cloud scenario using CloudSim and run a


scheduling algorithm that is not present in CloudSim.

Session – 9

16. User Management in Cloud.


Install, create, manage users’ accounts and use Administrative features of
ownCloud

Session -10

Explore Service Level Agreements (SLA’s) of popular Cloud Service


Platforms:

Below are links to cloud SLAs from the major public cloud platforms. Many
individual cloud services require separate SLAs, each of these vendors lists
dozens of such SLAs. Study and understand them.
 AWS (https://aws.amazon.com/legal/service-level-agreements/?aws-
sla-cards.sort-by=item.additionalFields.serviceNameLower&aws-sla-
cards.sort-order=asc&awsf.tech-category-filter=*all)
 Microsoft Azure Services (https://azure.microsoft.com/en-
us/support/legal/sla/summary/)
 Google Cloud Platform SLA’s (https://cloud.google.com/terms/sla)

1.6 SUMMARY

This lab course covered the important aspects of Cloud Computing with illustrative
examples. Also, sessionwise problems list is provided to the learner for solving.

1.7 FURTHER READINGS

1. Mastering Cloud Computing, Buyya, Vecchiola, Selvi, McGraw Hill


Education(India) Pvt Ltd, 2013.
2. Enterprise Cloud Computing, Gautam Shroff, Cambridge, 2010.

45
CLOUD AND
DATA SCIENCE
LAB
3. Cloud Security by Ronald Krutz and Russell Dean Vines, Wiley - India,
2010.
4. Getting Started with OwnCloud by Aditya Patawar , Packt Publishing Ltd,
2013.
5. Cloud Computing, A Practical Approach, Toby Velte, Anthony Velte,
Robert Elsenpeter, Mc Graw Hill, 2017.
6. Cloud Computing A Practitioners Guide, Doss, Mc Graw Hill, 2013.

1.8 WEBSITE REFERENCES

1. www.justcloud.com
2. https://www.zoho.com/
3. https://aws.amazon.com/cloud9/
4. https://azure.microsoft.com/en-in/free/
5. http://www.manjrasoft.com/manjrasoft_downloads.html
6. https://owncloud.com/
7. https://aws.amazon.com/security/
8. https://www.box.com/home
9. https://www.sync.com/
10. http://www.slideshare.net/
11. http://www.josso.org/getting-started.html
12. https://www.openstack.org/
13. https://cloud.google.com/
14. https://azure.microsoft.com
15. https://code.google.com/archive/p/cloudsim/downloads
16. https://aws.amazon.com/legal/service-level-agreements/?aws-sla-
cards.sort-by=item.additionalFields.serviceNameLower&aws-sla-
cards.sort-order=asc&awsf.tech-category-filter=*all
17. https://azure.microsoft.com/en-us/support/legal/sla/summary/
18. https://cloud.google.com/terms/sla

46

You might also like