Ultimate Guide: Installing Kali Linux 2024 on an External Drive with VMware 17 – Your Gateway to Portable Cybersecurity
Francesco Dergano
Founder and Chief Executive Officer at SkyDataSol | Lead Research Manager and Chief Information Security Officer for the National Security Framework of the Polar Regions
Step 1: Download and Install Necessary Software
2. Install VMware Workstation 17.6.1 by following the installation prompts.
3. Install AOMEI Partition Assistant 10.5.0 similarly.
4. Wait for the Kali Linux ISO image download to complete for later use.
5. Turn off Secure Boot in your BIOS. Please follow the steps below: Boot and press [F2] to enter BIOS. Go to [Security] tab > [Default Secure boot on] and set as [Disabled]. Go to [Save & Exit] tab > [Save Changes] and select [Yes].
Step 2: Prepare the External Drive
4. Once wiped, proceed to the next step.
Step 3: Convert Drive to GPT and Create Partitions
2. Create a new partition for Kali Linux or multiple partitions for different OS installations as desired by right clicking on the drive with your touch pad or mouse. Use the correct drive letter (e.g. D:) and format with NTFS for 64-bit compatibility. Finally click Apply and Proceed.
3. Optionally, you can defrag the partition by selecting the advanced options, but this is not strictly necessary.
4. Now Close AOMEI and go to File Explorer and select your local disk and click format before to continue with the next step.
Step 4: Configure VMware and Create a Virtual Machine
2. Click on Create a New Virtual Machine and Select Custom (advanced)
3. Select Workstation 17.5 or later and click Next.
4. Select the Kali Linux ISO file downloaded in Step 1.
5. Choose Debian 12 x64 bits as the guest operating system.
6. Name your virtual machine and select the external drive (prepared in Step 3) as the storage location.
7. Choose whether to use the entire drive or a specific partition. Optimize the virtual machine settings based on your system’s and drive specifications (I recommend to maximize capabilities based on your local computer).
领英推荐
8. Confirm space disk capacity carefully, as changing it later could impact OS efficiency. However I recommend to allocate all disk space. Click Finish to proceed, and allow VMware to create the virtual disk (this may take a while).
Note: Possible reasons for failure:
a. Steps 1, 2, or 3 were not completed as outlined.
b. In the Specify System Capacity section, try allocating 25% less space than the full disk capacity staying within the 75% usage in Maximum Disk Size.
c. Check your USB/USB-C cable and port quality, you may using a cable or a port doing energy or data transmission inefficiency. Ensure the drive remains connected throughout the process unless Windows11 asking you to reboot or restart computer.
d. If your hardware is not manufactured in China, it may use different drivers for your Windows11 OS version in your country, or you may facing factory locked OEM restrictions might apply to the the basic serial ATA drivers. As an alternative, you can use AOMEI after you done the setup via terminal of the SATA protocol decoding serial ATA using SCADA security, re-assigning a custom protocol to the components. However this would be not possible on Windows11 OS due hardware security detection mechanism. I will release an easy guide achieving this using Linux Mint OS terminal in the upcoming weeks.
Step 5: Install Kali Linux
2. Once the virtual machine BIOS mode starts, choose the Graphical Install option. DO NOT CLICK I FINISHED INSTALLING UNTIL YOU'LL BE ON THE DESKTOP!
3. Set your preferred language (e.g., English), country (e.g., United Kingdom), and keyboard layout.
4. Choose a hostname for the machine (e.g., "headquarter" or a department/organizational name).
5. Optionally, add your organization or website.
6. Enter your full name for account administration, followed by a username (e.g., "raccomandino").
8. Select the clock settings as needed if is not automatic.
9. For partition settings, choose: Guided – Use entire disk and setup encrypted LVM (recommended for added security to external drive). You may lose it and your account may be bypassed using the GRUB command line or connecting the drive to another Kali Linux computer. Next select the partition disk. Try to not go back after this point the installation could fail. Click Continue and select all files in the partition unless you haven't multiple partitions. Finally click YES.
10. Select a a strong password for your disk encryption (recommended: 12+ characters, including uppercase, lowercase, numbers, and symbols).
11. Allocate the amount of volume group to use for the system partition. Next select yes to confirm.
12. Select all environments provided by Offensive Security as required.
13. The screen in your image shows options for configuring the display manager during the installation of Kali Linux. Here’s a breakdown of each option:
Each display manager provides graphical login capabilities for the X Window System, but their compatibility with specific desktop environments, resource usage, and visual style differ. Choose based on the desktop environment you plan to use and the performance level you want. I prefer Default gdm3.
14. Install the GRUB bootloader (click YES if prompted), select the drive, and complete the installation.
15. Finally, enter your disk password followed by your account password to access the desktop, and then click on I Finished Installing.
Finished
After the installation is complete, you're all set to use Kali Linux on your external drive through VMware. Enjoy diving into cybersecurity with your setup! Remember to shut down your Kali Linux OS, close VMware Workstation, and safely eject your drive before disconnecting it.