Lab 1: Installation of the vmware
Introduction
Virtualization is the creation of a virtual form of a computing resource like a computer,
server, or another hardware component, or a software-based resources such as an operating
system. It uses software to simulate the existence of hardware and create a virtual computer
system or virtual machine that acts like an actual computer. Virtual Machine is a computer
program that like a physical computer, runs an operating system and applications.
Procedure
Steps to install and configure vmware:
1. Download the vmware workstation trial version setup file from the official website of
the vmware.
2. Install vmware on your machine.
Click on the next button and setup Wizard, accept the License Agreement
Then accept the terms and condition. After it , click on the next button.
3. After all the steps completed, click on the install button and install the vmware
workstation.
4. Then launch VMware by clicking finish button.
Conclusion
Hence, from the above lab practical, we successfully installed the VMware which provides
a virtualization platform that allows multiple operating system to run on a single physical
machine, supporting cloud and virtualization concepts.
Lab 2: Installation of Kali Linux (Using VMware Workstation)
Objective
To install kali linux operating system on a virtual machine using VMware workstation.
Introduction
Kali Linux is an operating system which is used as a clous based security testing and
penetration testing operating system deployed on cloud platforms such as Azure, AWS or
Google Cloud. It helps in testing the security of cloud infrastructure and applications
without using local machines.
Here are the steps to install kali linux
1. Download Kali Linux going to the browser [Link] then click Get Kali
and then Virtual Machine, after that select VMware and download the kali linux
VMware Image in zip.
2. After download, extract kali image where it contain .vmx file which will be extracted.
3. After extracted, open kali in VMware. So to open first we need to open VMware
workstation then click open a virtual machine and browse to the extract kali folder ,
select the .vmx file and click open.
4. Change the Hardware compatability.
5. Choose Virtual Machine Hardware Compatibility and select Hardware compatibility:
Workstation 17.x then Keep default selection and Click Next.
6. Clone Before Converting and choose Alter the virtual machine, click next.
7. Finish Compatibility Update and click finish
Then click on the virtual machine and then click on the setting to look the hardware.
8. Click power on this virtual machine and kali linux will start booting.
9. After boosting, Login to Kali Linux and enter username, password.
Conclusion
Kali Linux was successfully installed by updating hardware compatibility in VMware
Workstation.
Lab 3: Running simple Java and C program in the kali
Objectives: to run simple java and c program in the kali
Introduction
Kali Linux is installed as a guest operating system inside VMware Workstation. Basic C
and Java programs are compiled and executed inside the virtual machine to demonstrate
application execution in a virtualized (cloud-like) environment.
Procedure:
To execute a C program on Linux, you need to install the following :
1. GCC compiler for the C program
2. OpenJDK (default-jdk) for the java programming
3. Mousepad / Nano for editing code
Step 1: First of all, install the VMware Workstation and kali linux in your system.
Step 2: Starting Kali Linux in VMware by opening the VMware workstation then Start the
Kali Linux virtual machine and login using valid credentials.
Step 3: Opening Terminal in Kali Linux by Press Ctrl + Alt + T, Click Kali Menu →
Terminal Emulator, Click Activities → Search → Terminal
Step 4: Execution of C Program, to execute installing GCC Compiler
sudo apt update
sudo apt install gcc -y
Step 5: to create a c program, first of all open the terminal then go to desktop
cd Desktop then after create nano rabi.c and write the source code in it.
After this to save the file, Press Ctrl + O → Enter and Press Ctrl + X. and to compile the
file, gcc rabi.c -o rabi and to run the code ./rabi
Step 6: Execution of Java Program, to execute installing Java (JDK)
sudo apt install default-jdk -y
Step 7: to create a java program, first of all open the terminal then go to desktop
cd Desktop then after create nano [Link] and write the source code in it.
After this to save the file, Press Ctrl + O → Enter and Press Ctrl + X. and to compile and
the file, javac [Link] and then enter java rabi
Conclusion
The C and Java programs were successfully compiled and executed inside Kali Linux
running on VMware.
Lab 4: Multithreading in Kali Linus
Objectives: To study and implement multithreading in Java using Thread class and
Runnable interface inside a Kali Linux virtual machine.
Introduction
Multithreading in Java is a process of executing multiple threads simultaneously. A thread
is a lightweight sub-process that shares the same memory space. Java supports
multithreading mainly in two ways:
1. By extending the Thread class
2. By implementing the Runnable interface
Multithreading improves CPU utilization and application performance by allowing
concurrent execution of tasks.
Procedure
Step 1: First all of install Vmware workstation and kali linux. Then open terminal in the
kali linux. After it Update the system using: sudo apt update and then install java: sudo apt
install default-jdk -y
Step 2: to create a c program, first of all open the terminal then go to desktop: cd Desktop
then after create nano [Link] and write the source code in it.
Then creating multithreading using ThreadClass source code:
class ThreadDemo extends Thread {
private String threadName;
ThreadDemo(String name) {
threadName = name;
[Link]("Creating thread: " + threadName);
}
public void run() {
[Link]("Running thread: " + threadName);
try {
for (int i = 1; i <= 5; i++) {
[Link]("Thread: " + threadName + ", Task: " + i);
[Link](500);
}
} catch (InterruptedException e) {
[Link]("Execution of " + threadName + " was interrupted.");
}
[Link](threadName + " exiting.");
}}
public class ThreadClass {
public static void main(String[] args) {
ThreadDemo t1 = new ThreadDemo("Thread-1");
[Link]();
ThreadDemo t2 = new ThreadDemo("Thread-2");
[Link]();
}}
Step 3: After this to save the file, Press Ctrl + O → Enter and Press Ctrl + X. and to compile
and the file, javac [Link] and then enter java ThreadClass
Step 4: to create a c program, first of all open the terminal then go to desktop: cd Desktop
then after create nano [Link] and write the source code in it.
Then creating multithreading using ThreadClass
Source Code :
class RunnableJavaProgram implements Runnable {
private String threadName;
RunnableJavaProgram(String name) {
threadName = name;
[Link]("Creating thread: " + threadName);
}
public void run() {
[Link]("Running thread: " + threadName);
try {
for (int i = 1; i <= 5; i++) {
[Link]("Thread: " + threadName + ", Task: " + i);
[Link](500);
}
} catch (InterruptedException e) {
[Link]("Execution of " + threadName + " was interrupted.");
}
[Link](threadName + " exiting.");
}
}
public class ThreadRunnable {
public static void main(String[] args) {
RunnableJavaProgram r1 = new RunnableJavaProgram("Thread-A");
Thread t1 = new Thread(r1);
[Link]();
RunnableJavaProgram r2 = new RunnableJavaProgram("Thread-B");
Thread t2 = new Thread(r2);
[Link]();
}
}
Step 5: After this to save the file, Press Ctrl + O → Enter and Press Ctrl + X. and to compile
and the file, javac [Link] and then enter java ThreadRunnable
Conclusion
The output shows multiple threads executing concurrently. Java multithreading allows
multiple tasks to execute concurrently, improving system performance and CPU utilization.
Lab 5: Creating Virtual Machine in Azure and remote login
Introduction
Microsoft Azure is a cloud computing platform that provides Infrastructure as a Service
(IaaS), allowing users to create and manage virtualized computing resources over the
internet. One of the core services of Azure is the Virtual Machine (VM), which enables
users to run operating systems and applications without the need for physical [Link]
is formally known as a windows Azure.
Here are the some steps to create a virtual machine in azure and remote login.
1. Open a web browser then Go to [Link] and Login using your
Azure account
2. Click Create a resource then Select Compute and Click Virtual Machine then Click
Create Azure virtual machine.
3. Configure Basic Settings
Resource Group: Create new
Complete the basic configuration
And then complete administration account
Step 4: click Review+ create and then deployment successfully
Remote login to Azure Virtual Machine
Step 1: Go to Your Virtual Machine. Login to [Link] and Click Virtual Machines
then Click your VM name (example: CloudVM)
Step 2: Get Public IP Address. On the Overview page: Copy Public IP address
Step 3: Check RDP Port (Very Important), Click Networking and confirm whether RDP is
name 3389 is port TCP is protocol and action allow. If not then set it.
Step 4: Open Remote Desktop on Your PC, On Windows host machine: Press Windows +
R and type mstsc, and press Enter
Step 5: Connect to Azure VM and in computer field enter Public-IP-address and click
connect
Step 6: Enter Credentials; When login screen appears: Username: (the one you created) and
Password: (your VM password)
Step 7: Remote Desktop Successful. You will now see: Windows Server 2025 Desktopand
Running inside Azure Cloud
Conclusion
In this way, virtual machine in the Azure Microsoft is created successfully. And Also remote
login to the Azure Virtual Machine.
Lab 6: Storage Configuration in the Microsoft Azure
Introduction
Azure Storage is a cloud service that provides scalable, secure, and durable storage
solutions. It supports multiple storage services including Blob Storage for unstructured
data, File Storage for file sharing, Queue Storage for messaging, and Table Storage for
NoSQL data. Azure Storage ensures high availability and data redundancy.
There are the following steps for the storage configuration in the Microsoft azure. They are:
Step 1: Login to Azure Portal. Open a web browser and Go to [Link] then
Login using a valid Azure account.
Step 2: Click on the menu and select the storage account and click on the storage account.
Steps 3: Then click on the create.
Then fill the Basic details and fill up the storage account name
Step 4: Click Review + Create → Create
Then click create and it deployed.
Step 5: Access Storage Account, After deployment, click Go to resource and Open the
Storage Account Overview page.
Conclusion
In this lab, Storage configuration in Microsoft Azure was completed successfully.
Lab 7: Hosting a Static Website Using Azure Storage Account
Introduction
Azure Storage provides a feature called Static Website Hosting that allows users to host
static content such as HTML, CSS, JavaScript, and images directly from a storage account.
This service is cost-effective, highly available, and suitable for hosting static websites
without requiring a web server.
There are the following steps hosting a static website using azure storage account. They
are;
Step 1: Login to Azure Portal. Open a web browser and Go to [Link] then
Login using a valid Azure account.
Step 2:Click on the menu and select the storage account and click on the storage account.
Steps 3: Then click on the create.
Then fill the Basic details and fill up the storage account name
Step 4: Click Review + Create → Create
Then click create and it deployed.
Step 5: Access Storage Account, After deployment, click Go to resource and Open the
Storage Account Overview page.
Step 6: In the left menu, click Static website (under Data management) and Set Static
website → Enabled
Step 7: Index document name: [Link] and Error document path: [Link] and Click
Save, Azure will generate a Primary endpoint URL
Step 8: then Go to Storage Account and Open Containers. Click $web and Click Upload
&Upload; [Link] and [Link]. then Click Upload.
Then open $web
And upload the files
Step 9: After uploaded, Open your Primary endpoint URL
Conclusion
Azure Static Website Hosting provides a simple, scalable, and cost-effective solution for
hosting static web applications without managing servers.
Lab 8: Static Website Hosting on Azure VM
Introduction
There are the following steps for the static website hosting on Azure VM. They are:
Step 1: Get Public IP, Azure Portal → Virtual Machines and Click your VM then Copy
Public IP address.
Step 2: Open Remote Desktop on Your PC, On Windows host machine: Press Windows +
R and type mstsc, and press Enter
Step 3: Connect to Azure VM and in computer field enter Public-IP-address and click
connect
Step 4: Enter Credentials; When login screen appears: Username: (the one you created) and
Password: (your VM password)
Step 5: Remote Desktop Successful. You will now see: Windows Server 2025 Desktopand
Running inside Azure Cloud
Step 6: then go to the server manager
Step 7: After it click on the manage on the navbar. And click on the add roles and features.
Then check on the skip and click on the next and go to the installation process and choose
role-based or feature based installation and click next
Then go to the server selection
And click the next, go to the server roles, then look for the option Web Server(IIS) and click
on it.
Then add features
Step 8: after this click on the next. And go to the role services.
Then click on the next and click install
And install it.
Step 9: After this, Open Web Root Folder. Inside Remote Desktop and Open File Explorer
then Go to: this PC then windows (C: ) then click on the inetpub and go to wwwroot then
add the [Link] file
Then Check IIS is Running, Press Windows + R and Type: inetmgr
IIS Manager opens and Make sure: Default Web Site → Started, first go to the view site
Then click on the browse website
Conclusion
In this lab, a static website was deployed on an Azure Windows Virtual Machine using IIS
web server. The website was accessed successfully through the VM’s public IP using HTTP
protocol.
Table of Contents
Lab no. Title Signature
1. Installation of VMware
2. Installation of kali Linus(using Vmware
workstation0
3. Running Simple Java and C program in
the kali
4. Multithreading in kali linux
5. Creating Virtual machine in azure and
remote login
6. Storage Configuration in the Microsoft
azure
7. Hosting a Static Website Using Azure
Storage Account
8. Static Website Hosting on Azure VM
(Affiliated to Tribhuvan University)
Chabahil, Kathmandu
A Lab Report
on Cloud Computing
Submitted by: Submitted to:
Name: Rabi Dangol Instructor name: [Link] shrestha
Roll No: 20 Signature of instructor:
Program: [Link]
Batch: 2078
Semester: Eight ………………………