KEMBAR78
Cloud Computing Lab Report | PDF | Ip Address | Virtual Machine
0% found this document useful (0 votes)
24 views38 pages

Cloud Computing Lab Report

The document provides detailed lab instructions for various tasks related to cloud computing, including installing VMware, taking snapshots of virtual machines, using basic Linux commands, uploading files to Amazon S3, launching EC2 instances, and creating a Virtual Private Cloud (VPC). Each lab section outlines step-by-step procedures to accomplish specific objectives, such as configuring virtual machines and managing AWS resources. The document serves as a practical guide for students in a computer application course at Tribhuvan University.

Uploaded by

Supriya Shrestha
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)
24 views38 pages

Cloud Computing Lab Report

The document provides detailed lab instructions for various tasks related to cloud computing, including installing VMware, taking snapshots of virtual machines, using basic Linux commands, uploading files to Amazon S3, launching EC2 instances, and creating a Virtual Private Cloud (VPC). Each lab section outlines step-by-step procedures to accomplish specific objectives, such as configuring virtual machines and managing AWS resources. The document serves as a practical guide for students in a computer application course at Tribhuvan University.

Uploaded by

Supriya Shrestha
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/ 38

lOMoARcPSD|52034235

CLOUD COMPUTING LAB REPORT

Computer Application (Tribhuvan University)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)
lOMoARcPSD|52034235

Lab Number: 1 Date:


Title: Write down step by instruction to install Virtual Machine ware with different
flavors of Linux or windows OS.

Step 1: Visit the official site https://www.vmware.com/products/workstation-


pro/workstation-pro-evaluation.html , for VMware and download the required Vmware.

Step 2: Run the downloaded .exe file to install VMware on your system.

Step 3: On running the .exe file, a setup wizard box will appear. Click on “Next” button.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

3.1 Choose the location where you want to install the VMware and click on “Next” button.

3.2 Then, click on “Install” button.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

3.3 Wait for the installation to complete.

3.4 Finally, check the “Start VMware after installation” and click on “Finish” button.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

3.5 You will now see the welcome message.

Step 4: Visit the official site, https://ubuntu.com/download/desktop, to download the


Ubuntu .iso image file.

Step 5: Open the VMware application.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

5.1 Click in the “New” button. A “Create Virtual Machine” dialog box will appear on the
screen.
5.1.1 Provide a name for your machine.
5.1.2 Choose a location on your drive.
5.1.3 Choose the iso image downloaded in Step 4

5.1.4 Click on “Next” button.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 6: Another dialog box will appear where you can provide the password for the new OS.
After providing the password, click on the “Next” button.

Step 7: You must Specify Disk Capacity which have to be minimum 20 GB and you can
split the disk, then click on the “Next” button.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 8: Choose to “Customize Hardware” to customize the hardware or click on the


“Finish” button.

Step 9: Select the Installation type and click on the “Install now” button.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 10: Create your name, username and password for login.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Lab Number: 2 Date:


Title: Take Snapshot of each VM OS and restore it.

Step 1: Open your VMware Workstation.

Step 2: Click on “Power on” button to run your new OS on the virtual machine. Wait for
the OS to power up.

Step 3: Click on user login and enter the password.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 4: Right click on the virtual machine named “Ubuntu 64-bit” and choose “Take
snapshot” option.

4.1 Fill in the snapshot name and snapshot description and click on “Ok” button.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

4.2 Wait for the snapshot to finish.

Step 5: Now you can see the snapshot in the VMware Workstation Manager.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Lab Number: 3 Date:


Title: Basic Linux Commands.

i. cd
It is used to change directory with a specific path.

ii.
ii. cd..
It is used to navigate to the previous directory.

iii.ls
It is the command line tool used for listing directory contents.

iv. ls-all
It is used for formatted listing with hidden files.

v. mkdir
It is used for creating a new directory.

vi. touch
It is used to create or update file.

vii. chmod
It is used to change mode of file.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

viii. vi
It is used to edit file with simple text editor.

ix. rm
It is used to remove file.

x. rm -rf
It is used to remove txt folder.

xi. more file


Output the contents of the file.

xii. clear
It is used to clear the screen.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

xiii. mv
It is used to move file or rename file.

xiv. exit
Logout of Linux.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Lab Number: 6 Date: 2080/12/02


Title: Upload any file to amazon s3.

Step 1: Open the amazon console, http://console.aws.amazon.com/, Step

2: Click on “Services” tab on the top left corner of the console.

Step 3: You will now see different choices. Click on “s3 (scalable storage in the cloud)”
option.

Step 4: Click on “Create Bucket” button located on the right corner.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 5: You can now see the configuration form. Provide an appropriate bucket name,
choose aws region from the dropdown menu and then save the configuration details.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 6: On successfully creating the bucket, you can see the following message.

Step 7: Click on the bucket name. Here, the bucket name is “susanshrestha17”.

Step 8: You can now see the different tabs. Click on “Objects” tab.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 9: Click on “upload” button.

Step 10: You can now see the option to upload files or folders.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 11: Click on “Add Files” option to upload a file. Choose any file from your local
machine and click on upload button.
Step 12: You will now be redirected to a success page.

Step 13: Click on the “Object URL” provided in the “Properties” tab. You can now see
your uploaded file.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Lab Number: 7 Date: 2080/12/02


Title: Amazon Instance EC2.

Task 1: Launching an EC2 Instance

1. In the AWS Management Console on the Services menu, enter EC2. From the search

results, choose EC2.

2. In the left navigation pane, choose EC2 Dashboard to ensure that you are on the

dashboard page.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

3. In the Launch instance section, choose the Launch instance dropdown list, and then

