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 Folderselect the directory you extracted Kali and Metasploitable. - In
TypeselectLinux. - In
VersionselectDebian (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.vdibelowController: 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 Folderselect the directory you extracted Kali and Metasploitable. - In
TypeselectLinux. - In
VersionselectDebian (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.vmdkbelowController: 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 toselectBridge Adapter. - Click
Ok.
I guess this is high cyber witchery already...
