0% found this document useful (0 votes)
19 views6 pages

Pre-Built VMs for Cyber Lab Setup

This document outlines the setup process for a Virtual Cybersecurity Lab using Oracle VirtualBox, featuring three virtual machines: Kali Linux, Metasploitable 2, and Ubuntu Desktop. The lab is designed for practical cybersecurity exercises, including penetration testing and defensive monitoring, with successful network connectivity verified through ping tests. The environment is configured to ensure safety and isolation from external networks, making it suitable for educational purposes in cybersecurity.

Uploaded by

bdcaptain2025
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views6 pages

Pre-Built VMs for Cyber Lab Setup

This document outlines the setup process for a Virtual Cybersecurity Lab using Oracle VirtualBox, featuring three virtual machines: Kali Linux, Metasploitable 2, and Ubuntu Desktop. The lab is designed for practical cybersecurity exercises, including penetration testing and defensive monitoring, with successful network connectivity verified through ping tests. The environment is configured to ensure safety and isolation from external networks, making it suitable for educational purposes in cybersecurity.

Uploaded by

bdcaptain2025
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Virtual Environment Setup Document

Cybersecurity Virtual Lab Setup


Course: Work Integrated Learning - Cyber Security - WILCS25_05
Team Members: Rafiur RAHMAN
Date: June 2025

1. Introduction

This document provides a comprehensive overview of the process


undertaken to establish a Virtual Cybersecurity Lab environment using
Oracle VirtualBox. The primary objective of this environment is to facilitate
the practical exploration of cybersecurity concepts through the controlled
simulation of attacks and defensive mechanisms within an isolated network.

The lab comprises three distinct virtual machines (VMs), each serving a
different role within the network:

 Kali Linux: functions as the attacker machine.

 Metasploitable 2: serves as an intentionally vulnerable target


system.

 Ubuntu Desktop: acts as a defensive host.

By ensuring full network connectivity among these VMs, the environment


supports a variety of penetration testing and defensive exercises while
maintaining a secure boundary from the host system and external networks.

2. Objectives

The key objectives of this virtual environment setup are as follows:

 To install and configure Oracle VirtualBox on the host machine.

 To download and deploy pre-built Kali Linux, Metasploitable 2, and


Ubuntu Desktop virtual machines.

 To configure the network settings of all virtual machines to ensure


mutual communication.

 To verify the functionality of the environment through appropriate


testing and documentation.
 To prepare the environment for practical cybersecurity activities such
as penetration testing, vulnerability scanning, and defensive
monitoring.

3. System Requirements

The virtual environment was configured on a host system meeting the


following specifications:

 Operating System: Windows 10 / 11 (64-bit)

 Processor: Intel Core i5 or equivalent

 RAM: Minimum 8 GB

 Storage: Minimum 50 GB free space

 Virtualization Software: Oracle VirtualBox version 7.1.10

 Virtual Machines:

o Kali Linux (latest VirtualBox image)

o Metasploitable 2 (VMDK)

o Ubuntu 24.04.2 LTS Desktop (ISO)

4. Installation and Setup Process

4.1 Oracle VirtualBox Installation

