/ VIRTUALBOX, UBUNTU

VirtualBox: Creating an Ubuntu Desktop 20.04.3 LTS Virtual Machine

In this blog post, we will share the steps that you can follow to create an Ubuntu Desktop virtual machine in VirtualBox (Version 6.1.30). We are using the name attacker for this virtual machine, but you can use your preferred name. Also, for the network adapter, we are using the name Log4Shell, but you can use your preferred name.

Downloading ISO Files

Ubuntu 20.04.3 LTS - Desktop (Attacker)

Go to https://ubuntu.com/download/desktop and download the ISO file by clicking in Download.

Creating Virtual Machine - VirtualBox

NAT (Network Address Translation) Network

Go to File > Preferences > Network and create a NAT network adapter. We are naming it Log4Shell and using a CIDR 192.168.50.0/24. Do not forget to check the Supports DHCP option.

Ubuntu Desktop Virtual Machine

Go to Machine > New and create a new virtual machine. We are naming it attacker and using type Linux and version Ubuntu (64-bit).

Select the preferred amount of memory (RAM). We will use 4096 MB.

Create a virtual hard disk using default options.

Select the attacker virtual machine and go to Machine > Settings. Go to the Storage tab and select the Choose a Disk File.

Choose the ISO file for Ubuntu Desktop you downloaded before.

Go to the Network tab and attach the Log4Shell network adapter you created before. Click on OK.

Select the attacker virtual machine and go to Machine > Start. This will start the Ubuntu virtual machine.

Select Install Ubuntu and continue the installation process using default options.

Use attacker as the name, computer’s name, and username. Also, you should choose and confirm your password.

Wait for the installation process to complete.

When the installation is complete, click on Restart Now.

Press ENTER.

Click on the user attacker.

Insert the user’s password.

Awesome!! You have created the attacker’s virtual machine.

If necessary, you can add the following features to your new virtual machine:

- Devices > Shared Clipboard > Bidirectional
- Devices > Drag and Drop > Bidirectional
- Devices > Insert Guest Additions CD Image

Problems when Installing the Guest Additions CD Image?

You might get the following error: This system is currently not set up to build kernel modules

Press enter, open a terminal window, and run the following commands:

sudo apt update
sudo apt install build-essential

Now, you can start the installation process again.

Running Out of Hard Disk Space?

First, power off your virtual machine. Then go to File > Virtual Media Manager and select the Hard disks tab within the Properties section. Look for and select the Ubuntu Desktop’s virtual hard disk.

Update the size of the virtual hard doisk based on your requirements. Click on Apply and then click on Close.

You can now start your virtual machine again.