PRACTICAL FILE
CLOUD COMPUTING
SESSION: 2023-2024
B. TECH-CSE-B
SEMESTER-4th
SUBMITTED TO: SUBMITTED BY:
PROF. HIMANSHU JINDAL ANANYA VERMA
ASET, AMITY UNIVERSITY BTECH CSE –4th SEM
MOHALI A25305222117
Roll Number – A25305222117
[Link]. Experiment
1. Install VirtualBox/VMware Workstation on different
OS.
2. Installing different operating systems in VMware.
3. Launching an ec2 instance on Amazon Web
Services platform.
4. Launching a Linux ec2 instance on Ama-
zon Web Services platform.
5. Configuring windows ec2 instance server set-
tings and making IIS server.
6. Creating tables and indices in DynamoDB in aws.
7. Creating an elastic load balancer for two ec2
instances (Windows IIS servers).
1
Roll Number – A25305222117
Practical 1 – Installation of VMware Workstation
1. Download [Link] from
[Link]
2. Install the downloaded file onto your system.
3. You will get the following screen once you double-click on the installer file:
4. Press next, then you will get the following screen where you need to agree to the
terms and conditions and then click on next.
2
Roll Number – A25305222117
5. You will then move to this screen, press next again.
6. Choose the installation destination and then press next to move forward with the
installation.
3
Roll Number – A25305222117
7. Choose the user experience settings as per your own preferences and then press next.
8. Select the shortcuts you wish to place on the system and click on next.
4
Roll Number – A25305222117
9. Click on install to finally install the VMware Workstation Pro on your system.
10. Now allow some time for the installation to happen.
5
Roll Number – A25305222117
11. Now click on Finish to complete the installation process.
12. This completes the installation of VMware Workstation.
6
Roll Number – A25305222117
Practical 2 – Creation of VM image of Ubuntu Linux
1. After installation of VMware Workstation, double click on the VMware Workstation
icon created on the desktop. This is the screen that you will see:
2. Now click on ‘Create a New Virtual Machine’ option from the given set of options.
You will now get the following screen:
7
Roll Number – A25305222117
3. Before moving ahead, ensure that you have the availability of a Guest Operating
System image/cd. Select ‘Typical’ option and click on next.
4. Now click on browse and look for the Operating System Image. Then click on Next.
5. On the next popup, you need to enter your login details for the Guest Operating
System.
8
Roll Number – A25305222117
6. You can update the name of the virtual machine and then click next.
7. Select the disk size you wish to allocate to the Virtual OS and click on Next.
8. You can customize the hardware settings by clicking on the Customize Hardware
button and then to move forward, just click on Finish.
9
Roll Number – A25305222117
9. Now we can just setup our Guest OS easily.
10
Roll Number – A25305222117
11
Roll Number – A25305222117
10. This successfully completes the process of creation of a VM with Ubuntu as the Guest
OS.
12
Roll Number – A25305222117
Practical 3 – Launching an EC2 Instance on Amazon Web Services
1. Go to the AWS website at [Link] and click on Sign in to the Console at the
top right on the home page.
2. Sign into the Console using your credentials.
13
Roll Number – A25305222117
3. You will now be taken to this page. Here you need to search for and click on the EC2
option using the search box given at the top of the webpage.
4. You will then to be taken to this EC2 dashboard where you need to click on the
“Launch instance” button.
14
Roll Number – A25305222117
5. On this page, you need to fill in details like the name of the instance, which in my
case is “Ananya’s Cloud Computing Practical” and also choose the OS for a quick
start for which I am choosing Windows.
6. Now create a key pair with your preferred name and the following settings and save
the .pem file in a secure place in your system.
15
Roll Number – A25305222117
7. Edit the network settings, add 2 security groups, group 2 and 3 with the following
settings as shown in the screenshot below.
8. Go to advanced settings and enable Termination Protection. Then click on Launch
instance button.
16
Roll Number – A25305222117
9. Your instance has now been launched.
10. It is now running as you can see here. Now click on the connect button on top of the
page.
17
Roll Number – A25305222117
11. Click on RDP client and then Get Password.
12. On this page, you need to upload the private key (.pem) file that you downloaded
earlier and then click on decrypt password.
18
Roll Number – A25305222117
13. Now copy and save this password with you. Now click on the download remote
desktop file button and save the .rdp file. d;?
gl=TGRyJK;Uff;Af)?y%-0-qNDF-0
14. Open the Remote Desktop Connection windows app and then click on open and
choose your .rdp file that you just downloaded and click on Connect.
19
Roll Number – A25305222117
15. Enter the password that we saved earlier and click on OK.
16. Click on yes.
20
Roll Number – A25305222117
17. We are now in our Instance.
18. We have successfully launched and connected to our AWS EC2 instance.
21
Roll Number – A25305222117
19. Close your connection and go back to the AWS EC2 instances dashboard. Select your
instance, then click on Instance state, and then stop instance.
20. Go to actions, then Instance settings, select change termination protection, untick
Enable and click on save.
22
Roll Number – A25305222117
21. Now terminate the instance by going to Instance state and clicking on terminate.
23
Roll Number – A25305222117
Practical 4 – Launching a Linux ec2 instance on Amazon Web Services
platform.
[Link] the aws console on a web browser on your pc/laptop and search for ec2.
2. When the following screen appears click on launch instance.
24
Roll Number – A25305222117
3. Name your instance and select the type of instance you want to create, in this case Linux.
4. In the key pair(login) section click on create new key pair. Name your key pair and create RSA
keypair type. A .pem file will be downloaded.
25
Roll Number – A25305222117
5. In network settings after clicking on edit, create the following three security group roles, i.e http,
https and rdp.
26
Roll Number – A25305222117
6. In the storage settings, set storage size 30 GiB.
7. In advanced settings, enable termination protection.
27
Roll Number – A25305222117
8. The instance will be successfully launched
9. In the instances menu click on the created instance and click on connect.
[Link] the following screen appears click on connect.
28
Roll Number – A25305222117
11. A new tab opens with a Linux command prompt screen. Here type “df”. This command displays
the amount of disk space available on the file system containing each file name argument. After that
type logout.
12. Back in the instances menu click on Linux instance and stop the instance.
29
Roll Number – A25305222117
Practical 5 - Configuring windows ec2 instance server settings and making
IIS server.
[Link] and open windows ec2 instance through remote desktop connection.
2. From start open server manager application.
30
Roll Number – A25305222117
3. Click on add roles and features in ‘Configure this local server’ tab.
4. Click next in select server destination tab.
31
Roll Number – A25305222117
5. In ‘select server roles’ tab, scroll down and select “Web Server(IIS)” and click on add features in
the pop up window.
6. In the ‘select role services to install for Web Server (IIS)’ tab click next.
32
Roll Number – A25305222117
7. Click on install and wait for installation to finish and close the window.
8. In file explorer open Local Disk (C:) and in (C:) open the ‘inetpub’ folder.
33
Roll Number – A25305222117
9. In ‘inetpub’ folder open the ‘wwwroot’ folder.
10. In the ‘wwwroot’ folder, delete the .txt and .png files.
34
Roll Number – A25305222117
11. Create a new .txt file in the ‘wwwroot’ folder.
12. In the new text file type “WINDOWS SERVER ON EC2 INSTANCE” and save file as “[Link]”
with file type as ‘all files’. Minimise the rdp client.
35
Roll Number – A25305222117
13. Select the instance in instances dashboard on aws and copy the public IPv4 address.
14. Pasting the public IPv4 address in a new tab opens up a blank html site with the text from
“[Link]” file.
36
Roll Number – A25305222117
Practical 6 - Creating tables and indices in DynamoDB in aws.
1. Search DynamoDB in the search box in console home and click on DynamoDB service.
2. In the DynamoDB homepage click on Create table.
37
Roll Number – A25305222117
3. Give a name to the table and create a number type partition key called ‘RollNo’, click on create
table.
4. In the Tables console we can see the created table, click on StudentData.
38
Roll Number – A25305222117
5. In the student data page click on actions and create item.
6. Create item1 with rollno1 and name, subjects, branch and year attributes.
39
Roll Number – A25305222117
7. Similarly create item2 with rollno 2 and age, branch and location attributes.
8. Also make item3 with rollno3, cgpa and projects attributes.
40
Roll Number – A25305222117
9. Now all three items are made with respective attributes and can be seen in the returned items tab.
Now we can run scans and queries on these items.
10. We run the ‘Age’ attribute scan with Equal to 19 conditions which returns RollNo 2.
41
Roll Number – A25305222117
11. We can also run ‘RollNo’ attribute scan.
12. Query will a specific RollNo can also be run.
42
Roll Number – A25305222117
13. The created items can be downloaded in a .csv file where all items and their attributes can be
edited in excel.
43
Roll Number – A25305222117
14. Various metrics of the table can be viewed in the tables console. These include read usage, write
usage, etc.
15. The table can be deleted in the actions dropdown and after giving confirmation the table is
deleted.
44
Roll Number – A25305222117
Practical 7 - Creating an elastic load balancer for two ec2 instances
(Windows IIS servers).
1. Launch two ec2 instances, decrypt their passwords and login both instances through rdp clients.
Follow the steps in experiment 3 for creating instances.
2. For the second instance, create Web Server(IIS) same as done in experiment 5.
45
Roll Number – A25305222117
3. Create [Link] file in second instance but with different text to distinguish the index files in
both the instances.
4. Now both the instances are configured as IIS web servers and running.
46
Roll Number – A25305222117
5. Pasting the public IPv4 address of both the instances in new tabs opens the html site with the text
from “[Link]” file of each instance
6. Now to create a load balancer for the instances, select load balancer in the left column.
47
Roll Number – A25305222117
7. In the load balancers tab click on create load balancer.
8. In load balancer types choose Application Load Balancer.
48
Roll Number – A25305222117
9. In create application load balancer, name the load balancer.
10. In Mappings choose ap-south-2a and ap-south-2b subnets and in Security groups choose existing
security groups of either two instances.
49
Roll Number – A25305222117
11. In listeners and routing click on Create target group.
12. In target group tab name the target group WindowsWebServer and choose instances as target
type.
50
Roll Number – A25305222117
13. Select both the instances and include in pending below. Now they are included in review targets.
To finish click on Create target group.
14. Now back in the listeners and routing select the created target group ‘WindowsWebServer’ and
click on create load balancer.
51
Roll Number – A25305222117
15. The Load balancer is created. Now copy the DNS name and paste it in a new tab.
16. In the new tab an html site with the text from ‘[Link]’ file of each instance opens. When
refreshed the site changes between both the [Link] files of each instance. This happens because
the load balancer switches between both the instances according to traffic.
52