You are on page 1of 34

Principles of Cloud Computing

Cycle Sheet-1

Name-Apoorv Reg.No-
20BCT0334

1. Creation of Virtual machine using VMware or VirtualBox


with Testing OS Level Commands and running Gcc Compiler
for sample “C” Program.
Solution:
1. Installing and setting up Linux on Oracle VMWare.

1.1 VMWare Setup after downloading setup from


www.virtualbox.org.

1.2 Installing Ubuntu on VMWare

Using Ubuntu 20.04 downloaded from www.virtualbox.org, using ISO


file.

2. Installing GCC and Gedit using Bash commands.

Using “sudo-get install manpages-dev” to install gcc, g++ and make in


terminal.
3. Running basic bash commands.

3.1 pwd : It gives us the absolute path, which means the path that
starts from the root.
3.2 ls : "ls" command is used to know about files in a directory.

3.3 mkdir : Used to create a folder or a directory.


3.4 rm : Used to delete files and directories.

3.5 touch : Used to create a file.


3.6 cp : Used to copy files through command line.

3.7 mv : Used to move files through the command line.


3.8 echo : Used to help move data into a file, or display text.

3.9 sudo : Stands for SuperUser Do, used to grant any command with
administrative or root privileges.
3.10 df : Used to display disk space available in partitions in the
system.

4. Running a C program using shell scripting.

C Code for identifying consonants and vowels.


Output :
2. Launching of Ec2 instance for Running Web Server with a
sample index.html and also for a sample web site
(downloaded from any free web template website) using
Amazon S3 server less service.
Solution:
1. Creating EC2 Instances with AWS

1.1 Launching a new EC2 instance using AWS

1.2 Configuring instance properties


1.3 Making new key for instance
1.4 Running newly created instance
1.5 Connecting to the new instance

2. Running OS Commands on EC2 instance


3. Running C Program on EC2 instance
3. Create a Load balancer using AWS and Test its running
with sample set of web servers. [Note – The Website to be
launched in these two webserver should be distinct among
the students and use s3 bucket to upload/download the
sample web zip file].
Solution:
1. Making 2 EC2 instances

1.1 Launching instance WebServer1 with Key pair

1.2 Configuring instance


2. Configuring web servers on both servers

2.1 Updating and installing packages yum install gcc

yum install httpd


a. Editing html file
b. Running server website

Similarly 3 more EC2 Web servers are created.


3. Configuring load balancers

3.1 Making 2 target groups


a. Configuring target groups with load balancers
4. Develop an application elastic load balancer for two

different web applications.


1. Application Load Balancer with Two Target Group

(i) Creating order instance


(ii) Creating payment instance
3. (iii) Creating orders target group
4. (iv) Registering order instance to target group
5. (v) Creating another target group with name “Payments” with
path: /payment/index.html

(vi) Registering payment instance to this target group


(vii) Creating an application load balancer
(viii) Adding the existing target group to the ALB

(ix) Adding If-then rule


5. Implement the Concept of Virtual Machine Migration

from one Amazon Region into another region. 1. VM


Migration across different region
1. (i) Create an EC2 instance with your RegNo in Mumbai region
2. (ii) Launch a simple web site onto that instance
3. (iii) Create a snapshot of the image and AMI

Going to instance storage section and then clicking Volume ID

Creating snapshot
Creating image from snapshot
(iv) Migrate (Copy AMI) to Paris Region Copying AMI

(v) Launching new instance from copied AMI


Q-6

CREATE AN EC2 INSTANCE:


EC2 instance is created

Screenshot with time frame


Running commands in cloud terminal:

CREATE SSH CONNECTION:


CONSOLE COMMANDS:

You might also like