VMware 15 Pro is the latest virtualization program from VMware. You can buy the program after 30 days free use of VMware 15 Pro. If you don’t want to purchase VM Workstation 15, you can use VM Workstation Player 15 Pro, the free version of VMware.
Kali Linux is a Debian-based Linux distribution developed by Defensive Offensive. Kali Linux is a Linux distribution preferred by people who give importance to network security as it provides many free tools within itself.
By installing VMware 15 Pro on Kali Linux, you can create new VMs and install Windows, Linuxand even macOSoperating systems on them. If you are a Linux user and sometimes need a Windows operating system, using VMware 15 Pro is the most logical way.
In our previous articles, we have installed VM Workstation on other Linux distributions.
After downloading the virtualization software, follow these steps in order to setup VMware Workstation 15 on Kali.
To setup VM softare, first check and update the sources.list. To update Linux sources.list, open the Terminal and execute the nano /etc/apt/sources.list command.
Add Kali Linux official repositories into the Sources.list and press Ctrl + X / Y / Enter to save the file.
To update repositories, follow the command apt-get update in Terminal.
You need to setup the dependent files needed to run the virtual machine program on Kali Linux. To build dkms in kali, execute apt-get install dkms build-essential.
apt-get install dkms build-essential
To run the VMware-Workstation-Full-15.0.0-10134415.x86_64.bundle file that you downloaded on your computer, perform the following commands in the Terminal, respectively.
chmod +x VMware-Workstation-Full-15.0.4-12990004.x86_64.bundle
After start installing Workstation, accept the license agreement as follows and click Next.
Accept the OVF Tool component for Linux license agreement and click Next.
If you want to check for updates for VM Workstation, check the Yes option and click Next.
You can support by joining the customer experience program. To do this, select Yes and click Next.
Type your username to connect to VM software and click Next.
Once you have selected the location where you want to store the virtual machines, click Next.
Select the port number you will use to connect to the Workstation Server and click Next.
If you have purchased VM Workstation for Linux, enter your license key in this window and click Next.
To setup VMware on Kali 2019, click Install.
Wait while the program is installed.
After installing VM Workstation, type vmwarein Terminal and press Enter to run the program. If you encounter an error like in the image below, click OK button and continue.
C header file matching your running kernel were not found. Refer to your distribution's documentation for installation instructions.
VM Workstation did not work because of the Kernel Headers 4.15.0-kali2-amd64 error in the VM Workstation installation! Please go to the next step to resolve the Kernel Headers 4.15.0-kali2-amd64 error.
Click here to download the dependent packages of software. To resolve the Kernel Headers 4.15.0-kali2-amd64 error, open the Terminal and execute the command dpkg -i linux-headers-4.15.0-kali2.amd.deb.
dpkg -i linux-headers-4.15.0-kali2.amd.deb
As you can see from the image below, linux-headers-4.15.0-kali2.amdrequires the installation of linux-headers-4.15.0-kali2-common and linux-kbuild-4.15 packages.
Run the VM sofware again using the Terminal and review the error.
If necessary packages are not installed, the necessary services for VMware will not be started.
Run the following commands in Terminal and install the dependent packages.