July 28, 2013

Installing VMWare Player / Workstation on Kali Linux

This guide is for installing VMware Player or Workstation on Kali Linux. Although this is a simple task, I faced an issue with the kernel headers when launching VMware Player, hence this blog post.

I did these steps with VMware Player but same steps can be followed for Workstation.

1. First of all, download the VMware Player from https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/5_0

2. Make the downloaded file executable by navigating to the directory where you downloaded the bundle and execute:
chmod +x VMware-Player-5.0.1-894247.x86_64.bundle

3. Open Terminal and install the packages needed by VMware Player
apt-get install build-essential linux-headers-`uname -r`
This will install the kernel headers of your current Linux kernel version.

4.After packages are installed, start the VMware Player installer

This is pretty much it.

5.Launch the VMware Player by navigating to it from the main menu.

At this stage, I got an error saying that "Kernel headers for kernel version 3.7-trunk-amd64 could not be found."
That was strange, because I had the kernel headers for this version already installed.

After a little looking around, I found the solution.
To solve this issue, do the following steps:

cd /lib/modules/$(uname -r)/build/include/linux 
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h

Hopefully someone will find this solution useful.