Ubuntu – How to install vmware tools

software installationvmware-tools

I installed my Ubuntu in vmware, no I need install vmware tools, I got error:

Searching for a valid kernel header path…
The path "" is not valid.
Would you like to change it?[yes]

In CentOS, I run the following command to resolve this issue:

yum install gcc-c++
yum install kernel-devel
yum install kernel-headers
yum -y update kernel

But I don't know how to do in Ubuntu. Please help.

Update
I have tried the following command but nothing changed,still got error:

Searching for a valid kernel header path…
The path "" is not valid.
Would you like to change it?[yes]

  • sudo apt-get update
  • sudo-get install build-essential linux-header-$(uname -r)
  • sudo ./vmware-uninstall-tools.pl
  • sudo ./vmware-config-tools.pl
  • sudo ./vmware-install.pl

Issue Changed:

Run sudo ./vmware-uninstall-tools.pl, and delete the folder of /etc/vmware-tools
then, run sudo ./vmware-install.pl
Now I can successfully install vmware-tool.After restart, I can see folder of /mnt/hgfs, but can't see my shared folder.

Best Answer

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.

Related Question