Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: VMware cannot find linux headers in a system with a just-compiled kernel

  1. #1
    Join Date
    Jun 2006
    Location
    Grenoble, France
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    VMware cannot find linux headers in a system with a just-compiled kernel

    I've installed VMware 7.0.0 in Ubuntu 10.04. Then I've upgraded Ubuntu to 10.10 (the beta release) and I could not compile the vmware modules any more since it complains it cannot find the linux headers.

    My first attempt was to check I have the headers installed and just in case to make a symlink from the correct headers to /usr/src/linux. It doesn't work. So, I just uninstalled VMware and installed it again. Same result. Then I installed the ubuntu package with the sources and compiled the kernel by myself, again I pointed /usr/src/linux to the correct sources. Same result, VMware still complains about not finding the headers. I reinstalled VMware again with no luck.

    What could be the problem? I am using kernel sources 2.6.35 (ubuntu version) and VMware version 7.0.0.

    Cheers.

  2. #2
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,435
    Distro
    Ubuntu Development Release

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    I think VMware is not keeping up with the way the kernel is changing. If you go here you might be able to fix your issue:

    https://bbs.archlinux.org/viewtopic.php?pid=815476
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q30X Intel i5-4670K 4.0GHz, SSDs, 16G RAM | Dell laptop E1505n, netbook 10n
    Oracle VBox w/ WinXP Pro running Xara Designer, PaintShopPro, and InDesign CS.

  3. #3
    Join Date
    Jun 2006
    Location
    Grenoble, France
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    Thanks for you answer. However it didn't work. I guess it could be because the patch is for vmware 7.1.1 and I have vmware 7.0.0. However, it didn't complain about not being able to apply the patch. But at the end I got the same error:

    janus@katu /tmp $ sudo vmware-modconfig --console --install-all
    gcc and kernel headers must be installed

    and if I just run vmware I get a window saying that it cannot find the kernel headers and asking me to point it out (which is useless).

  4. #4
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,435
    Distro
    Ubuntu Development Release

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    You do have the normal utilities, like gcc, installed?
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q30X Intel i5-4670K 4.0GHz, SSDs, 16G RAM | Dell laptop E1505n, netbook 10n
    Oracle VBox w/ WinXP Pro running Xara Designer, PaintShopPro, and InDesign CS.

  5. #5
    Join Date
    Jun 2006
    Location
    Grenoble, France
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    Quote Originally Posted by fjgaude View Post
    You do have the normal utilities, like gcc, installed?
    Yes, I do. I guess the problem shouldn't be in that direction, since I just compiled the kernel (i.e. all the tools to compile the modules are there), however, keep shooting, probably there is something I've forgot.

  6. #6
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,435
    Distro
    Ubuntu Development Release

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    I tell you, things have been changing so fast these days... The latest updates to Ubuntu x64, 10.04 has caused the latest update to VMware Player 3.1.2 to not work, and even 3.1.1 doesn't any longer work... we have wait and see what comes out of VMware or what patch may come from this forum... sorry!
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q30X Intel i5-4670K 4.0GHz, SSDs, 16G RAM | Dell laptop E1505n, netbook 10n
    Oracle VBox w/ WinXP Pro running Xara Designer, PaintShopPro, and InDesign CS.

  7. #7
    Join Date
    Jun 2006
    Location
    Grenoble, France
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    Ok. Thanks! Will see if I can get VMware 7.1.1 to try that patch.

    Cheers.

  8. #8
    Join Date
    Apr 2009
    Beans
    52

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    Every kernel release has it's own set of kernel headers.
    Whenever you upgrade your kernel, you will need to download the "new" kernel headers and recompile the vmware modules to work with the new kernel/kernel headers.

    If you upgraded from ubuntu 10.04 to ubuntu 10.10, you will have the new kernel...and the "old" kernel headers, possibly the old gcc files as well.
    VMware will not compile properly this way.

    So...install the new kernel headers and gcc:
    sudo apt-get install linux-headers-$(uname -r) gcc

    Then try to re-compile the VMware modules:
    sudo vmware-modconfig --console --install-all

    Now...you can also install the dkms framework (Dymanic Kernel Module Support) to automatically install the the Linux Header files automatically everytime a new kernel is installed.

    sudo apt-get install linux-headers-$(uname -r) gcc dkms

    This way, all you have to do after a kernel update is re-compile the vmware modules with the "sudo vmware-modconfig --console --install-all" command.

    Also...VMware Workstation 7.0.0 is quite buggy and has known issues with compilation errors.
    They fixed it with 7.1...and they recently released 7.1.2 .
    I would try to install the newest version as it is free to upgrade from 7.0 to 7.1.2 "if" you have a legal version of VMware Workstation.

    Hope this helps...good luck.

    Last edited by TJet1.8; October 1st, 2010 at 03:05 AM. Reason: Forgot to add last comment...

  9. #9
    Join Date
    Apr 2009
    Location
    Bangalore, India
    Beans
    31
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    Quote Originally Posted by fjgaude View Post
    I think VMware is not keeping up with the way the kernel is changing. If you go here you might be able to fix your issue:

    https://bbs.archlinux.org/viewtopic.php?pid=815476
    I am facing the same problem after upgrading to ubuntu 10.10 ... I have done all the steps mentioned in the above link but no hope ... I am getting the same error ... any help??

  10. #10
    Join Date
    Sep 2008
    Beans
    23

    Re: VMware cannot find linux headers in a system with a just-compiled kernel

    Just spent the last three hours with this issue but the good news, I've solved it (for me, at least). Here's what I did:

    1. sudo apt-get install linux-headers-`uname -r` --reinstall
    2. ln -s /usr/src/linux-headers-`uname -r`/include/generated/autoconf.h /usr/src/linux-headers-`uname -r`/include/linux/autoconf.h
    3. ln -s /usr/src/linux-headers-`uname -r`/include/generated/utsrelease.h /usr/src/linux-headers-`uname -r`/include/linux/utsrelease.h
    4. Try running the vmware-tools install script again


    I know this isn't presented elegantly but I am so tired; just wanted to get this on here for all those struggling.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •