Set up Kali Linux and Metasploitable on VirtualBox
1: Download
Extract Kali and Metasploitable to the same directory.
Inside the directory, locate the files kali-linux-2022.4-virtualbox-amd64.vdi
and Metasploitable.vmdk
, make sure you know where they are.
2: Kali Linux virtual machine
- Open VirtualBox and click
New
. - Give it a name. On
Machine Folder
select the directory you extracted Kali and Metasploitable. - In
Type
selectLinux
. - In
Version
selectDebian (64-bit)
. - Click
Next
. - Define its memory.
- Select
Create a virtual hard disk now
. - Select
VDI (VirtualBox Disk Image)
. - Select
Dynamically allocated
. - 8 GB is fine I guess...
- Click
Create
.
Now, you need to add the kali-linux-2022.4-virtualbox-amd64.vdi
to the new virtual machine:
- Right-click the new virtual machine and click
Settings
. - Go to
Storage
. - Find and click in
kali-linux-2022.4-virtualbox-amd64.vdi
belowController: SATA
. - At your right, in
Attributes
, you will find a small disk icon. Click on it! - Select
Choose/Create a Virtual Hard Disk
. - Select
kali-linux-2022.4-virtualbox-amd64.vdi
. - Click
Ok
.
3: Metasploitable virtual machine
- Open VirtualBox and click
New
. - Give it a name. On
Machine Folder
select the directory you extracted Kali and Metasploitable. - In
Type
selectLinux
. - In
Version
selectDebian (64-bit)
. - Click
Next
. - Define its memory.
- Select
Create a virtual hard disk now
. - Select
VDI (VirtualBox Disk Image)
. - Select
Dynamically allocated
. - 8 GB is fine I guess...
- Click
Create
.
Now, you need to add the Metasploitable.vmdk
to the new virtual machine:
- Right-click the new virtual machine and click
Settings
. - Go to
Storage
. - Find and click in
Metasploitable.vmdk
belowController: SATA
. - At your right, in
Attributes
, you will find a small disk icon. Click on it! - Select
Choose/Create a Virtual Hard Disk
. - Select
Metasploitable.vmdk
. - Click
Ok
.
4: Virtual machines network configuration
Don't forget to change the network config from NAT
to Bridge Adapter
on both virtual machines. Otherwise, Metasploitable won't be able to host:
- Right-click the new virtual machine and click
Settings
. - Go to
Network
. - On
Attached to
selectBridge Adapter
. - Click
Ok
.
I guess this is high cyber witchery already...