How to install vmware tools?
I encountered this problem when upgrading from 12.10 to 13.04. No matter what I did, the VMware Tools installer couldn't seem to find the headers. For the record, here's how I installed the headers:
sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)
Turns out, the installer is looking for the version.h
file in under [kernelsource path]/include/linux/version.h
, it's not there. The location of version.h
is [kernelsource path]include/generated/uapi/linux/version.h
The solution is a symlink:
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
After creating this symlink, I was able to run the VMware Tools installer without a problem.
sudo apt-get install build-essential linux-headers-$(uname -r)
& then install VM-WARE-TOOLS
Go to vmware "VM" tab to install vmware tools
Plz Keep it in mind when you update Ubuntu ( & the kernel version is changed ) u need to run
vmware-config-tools.pl
every time only when kernel is changed
1) Use Install VMWare Tools option in VMWare Client to attach media
2) Update the server
sudo apt-get update
sudo apt-get upgrade
3) Create the mount point
sudo mkdir -p /media/cdrom
4) Mount the ISO
sudo mount /dev/cdrom /media/cdrom
5) Change Directory
cd /media/cdrom
6) Copy the tar file to your /tmp directory
sudo cp VM*.tar.gz /tmp
7) Install Build tools if necessary
sudo apt-get install linux-headers-server build-essential
(for desktop is "sudo apt-get install linux-headers-$(uname -r) build-essential")
8) Change Directory
cd /tmp
9) Unmount the ISO
sudo umount /media/cdrom
10) Expand the tar
sudo tar xzvf VM*.tar.gz
11) Change Directory
cd vmware-tools-distrib
12) Create a special directory
sudo mkdir /usr/lib64
13) Run the Install Script
sudo ./vmware-install.pl -d
14) Reboot
sudo reboot
source