![Web Penetration Testing with Kali Linux(Third Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/149/36700149/b_36700149.jpg)
Creating the virtual machine
Start by opening VirtualBox and creating a new virtual machine. Select a name for it (we will use Kali-Linux), and set Linux as the type and Debian (64-bit) as the version. If you selected a 32-bit ISO, change the version for Debian (32-bit). Then, click on Next:
![](https://epubservercos.yuewen.com/45164D/19470396608902306/epubprivate/OEBPS/Images/0dcad4d7-3491-445f-b053-c6b82b3a2f00.png?sign=1738992651-LJz5a954FEw9pR6sSLSbGb9eN7rnBCUJ-0-6c47fc0af3dfb55f5a8937a360bce70a)
In the next screen that appears, select the amount of memory reserved for the virtual machine. Kali Linux can run with as low as 1 GB of RAM; however, the recommended setting for a virtual machine is 2-4 GB. We will set 2 GB for our machine. Remember that you will require memory in your host computer to run other programs and maybe other virtual machines:
![](https://epubservercos.yuewen.com/45164D/19470396608902306/epubprivate/OEBPS/Images/356eacb7-e5c5-45f1-8988-a717756aab49.png?sign=1738992651-Io16Q7LDeyEZIkS5LAcfGruiZDI1pOjX-0-b3f6758810fa9f1a0ac840b9ae321f3d)
In the next step, we will create a hard disk for our virtual machine. Select Create a virtual hard disk now and click on Create. On the next screen, let the type remain as VDI (VirtualBox Disk Image) and Dynamically allocated. Then, select the filename and path; you can leave that as it is. Last, select the disk size. We will use 40 GB. A freshly installed Kali Linux uses 25 GB. Select the disk size, and click on Create:
![](https://epubservercos.yuewen.com/45164D/19470396608902306/epubprivate/OEBPS/Images/8c7fc725-8c13-4d37-90fb-815828c9ad85.png?sign=1738992651-pejKIUB4P2Qu19FLGHRq6fwAYckTGDUG-0-85edc6dd3fd8541549ad26618d2f1dee)