0% found this document useful (0 votes)
10 views76 pages

Cloud Networking Lab Record 2023-24

This is lab notes of Cloud Computing in Azure

Uploaded by

batman18network
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)
10 views76 pages

Cloud Networking Lab Record 2023-24

This is lab notes of Cloud Computing in Azure

Uploaded by

batman18network
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

21881A6637 Cloud Computing andVirtualization (A7514) 1

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING (AI&ML)

LABORATORY RECORD

Roll Number : 21881A6637

Student Name : K Ganesh


Class / Semester : III B. TECH II

Course Name : Cloud Computing & Virtualization

Course Code : A7514


Academic Year : 2023-24
Regulation : VCE-R21

Dept. of CSE (AI&ML) 2023-24


21881A6637 Cloud Computing andVirtualization (A7514) 2

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING (AI&ML)

CERTIFICATE
Certified that this is the bonafied record of practical work done by Mr.

K Ganesh , Roll Number 21881A6637 of [Link] III Year CSE (AI&ML) for the
course Cloud Computing & Virtualization laboratory during the year 2023-24.

Date: HOD Staff Incharge


Dept. of CSM

Internal Examiner External Examiner

Dept. of CSE (AI&ML) 2023-24


21881A6637 Cloud Computing andVirtualization (A7514) 3

Course Description:
Course Overview

This course provides a hands-on comprehensive study of Cloud concepts and capabilities across
the various Cloud service models including Infrastructure as a Service (IaaS), Plat- form as a
Service (PaaS) and Software as a Service (SaaS). In IaaS mainstream Cloud infrastructure services
and related vendor solutions are covered in detail. The course also covers the Cloud migration and
security model. Students will gain hands-on experience on virtual box and advanced open-source
tools like Azure, Open stack and Eucalyptus. The major motto of this course is to not just stick with
the academic portion but also to encourage students to for cloud certifications to brighten their
future endeavors in IT sectors.

Course Outcomes (COs)


After the completion of the course, the student will be able to:

A7514.1 Demonstrate cloud services, architecture and layers in cloud environment.


A7514.2 Identify the cloud migration model and challenges of integration in cloud sectors.
A7514.3 Make use of virtualization concepts in cloud.
A7514.4 Select cloud storage, privacy approaches for efficient implementation of cloud.
A7514.5 Implement IaaS / PaaS service on a public cloud using any open-source tool.

Dept. of CSE (AI&ML) 2023-24


21881A6637 Cloud Computing andVirtualization (A7514) 4

VARDHAMAN COLLEGE OF ENGINEERING


(AUTONOMOUS)
Affiliated to JNTUH, Approved by AICTE, Accredited by NAAC, with A++ Grade,
ISO 9001:2015 Certified
Kacharam, Shamshabad, Hyderabad – 501218, Telangana, India

INDEX
[Link]. Date Title of the Experiment Page Marks Signature
No. of the Staff
1 12-2-24 Install Virtual Box and make Ubuntu And
Window Virtual Machine.

2 19-2-24 Create Windows Virtual Machine in


Microsoft Azure.
3 26-2-24 Create Ubuntu Virtual Machine in Microsoft
Azure.

4 04-3-24 Create a Virtual machine and do scale up in


Azure.

5 11-3-24 Create a Virtual machine and do lock for VM


in AZURE.

6 11-3-24 Create Ubuntu VM and run a Python


program in it.

7 18-3-24 Create Ubuntu VM and transfer files using


WinSCP.

8 1-4-24 Create a Windows VM and transfer files


from the desktop to remote desktop VM.

9 22-4-24 Connect data disk to windows server in azure


data centre.

10 29-4-24 Adding data disks to Linux server in azure


data centre.

11 6-5-24 Convert Linux server as web server in


AZURE.

12 27-5-24 Move Ubuntu server files from one resource


to another resource.

13 3-6-24 Set up and configure AZURE web server for


Windows server (IIS).

14 10-6-24 Create a Storage Account, container and


upload/delete objects.

15 10-6-24 Adding new users, login credentials,


changing owner, create authorized key files

Dept. of CSE (AI&ML) 2023-24


21881A6637 Cloud Computing andVirtualization (A7514) 5

Dept. of CSE (AI&ML) 2023-24


Q1. Install Virtual box and making Ubuntu And Window Virtual Machine.
Ubuntu:
Step-1: Download VirtualBox for Windows and install it on your computer

[Link]
Step-2: Downloadthe Ubuntu ISO file you want to install from the Ubuntu download
page.

Note: The current version of Ubuntu only works on 64-bit machines.


Step-3:
Open VirtualBox and select New in the top taskbar.

21881A6637 CCV
Step-4: Give your VM a name, choose Linux as the Type, then choose Ubuntu as the Version
and select Next.

Step-5: Choose how much RAM you want to assign to the virtual machine and select Next.
The recommended minimum is 1024 MB.

Step-6: Choose Create a virtual hard disk now and select Create.

Step-7: Choose VDI (VirtualBox Disk Image) and select Next.

21881A6637 CCV
Note on (VDI): Normally, Oracle VM VirtualBox uses its own container format for guest hard
disks. This is called a Virtual Disk Image (VDI) file. This format is used when you create a
new virtual machine with a new disk.

Step-8: Choose Dynamically allocated or Fixed size for the storage type and select Next.

Tip: A fixed size disk performs better because the virtual machine doesn’t have to increase the file size as you install
software.

Step-9: Choose how much space you wish to set aside for Ubuntu and select Create.

Note: The amount of space you allocate for your virtual machine determines how much
room you must install applications, so set aside a sample amount.

Step-10: The name of your virtual machine will now appear on the left side of the VirtualBox
manager. Select Start in the toolbar to launch your VM.

21881A6637 CCV
Step-11: This is the point where you need to choose the Ubuntu ISO file you downloaded
earlier. If the VM doesn't automatically detect it, select the folder next to the Empty field.

Step-12: Select Add in the window that pops up.

Step-13: Choose your Ubuntu disk image and select Open.

21881A6637 CCV
Step-14: - Select Choose

Step-15: Select Start.

21881A6637 CCV
Step-16: Your VM will now boot into a live version of Ubuntu. Choose your language and

select Install Ubuntu

u.

Step-17: Choose your keyboard layout and select Continue.

Step-18: Choose Normal installation or Minimal installation, then select Continue.

Step-19: Choose Erase disk and install Ubuntu and select Install Now, then select Continue to
ignore the warning.

Note: This step will not erase your computer’s physical hard drive; it only applies to the
virtual machine.

21881A6637 CCV
Step-20: - Choose your time zone on the map, then select Continue.

Step-21: - Set up your user account and select Continue.

Step-22: - Select Restart Now.

21881A6637 CCV
Step-23: - After restarting your VM and booting into Ubuntu, you may notice that the desktop
doesn’t scale correctly if you choose to view it in full-screen mode. You can fix this problem
by selecting the VBox_Gas icon to install VirtualBox Guest Additions.

Output:

Windows:

Similarly, Follow the same steps above to Build Windows Virtual Machine.

21881A6637 CCV
Output:

21881A6637 CCV
21881A6637 CCV
Q2) Create a Windows Virtual Machine in Microsoft Azure

Step-1: Sign in to your Microsoft Azure account.

Step-2: Go To Virtual machine, and click on “Create” to create a window virtual machine.

21881A6637 CCV
Step-3: Fill the details in that window by creating a “Resource Group”, Zone: Asia, Image
window, Select the disk storage and so on. After that click on “Create + Review”. And Finclick on

21881A6637 CCV
21881A6637 CCV
Step-4: After Deployment is over, Go to the remote desktop connection.

21881A6637 CCV
Step-5: Firstly, copy the public IP Address of that created virtual machine.

21881A6637 CCV
Step-6: By using that copied IP Address open the window virtual machine through remote
desktop connection.

Output:

21881A6637 CCV
Q3) Create a Ubuntu Virtual Machine in Microsoft Azure
Step-1: Sign in to your Microsoft Azure account.

Step-2: Go To Virtual machine, an click on “Create” to create a window virtual machine.

21881A6637 CCV
Step-3: Fill the details in that ubuntu by creating a “Resource Group”, Zone: Asia, Image:

ubuntu, select “SSH”, Select the disk storage and so on. After that click on “Create +
Review”. And Finally click on “Create”

21881A6637 CCV
21881A6637 CCV
Step-6: Go to putty gen and click on load the generator that you have downloaded.

21881A6637 CCV
Step-7: In putty, put the Copied IP Adress into it, and then go to ssh->auth->credentials And
the put the generated private key.

Step-8: A login page will be opened in that type your username and you will be into the
ubuntu.

21881A6637 CCV
Step-9: After this delete its resource group and virtual machine.

Output:

21881A6637 CCV
4Q) Create a Virtual machine and do scale up in Azure.
Step-1: Create a virtual machine (ubuntu or windows).

step-2: After deployment of VM stop VM for scaling

21881A6637 CCV
Step-3: On the left side there will be settings and click on disks.

Step-4: click on disk name and select your preferred size, save it.

21881A6637 CCV
Step-5: On the left side there will be select + performance and click on size.

Step-6: click on disk name and select your preferred ram size, save it.

21881A6637 CCV
Q5) Create a Virtual machine and do lock for VM in AZURE.

Step-1: Create a virtual machine (ubuntu or windows).

Step-2: On the left side there will be settings and click on locks, give lock name and
select lock type.

21881A6637 CCV
Step-3: click on ok.
Similarly, you can do for Resource group and subscriptions.

Note: After creating the lock, you need to delete it for deleting VM.

21881A6637 CCV
21881A6637 CCV
Q6) Create Ubuntu VM and run a python program in it.

Step-1: Create a ubuntu virtual machine using SSH key same as previous experiment.
Step-2: Login with your username and type python3, write your python program and
execute it.

21881A6637 CCV
Q7) Create a Ubuntu VM and transfer files using WinScp.
Step-1: Create a ubuntu virtual machine using SSH as previous experiment and copy
public IP address.

Step-2: Login into your ubuntu VM using PUTTY and type ls command as you can see
nothing.

21881A6637 CCV
Step-3: Open WinScp at right bottom you can see Advanced option-
>SSH>Authentication->In that drag private key file and click on ok.

At last Login into your account using public IP address and username in WinScp.

Now, you can drag your files from your desktop to ubuntu VM in WinScp.

21881A6637 CCV
Step-4: Now again type ls command as you can see file inside ubuntu VM.

21881A6637 CCV
Q8) How to make Linux server as web server in AZURE.
Step-1: Create a ubuntu virtual machine using SSH as previous experiment and copy
public IP address.

Step-2:Login into your Ubuntu VM using your username and type the following
commands. $sudo su

$sudo apt-get update

After typing the two command, now install web server using the below command

$sudo apt-get install nginx

After installing in VM, paste the public ip address in desktop browser and you can see.

21881A6637 CCV
Step-3: To remove following information and keep new information in that page type the
following command and refresh the browser page.

$cd /var/www/html

$rm [Link]

$echo “Welcome to CSM “>[Link]

21881A6637 CCV
21881A6637 CCV
Q9) Setup and configure AZURE web server for windows server(IIS).
Step-1: Create and login windows VM same as previous experiment and copy public IP
address.

Step-2: When remote desktop will start(windows vm) you can see there will be Sever
Manager will be opened and in that you can see Configure this local server , Click on
“Add roles and features”.

21881A6637 CCV
Step-3: Click on next, next and in Server Roles select Web Server(IIS) click on addfeature
click on next, next till you can get install button and click on install .

21881A6637 CCV
Step-4: paste the public ip address in desktop browser and you can see.

21881A6637 CCV
Now to remove this all information first of all create [Link] in desktop and that
should paste in the specified location of remote desktop VM that is ThisPC-
>windows(c)- >inetup->wwwroot and remove iistart png.

Step-5: Refresh the browser page.

21881A6637 CCV
Q10) How we are adding new users, login credentials, changing owner, create authorized
key files.

Step-1: Create a ubuntu virtual machine using SSH as previous experiment.


Step-2: Login into your Ubuntu VM using your username and type the following
commands.

To add new user in Linux server:

$sudo useradd -m Saiteja To

set new password:

$sudo password Saiteja

Enter new password and Retype password.

To modify login credentials: $sudo

usermod -aG sudo Saiteja To

switch the user:

$sudo su Saiteja

21881A6637 CCV
Q11) Create a Windows VM and transfer files from desktop to remote desktopVM.

Step-1: Create Windows VM same as previous experiments and copy public IP Address.

Step-2: Login into your account using username and password using remote desktop.

21881A6637 CCV
Step-3: Minimize the Remote desktop and copy file from desktop.

Right click in remote desktop and click on paste.

21881A6637 CCV
12Q) Move Ubuntu server files from one resource to another resource
Steps:-

1) Open Resource groups in Microsoft Azure account and click on create

2) Give a name and create two resource groups

21881A6637 CCV
21881A6637 CCV
3) Open Resource group and click on create

21881A6637 CCV
4)Select Virtual machine and click on create

5)Create a VM with username and password & click on "Review+ create"

21881A6637 CCV
6)click on "Go to resource"

7)Select all resources & click on "move" on the top

21881A6637 CCV
8)Click on move to another resource group

9)Give the target Resource group i.e., RG2 & click on next

21881A6637 CCV
10)After all validation status "Succeeded" click on next

21881A6637 CCV
5
18

12)Click on "move" then all the resources from the RG1 moves to RG2

13)To check if the resources are moved to RG2, open RG2, All the resources can be seen

21881A6637 CCV
5
19

21881A6637 CCV
5
20

13Q) How to create Storage Account, container and upload/delete objects?


Steps:-
1) Open Microsoft Azure portal and click on storage accounts

2) Click on create, select LRS/GRS in redundancy

21881A6637 CCV
5
21

3) Click on next, Tick "Allow enabling anonymous access on individual containers

4) Click on Review+create and click on create

21881A6637 CCV
5
22

5) Open Storage Account which you have created

6) Click containers under Data Storage on the click on "+ Container

t side and

21881A6637 CCV
5
23

7) Give a name & select "blob" in Anonymous access level and click on create

8) Click on upload

21881A6637 CCV
5
24

9) Click on "Browse for files"

10)Upload any file/image/audio/video/pdf

21881A6637 CCV
5
25

11)Click on the file which you have uploaded

12)Copy the URL

13)Paste the URL in any browser

14)To change the access level, click on Change access level

21881A6637 CCV
5
26

15)To change the access level, click on Change access level

16)Select any Anonymous access level and click on OK

21881A6637 CCV
17) Again copy the URL of the file which you have uploaded previously and paste it any browser

18)To delete a blob, select the blob and click on delete


19)To view the deleted blobs, click on "show deleted blobs"
14)Create a storage and perform Static web hosting
Create storage account name account1234

21881A6637 CVV
21881A6637 CVV
Conclusion:
Hence experiment is successfully executed and verified

21 88 [Type here]
15)create a storage account and perform Object Replication
Create a storage account name account12345678
Conclusion: Hence experiment is successfully executed and verified
16) Azure Life Cycle Management
Conclusion:
Hence experiment is successfully executed and verified
17) Storage redundant storage
Conclusion:
Hence experiment is successfully executed and verified

You might also like