MCSL-229 Section 1 Cloud Computing Lab
MCSL-229 Section 1 Cloud Computing Lab
DATA SCIENCE
LAB
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.
15
CLOUD AND
DATA SCIENCE
LAB
Platform as a Service (PaaS)
In this lab course, we will study and implement all the key concepts of Cloud
Computing.
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.
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.
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
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.
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
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:
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:
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
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
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.
Upload a document
You can upload the following file types: .html, .txt, .odt, .rtf, .doc
and .docx,.pdf
Installation :
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.
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.
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.
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.
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.
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.
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.
24
CLOUD COMPUTING
LAB
Log in to your account, start a new project to write a C++ program “hello.cpp”,
then compile and run the program.
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
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.
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.
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.
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
30
CLOUD COMPUTING
LAB
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
32
CLOUD COMPUTING
LAB
33
CLOUD AND
DATA SCIENCE
LAB
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
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:
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:
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.
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
39
CLOUD AND
DATA SCIENCE
LAB
40
CLOUD COMPUTING
LAB
41
CLOUD AND
DATA SCIENCE
LAB
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.
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.
Session – 2
43
CLOUD AND
DATA SCIENCE
LAB
4. Using Google Docs, create your Resume in a neat format using Google and
Zoho cloud.
Session – 3
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
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
Session – 6
Session – 7
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.
Session – 9
Session -10
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.
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. 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