Fix Vmware tools ” kernel header path is not valid ” error

UPDATE (2015-05-13): Confirming that the following approach works for Lubuntu versions 12.10, 14.04 and 14.10 and Linux Mint 15 and 17.

Today I wanted to install VMware tools in a Linux Mint 15 and in a Lubuntu virtual machine. I followed the standard procedure as it is described in this VMWare knowledge base article. After setting gcc path I received the following error:

run vmware-config-tools.pl, got same error message:**Searching for a valid kernel header path... The path "" is not valid. Would you like to change it?

After an hour of searching and trying numerous solutions I found the solution
in this AskUbuntu answer
.So before executing sudo ./vmware-install.pl follow these steps:

  1. Download linux headers using the command
    sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)
    
  2. Create a symbolic link to version.h file
    The vmware tools 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

    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
    

Now you are able to install VMware tools without a problem! Good luck!

Advertisements

About cmanios

programming
This entry was posted in Linux, Mint, Ubuntu, Virtualisation, vmware and tagged , , , , , , , , . Bookmark the permalink.

24 Responses to Fix Vmware tools ” kernel header path is not valid ” error

  1. ioan says:

    I think creating the symbolic link is not needed. The build-essential package was the only pre-requisite in my case.

  2. Paco says:

    Works like a charm. Thank you very much!!!

  3. Asami Konno says:

    Wow, and people wonder why Linux isn’t more popular.

  4. Arnold Schwarzenigger says:

    Excellent, quick and valid solution. Clear and concise. Much appreciated. BIg ups!

  5. dc says:

    Perfect…. works for me! Thanks

  6. daddy says:

    awesome

  7. Guest says:

    Thank you very much!

  8. Peter says:

    ioan is right, but thanks anyway!

  9. pravin says:

    nice it worked for me…thanks a lot

  10. Benito says:

    perfect ! thanks for your help with the symbolic link.

  11. foodbaby says:

    Thanks, much appreciated work

  12. Lucas Gorski says:

    poop! yes, i wish linux were more popular but i also benefit from its obscurity. people at work are “wowed” when i tell them that i run linux at home. yes, i’m kind of a dick but i’m a happy dick!

  13. markus says:

    You’re the best!!!!
    Your instruction works like oil for vmware

  14. Kiwi says:

    headers installed properly, symlink created, but the same error
    doesnt work for me

  15. melk says:

    Thanks you guy! It works perfectly

  16. Joeri says:

    Thanks! worked for me on Debian 7 – 64bit. VMWare workstation 10.
    Didn’t had to make the symbolic link 🙂

  17. Jagdish N says:

    Thanks bro.

  18. Gustavo says:

    Thanks! Perfect!

  19. Ngux says:

    I got :
    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
    ln: failed to create symbolic link `/usr/src/linux-headers-3.18.0-kali3-686-pae/include/linux/version.h’: No such file or directory

    What can I do ? Thanx

    • cmanios says:

      Hello Ngux!

      I have not tested that solution in Kali Linux. Your error tells me that you may had mistakenly put LINK_NAME as TARGET in your ln -s command, because it tries to find the link which you want to create and normally does not exist.

      Hope that helps you,
      Cheers!

  20. JiriS says:

    You are lifesaver! Thanks very much sir!

  21. linuxbeginner says:

    thanks a ton!

  22. linuxfan says:

    thank you! this worked perfect for me.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s