8 Replies Latest reply on Jun 6, 2012 9:25 AM by rukbat

    VMware Tools and Oracle Linux Howto


      VMware Tools and Oracle Linux Howto

      Author: Dude, 02-Jan-2012

      Last update:
      30-March-2012, UEK2 kernel, Oracle Public Yum changes 23-Mar-2012.
      31-March-2012, use kernel-uek-devel-`uname -r` to match running kernel.
      05-June-2012, added missing install argument in yum commands, step 2.
      06-June-2012, added info about extracting VMware Tools archive.

      01-Nov-2013, corrected formating errors due to last forum upgrade.


      The installation of the VMware Tools (8.8.1) under a default installation of Oracle Linux fails. The supplied vmware-install.pl installation script causes several errors:

      Searching for a valid kernel header path...
      The path "" is not a valid path to the 2.6.32-200.13.1.el5uek kernel headers.
      Searching for GCC...
      The path "" is not valid path to the gcc binary.
      No module ehci-hcd found for kernel 2.6.32-200.13.1.el5uek, aborting.
      ERROR: "/sbin/mkinitrd -f --with=vmxnet3 --with=vmw_pvscsi --with=vmxnet

      The following was tested under a default installation of Oracle Linux 5.7 (x86_64) and VMware Fusion 4.1 (MacOSX). The instructions should also work or be helpful for other VMware platforms and versions.

      1) Follow the instructions at http://public-yum.oracle.com and enable the following software repositories:

      - [ol5_u7_base] (should match your current version)
      - [el5_addons] (for kernel-uek-headers)


      As of 23-March-2012, the Oracle public yum repository allows to enable free updates [el5_latest] and UEK2 kernel [ol5_UEK_latest] without a subscription. You don't need to enable any [xxx_xx_base] channels.

      2) Install additional required software:

      yum -y install gcc
      yum -y install kernel-uek-devel-`uname -r`
      yum -y install kernel-uek-headers-`uname -r`


      Under the Oracle UEK2 kernel 2.6.39-100.5.1 the installation of the "kernel-uek-headers" package is obsolete.

      3) Patch the bin/vmware-config-tools.pl installation script:

      Extract the VMware Tools archive:

      Go to Virtual Machine > Install VMware Tools (or VM > Install VMware Tools).

      su - root
      umount /dev/cdrom
      mount /dev/cdrom /mnt/
      ls /mnt
      tar xzvf /mnt/VMwareTools-x.x.x-xxxx.tar.gz -C /tmp/
      eject /dev/cdrom

      The VMware installation script does not recognize the build-in USB drivers under Oracle Linux. Unfortunately, the VMware configuration script is 14914 lines of code. You can use the following command to modify the +vmware-config-tools.pl+ script to work-around the problem:


      This is the vmware-config-tools.pl script inside the bin directory of vmware-tools-distrib

      cd /tmp/vmware-tools-distrib
      cd bin

      Copy and paste the following block of code exactly as shown to the Linux command prompt:

      sed -i "s/\$content, \$image_file, \$kernRel/\$content,\
      '--builtin=ehci-hcd --builtin=ohci-hcd --builtin=uhci-hcd', \
      \$image_file, \$kernRel/g" \

      4) Run the VMware Tools installer:

      cd /tmp/vmware-tools-distrib

      When prompted, simply hit the Return key, but you probably want to set
      a lower resolution when prompted for X, e.g. 1280x800

      Good luck!