![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=1738847505-1zIr4bkFM7g3YljBGlMCfPemIAz3ev70-0-303d5d9177162f8fdc9feeb1d42bd9b6)
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=1738847505-EkYGWCFYpjwOPiJqUTEsWUCdthtYwm4M-0-b4ad08c039a94cb046ff778f0f06df62)
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=1738847505-UXgLdiOmjz5vUibyQFI2VJNNh2U248eK-0-7db57b22ae2c9f0e6d64ead6ad0571ae)