The kernel header cannot be found when wmwaretools is installed on centos6.

Source: Internet
Author: User
Document directory
  • Linux: VMware Tools Installation Error

FYI: http://blog.secaserver.com/2011/09/linux-vmware-tools-installation-error/

Linux: VMware Tools Installation Error

Bysecaguyon30 September 2011 · leave a comment

Yesterday, I was installing a newCentos 6ServerVMware Workstation 7To be a file server for internal usage. As usual, it is highly recommended to installVMware ToolsTo every guest operating system we installed to make sure the hardware integration will be smooth and avoid degraded performance on the virtual server.

During the installation process, I found following error:

Searching for a valid kernel header path...The path "" is not valid.Would you like to change it? [yes] What is the location of the directory of C header files that match your running kernel?

What VMware needs isKernel-HeaderAndKernel-develPackage from the same version with your current loaded kernel. You can check your loaded kernel by using following command:

$uname -r2.6.32-71.el6.x86_64
Solution 1

Solution #1 is highly recommended because it is better to update your kernel to the latest stable version provided by the repository. But you need to have downtime on this. steps as below:

1. Update the kernel:

$ yum update kernel -y

2. InstallKernel-headers, kernel-develAnd other required packages:

$ yum install kernel-headers kernel-devel gcc make -y3. Reboot the server to make sure it load to the new kernel:
$ init 64. The kernel version has been updated including the kernel-headers and kernel-devel:
$uname -r2.6.32-71.29.1.el6.x86_64$rpm -qa|grep –e kernel-headers –e kernel-develkernel-headers-2.6.32-71.29.1.el6.x86_64kernel-devel-2.6.32-71.29.1.el6.x86_64
Solution 2

Solution #2 require you to install kernel-headers and kernel-devel with your current kernel version. steps as below:

1. Install the same versionKernel-headersAndKernel-develViaYum:

$ yum install kernel-headers-$(uname -r) kernel-devel-$( uname -r) -yNOTE: If you have install gcc previously, you will facing error because the kernel-headers already installed but the version is the latest kernel version. You need to remove it first using following command:
$ yum remove kernel-headers -y2. Install required files:
$ yum install gcc make -y
3. No need to reboot the server. Just make sure the kernel, kernel-headers and kernel-devel version are same:
$ uname –r 2.6.32-71 .el6.x86_64$ rpm –qa |grep –e kernel-headers –e kernel-devel kernel-headers-2.6.32-71.el6.x86_64 kernel-devel-2.6.32-71.el6.x86_64

 

Once you have completed using one of the solution above, proceed toVMWareTools installation by following the Wizard. The installation shocould be able to detect the kernel header path at this moment.

FYI: http://blog.secaserver.com/2011/09/linux-vmware-tools-installation-error/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.