choose Launch instance.

Step 1: Naming the EC2 instance

4. Using tags, we can categorize your AWS resources in different. This categorization

is useful when you have many resources of the same type. We can quickly identify a

specific resource based on the tags that you have assigned to it. Each tag consists of a

key and a value, both of which you define.

5. When we name your instance, AWS creates a key-value pair. The key for this pair is

Name, and the value is the name that you enter for your EC2 instance.

6. In the Name and tags pane, in the Name text box, enter your name.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

7. Choose the Add additional tags link.

8. From the Resource types dropdown list, select Instances and Volumes.

Step 2: Choosing an AMI

9. An Amazon Machine Image (AMI) provides the information required to launch an

instance, which is a virtual server in the cloud. An AMI includes the following:

10. A template for the root volume for the instance.

11. Launch permissions that control which AWS accounts can use the AMI to launch

instances

12. A block device mapping that specifies the volumes to attach to the instance when it

is launched

13. The Quick Start list contains the most commonly used AMIs.

14. Locate the Application and OS Images (Amazon Machine Image) section. It is

just below the Name and tags section.

15. In the search box, enter Windows Server 2022 Base and press Enter.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

16. Next to Microsoft Windows Server 2022 Base, choose Select.

17. Choose Confirm Changes.

Step 3: Choosing an instance type

18. In the Instance type section, keep the default instance type, t2.micro.

Step 4: Configuring a key pair

19. In the Key pair (login) section, from the Key pair name – generate your name key(susan-key).

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Step 5: Configuring the network settings

20. We use this pane to configure networking settings.

21. The virtual private cloud (VPC) indicates which VPC we want to launch the

Instance into. We can have multiple VPCs, including different ones for development, testing,

and production.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

22. In the Network settings section, choose Edit.

23. From the VPC - required dropdown list, choose your name VPC(susanshrestha).

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

24. For Security group name - required, enter susan-sg and make changes in security group rules.

25. Enter launch instance and you will see success message.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

26.Select your name instance and click on connect to instance.

27.Here, in SSH client connection provide AMI username.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

28.Open your public address and perform operation .

a. Make your html file

b. Write html code inside that file

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

29.Then you will see the details of html.txt file.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Lab Number: 8 Date: 2080/12/02


Title: Creating a Virtual Private Cloud (VPC)

Task 1: Explore the default VPC configuration

A VPC is a virtual network that is dedicated to your AWS account. It is logically isolated
from other virtual networks in the AWS Cloud. We can launch AWS resources, such as
Amazon Elastic Compute Cloud (Amazon EC2) instances, into the VPC.

1. In the AWS Management Console on the Services menu, enter VPC. From the search
results, choose VPC.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

2. In the left navigation pane, choose Your VPCs.

3. There is a default VPC that is provided so that, we can launch resources as soon as we
start using AWS.
4. Notice that the default VPC is configured with the CIDR range of 172.31.0.0/16.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

Task 2: Explore a default Subnet

6. In the left navigation pane, choose Subnets.

7. Notice that all of the default subnets are associated with the same VPC, the default
VPC. Also notice that each subnet has an IPv4 CIDR range. Each subnet CIDR range
is a distinct subset of the addresses available in the VPC. When designing your
subnets, you must ensure that the CIDR ranges do not overlap with address ranges
used in other subnets.

8. From the list of subnets, choose the subnet with the IPv4 CIDR range
172.31.16.0/20.

9. The VPC has a CIDR block of 172.31.0.0/16, which includes all 172.31.x.x IP
addresses. This subnet has a CIDR block of 172.31.16.0/20, which includes
addresses 172.31.0.0 through 172.31.15.255. These CIDR ranges might look similar,
but the subnet is smaller than the VPC because of the /20 in the CIDR range. This
subnet uses the first 4,096 addresses available in the VPC. The console shows that
only 4,091 addresses are available to use. This is because AWS always reserves five
addresses in each subnet for IP networking purposes.

10. The value for Auto-assign public IPv4 address is Yes, which means that it is turned
on.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

11. This means that the subnet automatically assigns a public IP address for all instances

that are launched into it.

Task 3: Deploy an EC2 instance


12. On the Services menu, choose EC2.

13. Choose Launch instance, and then choose Launch instance from the dropdown list.

Configure the following options:

a. In the Name and tags pane, in the Name text box, enter WebServer.

b. Choose an Amazon Machine Image (AMI).

i. In the Application and OS Images (Amazon Machine Image)

section, choose Amazon Linux.

ii. From the list of Amazon Machine Images, select Amazon Linux 2

AMI.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

14. Instance Type


a. Choose an instance type:
i. Select t2.micro.
b. In the Key pair (login) section, from the Key pair name - required
dropdown list, choose Proceed without a key pair (Not recommended).

c. In the Network settings section, choose Edit.


d. For Firewall (security groups), choose Select an existing security
group.
e. In the Common security groups dropdown list, choose the security
group named Web-Server-SG.
f. In the Advanced Details section, for IAM instance profile, choose
WorkRole.
g. In the Advanced Details section, copy the following commands, and
paste them into the User data text box:
h. In the Summary section, choose Launch instance.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

15. A message indicates that you successfully initiated the launch of your instance.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)


lOMoARcPSD|52034235

16. Choose View all instances.


17. Wait for the application server to fully launch. It should display the following status:

Instance State: Running

18. Select Web-Server.


19. From the Details tab, copy the Public IPv4 address.
20. Open a new browser tab, paste the IP address that you just copied, and then press
Enter.

Downloaded by Supriya Shrestha (shresthasupriya768@gmail.com)

You might also like