Ubuntu: What is the path to the kernel headers so I can install vmware?


I installed the VMware bundle on my Ubuntu 11.04 successfully but when I open it it gives me this window

enter image description here

and I don't know the path to this C headers.


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   

After adding the symlink, the path is /usr/src/linux-headers-$(uname -r)/include (Thanks @Kariem!)


Below commands are very helpful for you:

Step 1 : Ctrl + Alt + T

Step 2 : sudo apt-get install linux-headers-$(uname -r)

Step 3 : The path to the kernel headers is then /usr/src/linux-headers-$(uname -r)/include


Before installing Vmware Workstation you need to install build-essential and linux headers

   sudo apt-get install build-essential linux-headers-$(uname -r)  

and then

 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  

Done thats it, install Vmware Workstation now

 path to vm# sh Vm***.bundle  


There are a few files in locations that the installer doesn't expect, I run this and it works:

ifrantz@ifrantz:~$ cat ~/update_version.sh   #!/bin/bash    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   


My first guess is that you haven't installed the headers. You need to install the appropriate linux-headers package. Most likely, you need to install linux-headers-generic. However, if if you're running some kernel other than linux-generic, install the linux-headers package for that kernel.

If you've already installed the headers, they should be in /usr/src.


Problem can be solved in two steps, after installing vmware workstation 9.X.X (in terminal):

  1. sudo apt-get install gcc

  2. sudo vmware-modconfig --console --install-all --appname="VMware Player" --icon="vmware-player"



sudo apt-get install linux-headers-generic


Had the same issue, I was running kernel 3.2.0-29 but only had linux-headers-3.2.0-35 in /usr/src/

user@ubuntu:/usr/src$ ls -l  drwxr-xr-x 24 root root 4096 Jan  5 11:17 linux-headers-3.2.0-35  drwxr-xr-x  7 root root 4096 Jan  5 11:17 linux-headers-3.2.0-35-generic    user@ubuntu:/usr/src/linux-headers-3.2.0-35/include$ uname -a    Linux ubuntu 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_6                                                                                4 x86_64 x86_64 GNU/Linux    user@ubuntu:/usr/src$ sudo apt-get install linux-headers-3.2.0-29-generic    user@ubuntu:/usr/src/$ cd /tmp/vmware-tools-distrib  user@ubuntu:/tmp/vmware-tools-distrib$ sudo ./vmware-install.pl  <kept hitting enter>    Enjoy, --the VMware team    done and done  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »