Installing VMware Tools on Kali Linux

TIP: I recommend enabling SSH first on Kali Linux, and then doing this over an SSH shell so you can copy and paste the commands. To enable SSH on Kali Linux, follow the guide on Dr. Chaos at http://www.drchaos.com/enable-ssh-on-kali-linux/

If you are using Kali Linux and trying to use it in a VM environment as a guest operating system on VMware you may run into some issues. It is recommended that you install VM Tools for VMware on Kali Linux.

Update: March 12th, 2015 

We now have sections for Kali Linux 1.10 and later and version 1.09 and prior

 

Kali Linux Version 1.10 and later 

Step 1: If you have not already done so, ensure you are using the latest version of Kali Linux.

Step 2:

The latest version of vmware-tools at this date compiles against the Kali Linux kernel, it is normal you will get several warnings. Kali Linux 1.10 and later utilizes a set of vmware-tool patches to facilitate the installation.

cd ~
apt-get install git gcc make linux-headers-$(uname -r)
git clone https://github.com/rasa/vmware-tools-patches.git
cd vmware-tools-patches
Next, mount the VMware tools ISO by clicking “Install VMware Tools” from the appropriate menu.
Once the VMware Tools ISO has been attached to the virtual machine, copy the installer to the downloadsdirectory and then run the installer script :
cd ~/vmware-tools-patches
cp /media/cdrom/VMwareTools* downloads/
./untar-and-patch-and-compile.sh

 Step 3: Reboot your system

 

Installing VMWare Tools on Kali Linux 1.09 and prior

This guide will help you install VM Tools on any installation of Kali Linux (including 64-bit ISOs). It will also allow you to use Kali Linux in VMware ESXi environments.

The first thing you need to do on Kali Linux is prep the system for VM Tools. You do so by issuing the following commands:

 

TIP: I recommend enabling SSH first on Kali Linux, and then doing this over an SSH shell so you can copy and paste the commands. To enable SSH on Kali Linux, follow the guide on Dr. Chaos at http://www.drchaos.com/enable-ssh-on-kali-linux/

Note: all commands are typed as one line in the terminal

echo cups enabled >> /usr/sbin/update-rc.d
echo vmware-tools enabled >> /usr/sbin/update-rc.d
apt-get install gcc make linux-headers-$(uname -r)

Installing VMware Tools on Kali Linux-1

Note: This is typed as one line

ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/

Installing VMware Tools on Kali Linux-2

Next, mount the VMware tools ISO by clicking “Install VMware Tools” NOTE: These steps differ depending on if you are using Mac, Windows, or ESXi.

Installing VMware Tools on Kali Linux-3

You may need to download VMWare tools for the operating system

Installing VMware Tools on Kali Linux-4

This should mount VMWare tools (virtual) CD into Kali. Next go the command line

mkdir /mnt/vmware
mount /dev/cdrom /mnt/vmware/
cp -rf /mnt/vmware/VMwareTools* /tmp/

 

Next, you will change to the /tmp directory and run the VM Tools installation script.

cd /tmp/
tar zxpf VMwareTools-*.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl

 

The last command ” ./vmware-tools-install.pl”  is to run the VM Tools installation script. Follow the onscreen instructions when you run the script and accept the defaults.

Follow the prompts for the VMware Tools installation and you are done. You can accept all the default prompts.

You are complete with the installation of VMWare Tools for Kali Linux. Reboot your system

Optional Clean-Up

Lastly, to get rid of possible VMware service errors, edit the /etc/init.d/vmware-tools script, and at around line 876, change the line that states:

IFS=.
set — `uname -r`

Installing VMware Tools on Kali Linux-7

Now replace the line with the following:

set  `uname -r|cut -d“-“ -f1`

Installing VMware Tools on Kali Linux-8

Once you have edited your file, reboot your system.
Slow Mouse Movement 

If your mouse movement is slow and sluggish in a Kali Linux VMware guest, try installing the xserver-xorg-input-vmmouse package in the Kali guest.

apt-get install xserver-xorg-input-vmmouse
Installing VMware Tools on Kali Linux-9
Reboot your system
Tags:
No Responses