VMware Tools script does not recognize the version of the kernel headers in Ubuntu guests
book
Article ID: 344072
calendar_today
Updated On:
Products
VMware
VMware vCenter Server
VMware vSphere ESXi
Show More
Show Less
Issue/Introduction
Symptoms:
The /usr/bin/vmware-config.pl script does not recognize the version of Ubuntu kernel headers. When installing VMware Tools, the script prompts for where the C header files are.
Environment
VMware ESXi 4.1.x Embedded VMware View Manager 4.5.x VMware ESXi 4.0.x Installable VMware ESX 4.0.x VMware View Client 4.5.x VMware View Client 4.6.x VMware vCenter Server 4.1.x VMware Server 2.0.x (Linux) VMware View Manager 4.6.x VMware ESX 4.1.x VMware ESXi 4.0.x Embedded VMware ESXi 4.1.x Installable VMware vCenter Server 4.0.x
Resolution
To resolve this issue, install VMware Tools on a Ubuntu guest operating system. To install VMware Tools on a Ubuntu guest operating system:
Take a backup of the /usr/bin/vmware-config-tools.pl script by running this command:$cp /usr/bin/vmware-config-tools.pl /tmp Modify the permissions for /usr/bin/vmware-config-tools.pl by running this command:$cp /usr/bin/vmware-config-tools.pl <to-present-working-directory> $sudo chmod 755 vmware-config-tools.pl Using a text editor, such as vi or vim, edit the /usr/bin/vmware-config-tools.pl script:$vi vmware-config-tools.pl Set the line numbers for the entire file running this command::set nu Go to line 2909 where you see ($header_version_uts =~ s/^$pattern \"([^\"]*)\".*$/$1/;. Below line 2909, enter this line:$header_version_uts=$gSystem{'uts_release'}; Save the file running this command::wq Change the permissions for the present-working-directory /vmware-config-tools.pl script running this command:$sudo chmod 555 vmware-config-tools.pl Move the file to /usr/bin , by running this command:$sudo mv vmware-config-tools.pl /usr/bin/vmware-config-tools.pl Create a softlink for (the default path of C header files) /usr/src/linux/include to point to the actual location of the header files related to the latest kernel version:$sudo ln –s /usr/src/linux /usr/src/linux-headers-$(uname -r) Run /usr/bin/vmware-config-tools.pl again to install VMware Tools successfully. Open the GUI interface for the VMware Tools by running this command:$/usr/bin/vmware-toolbox
Feedback
thumb_up
Yes
thumb_down
No