Oracle VirtualBox version 7.1.10 was obtained from the official Oracle
website ([Link] The installation process
was completed through the VirtualBox Setup Wizard. Upon completion, the
application was launched to verify successful installation.

Additionally, the VirtualBox Extension Pack was downloaded and installed to


enhance functionality, including support for USB 2.0 and 3.0 devices.

[Insert Screenshot: Oracle VirtualBox Installed and Running]

4.2 Kali Linux Virtual Machine Setup


The pre-built Kali Linux VirtualBox image was sourced from the official
Offensive Security website ([Link]
vmware-virtualbox-image-download/).

The image, provided in .ova format, was imported into VirtualBox using the
“Import Appliance” feature. System resources were allocated appropriately
(2 GB RAM, 2 CPUs), and the virtual machine was started successfully.

The default login credentials were applied (kali as both username and
password). Network functionality was verified, and the VM’s IP address was
identified through the ifconfig command.

[Insert Screenshot: Kali Linux VM Running]


[Insert Screenshot: Kali Linux ifconfig Output]

4.3 Metasploitable 2 Virtual Machine Setup

The Metasploitable 2 virtual machine was downloaded from SourceForge


([Link] The downloaded .zip
archive was extracted to access the .vmdk disk image.

A new virtual machine was created within VirtualBox, configured as a Linux


machine with the version set to Ubuntu (32-bit). The extracted .vmdk file
was attached to the VM’s virtual hard disk.

Upon booting the VM, the login screen was displayed. The default login
credentials (msfadmin for both username and password) were used to access
the system. The IP address of the machine was obtained using the ifconfig
command.

[Insert Screenshot: Metasploitable 2 VM Running]


[Insert Screenshot: Metasploitable 2 ifconfig Output]

4.4 Ubuntu Desktop Virtual Machine Setup

The latest version of Ubuntu Desktop (Ubuntu 24.04.2 LTS) was downloaded
from the official Ubuntu website ([Link]

A new virtual machine was created within VirtualBox, and the downloaded
ISO image was used to install the operating system. The system was
configured with 2 GB RAM, 2 CPUs, and a 20 GB virtual hard disk.
After the installation was completed, the operating system was updated to
ensure compatibility with the required tools. The net-tools package was
installed to provide access to the ifconfig command. The IP address of the
Ubuntu VM was identified using this tool.

[Insert Screenshot: Ubuntu Desktop VM Running]


[Insert Screenshot: Ubuntu ifconfig Output]

5. Network Configuration and Verification

5.1 Network Configuration

The network settings for all virtual machines were configured to allow full
communication within the virtual environment. The NAT Network option was
used (configured as ACS Network in VirtualBox), enabling each VM to obtain
an IP address within the same subnet and to communicate with the other
VMs.

Alternative configurations, such as Host-only Network or Internal Network,


may also be applied depending on specific instructor or course requirements.

5.2 IP Address Summary

The assigned IP addresses for each virtual machine were as follows:

Virtual
IP Address
Machine

[Insert IP
Kali Linux
here]

Ubuntu [Insert IP
Desktop here]

Metasploitable [Insert IP
2 here]

5.3 Verification of Network Communication

To verify the connectivity between the virtual machines, ICMP echo requests
(ping tests) were conducted between each pair of VMs. Successful responses
were observed, confirming that network communication was established.

Ubuntu Desktop to Kali Linux


Command executed: ping <Kali Linux IP>
[Insert Screenshot: Ubuntu pinging Kali Linux]

Kali Linux to Ubuntu Desktop

Command executed: ping <Ubuntu Desktop IP>


[Insert Screenshot: Kali Linux pinging Ubuntu Desktop]

Kali Linux to Metasploitable 2

Command executed: ping <Metasploitable 2 IP>


[Insert Screenshot: Kali Linux pinging Metasploitable 2]

Ubuntu Desktop to Metasploitable 2

Command executed: ping <Metasploitable 2 IP>


[Insert Screenshot: Ubuntu Desktop pinging Metasploitable 2]

6. Conclusion

The Virtual Cybersecurity Lab environment was successfully established


using Oracle VirtualBox. The installation of Kali Linux, Metasploitable 2, and
Ubuntu Desktop virtual machines was completed without errors. Network
connectivity among all virtual machines was verified through a series of ping
tests, confirming that the environment is suitable for use in penetration
testing, vulnerability assessment, and defensive security exercises.

The configured environment provides an isolated and safe space for


cybersecurity experimentation and learning, minimizing any risk to the host
system or external networks. The environment is now ready for future lab
work and practical sessions.

7. References

 Oracle VirtualBox. (2025). Retrieved from [Link]

 Offensive Security. (2025). Kali Linux Virtual Machines. Retrieved from


[Link]
image-download/

 SourceForge. (2019). Metasploitable 2. Retrieved from


[Link]
 Canonical Ltd. (2025). Ubuntu Desktop. Retrieved from
[Link]

Common questions

Powered by AI

Oracle VirtualBox serves as the virtualization software platform that enables the creation and management of virtual machines within a host system. In the virtual cybersecurity lab setup, it hosts and connects VMs such as Kali Linux, Metasploitable 2, and Ubuntu Desktop, allowing them to function within an isolated network. VirtualBox facilitates the installation, configuration, and network arrangement of these VMs, making it integral in establishing an effective virtual lab environment .

ICMP echo requests, or ping tests, are used within the virtual lab to verify that VMs are correctly configured to communicate with each other. By issuing a ping command between VMs, and receiving a proper response, it confirms that the network settings, such as correct IP allocation and routing, are properly configured. This verification step is essential for ensuring that all parts of the lab environment can interact as intended .

The network configuration in the virtual lab uses the NAT Network option, allowing VMs to communicate within an isolated subnet while restricting direct communication with external networks. This setup ensures that simulated attacks and defenses are confined within the lab, minimizing risks to the host system and external networks. Such an isolated environment is crucial for secure and effective cybersecurity training .

The key components for a successful virtual cyber lab include Oracle VirtualBox for VM management, and three specific VMs: Kali Linux, Metasploitable 2, and Ubuntu Desktop. Proper configuration involves setting each VM with appropriate resources, such as allocating 2 GB RAM and 2 CPUs for each, and configuring the network using NAT Network for internal communication. These configurations ensure each VM functions optimally and securely within the lab .

To verify network connectivity between virtual machines, ICMP echo requests (ping tests) were performed. For instance, a ping test from Ubuntu Desktop to Kali Linux involves executing the command 'ping <Kali Linux IP>' from the Ubuntu machine. Successful ping responses indicate correct network configurations and active communication ability among the VMs. Similar tests should be conducted between each pair of virtual machines to ensure complete network connectivity .

The virtual cybersecurity lab setup supports practical activities by providing a controlled environment where penetration testing tools can be safely used. Kali Linux includes these tools to simulate attacks against Metasploitable 2, allowing students to practice identifying and exploiting vulnerabilities. The Ubuntu Desktop VM can be used to deploy and test defensive mechanisms in response to these attacks, fostering a comprehensive learning experience in offensive and defensive strategies .

The selection of Kali Linux, Metasploitable 2, and Ubuntu Desktop for a cybersecurity lab allows for a comprehensive training experience because each machine fulfills a distinct role. Kali Linux is used as an attacker machine featuring tools necessary for penetration testing. Metasploitable 2, being intentionally vulnerable, serves as an ideal target system for practicing exploitation techniques. Ubuntu Desktop acts as a defensive host, providing a base for deploying security measures. This combination enables participants to simulate real-world attack and defense scenarios .

To effectively run a virtual cybersecurity lab using VirtualBox, the host system should have at least Windows 10/11 (64-bit) as the OS, an Intel Core i5 processor or equivalent, a minimum of 8 GB of RAM, and at least 50 GB of free storage space. VirtualBox version 7.1.10 must be installed to support the necessary virtualization features for the lab .

Continuously updating operating systems and tools in the virtual lab is crucial to mitigate vulnerabilities that could be exploited during exercises. Regular updates ensure that security patches are applied, enhancing system robustness against potential threats, and maintain compatibility with newer cybersecurity techniques and practices. This practice helps in maintaining a realistic and secure training environment .

When setting up a virtual cybersecurity lab environment using VirtualBox, important security considerations include ensuring the isolation of the lab from the host and external networks by using network configurations like NAT or Host-only Network. This prevents any potential breeches resulting from simulations from affecting real systems. Additionally, it is crucial to use default credentials cautiously and modify them where possible to prevent unintended access. It's also essential to regularly update the virtual machines and associated software to protect against vulnerabilities .

You might also like