VMware-Workstation 9 Patch for Linux Ubuntu Raring

The Tip Present How-to Patch the VMware-Workstation 9 Installation on Linux Ubuntu 13.04 Raring.

Without this Patch is Not Plausible to Compile the Needed Modules and Successfully Running the VMware-Workstation 9.0 on Linux Ubuntu Raring Family!

Then Patch has Been Tested for Ubuntu Kernels Up to 3.8.29…

Originally Posted from Vincent on askubuntu.com.

  1. Create the Patch:
    nano patch.sh

    Inserts:

    #!/bin/bash
    if [[ $UID != 0 ]]; then
        echo "Please run this script with sudo:"
        echo "sudo $0 $*"
        exit 1
    fi
    
    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
    
    cd /usr/lib/vmware/modules/source
    sudo tar -xf vmci.tar
    cd vmci-only/linux
    sudo sed '127s/.*/   .remove = vmci_remove_device,/' driver.c > driver.c.tmp
    mv driver.c.tmp driver.c
    sudo sed '1753s/.*/static int/' driver.c > driver.c.tmp
    mv driver.c.tmp driver.ca
    sudo sed '1981s/.*/static void/' driver.c > driver.c.tmp
    mv driver.c.tmp driver.c
    cd ../..
    sudo tar -cf vmci.tar vmci-only/
    sudo rm vmci-only/ -Rf
    sudo vmware-modconfig --console --install-all
    sudo rm /usr/src/linux-headers-$(uname -r)/include/linux/version.h
    echo "Done"
    

    Ctrl+x to Save & Exit.

  2. Execute the Patch
    chmod +x patch.sh
    sudo ./patch.sh