Post

Building a CyberSecurity Home Lab with Proxmox: Part 2 - Kali Linux Setup

A Guide on Building a Cybersecurity Home Lab using Proxmox

Building a CyberSecurity Home Lab with Proxmox: Part 2 - Kali Linux Setup

title-banner

Banner Background by AndreaCharlesta

Welcome back to the second part! I apologize for the delay, the christmas season has brought a cold and busy shopping for gifts. Lets jump right in with installing Kali Linux. Once Kali Linux is installed we will start configuring the pfSense Firewall through the web interface which is alot better to configure rather than doing it through the actual pfSense VM.

Downloading Kali Linux

There are two types of flavors of Kali Linux:

  • Kali Purple: I call it the SOC In-A-Box that has tools more orientated towards defensive purposes
  • Kali Linux: Standard kali linux orientated towards offensive purposes

For the purpose of the lab, I will be downloading Kali Purple but you are more than welcome to choose either and the set up will be slightly different and both will do everything you need.

kali-version

Latest version of Kali Linux: 2024.3a Links:
Get Kali Purple
Get Kali Linux

Once you have picked your flavor of choice. Go ahead and upload this to your ISO image storage. Refer to the previous post on how to upload it.

Kali Linux VM Creation

The process is similar to when we created the pfSense VM. Minor changes to the ram and memory.

kali-1

Lets create the VM. Give it a name and Hit Next

kali-2

Let’s select our kali linux iso image.

kali-3

For the system tab, leave everything default and hit next. On the Disks tab select your Storage and Size I did 100GB to give me space to download extra tools if needed.

kali-4

Single core is enough but if you can I would give it 2 just in case.

kali-5

I gave mine 8GB of Memory because I have 64GB but it will do fine with 4GB (4096 MiB).

kali-6

For our network interface, give it vmbr1 which is our Lab LAN

kali-7

Confirm everything looks good and click Finish.

Kali Linux Installation

Once the VM is created and boot it up and let it initialize until you see the screen below.

kali-8

Press enter on Graphical Install.

kali-9

kali-10

kali-11

Select your language, location, and keyboard layout. Straight forward stuff.

kali-12

The hostname is used to identify the kali machine on the network. I usually leave it as kali but you can name it anything you like.

kali-13

This won’t apply to you probably. Leave it blank.

kali-14

Enter your name to create your user account.

kali-15

Enter your username for the home directory.

kali-16

Go ahead and give it a memorable but strong password.

kali-17

Set your time zone.

kali-18

Use Guided- use entire disk and click continue.

kali-19

Select the sda drive and click continue.

kali-20

Select All files in one partition then Continue.

kali-21

Select Finish partitioning and write changes to disk and click contiune.

kali-22

Select Yes to Write Changes to disks? and hit Continue. It will start installing so you can take a small break here maybe grab a snack or something.

kali-23

Once it has finished, it will ask you to select a desktop environment and default tools. Xfce is kali’s default environment and it standard. Gnome is a step up and visually appealing while still being lightweight. KDE Plasma is the top trim with all the visual features but it does take up more resources and would recommend to dedicate at least 2 cores and 4GB RAM core to keep it running smoothly. I chose KDE Plasma because I have the resources to spare. It does not matter which desktop environment you choose it’s all the same.

Leave the tools all checked as default.

kali-24

Select Yes

kali-25

Select /dev/sda and hit Continue. Hit Continue on the next window to reboot.

kali-26

Stuck on Reboot
If the reboot gets stuck. Right click the VM on the proxmox menu and click Stop .This will force shutdown the vm and start it up. kali-27

Reboot your system and it will take you to the login screen. Enter the password you created earlier.

kali-28 kali-29

Open up terminal and run ip a and verify kali has an IP from DHCP server we setup in the last part.

kali-31 Before anything is done, let’s run updates first:

1
sudo apt update && sudo apt upgrade && sudo apt autoremove

It will prompt for your password and if you want to continue. This might take a while, so perfect time for a snack. This command will grab the latest updates/upgrades and apply them to kali. Afterwards it will then clean up the unused packages.

Clean Up

We are going to clean up the kali VM. After shutting down navigate to your VM and Navigate to Hardware.

cleanup

Select CD/DVD Drive and click Remove. This will remove the ISO image from the VM as it is no longer needed.

Keep an eye out for the next part where we will start configuring the Firewall through the pfSense Web interface.

This post is licensed under CC BY 4.0 by the author.