1

It asks for the newest kernel headers (3.8.0-21-generic), so I downloaded them. After pointing to the new path for the file it still does not work. I have tried many solutions but none were successful. This is my first time posting a question, so please tell me if you need more information. Thanks in advance!

I have followed [these instructions] (Unable to start VMWare Workstation after upgrade to 13.04) but "sudo ln -s ../generated/uapi/linux/version.h" yields, "ln: failed to create symbolic link ‘./utsrelease.h’: File exists". So I ran, "sudo ln -sf ../generated/uapi/linux/version.h" but it doesn't appear to do anything.


I tried https://askubuntu.com/a/296551/159739 but I get, "ln: failed to create symbolic link ‘./version.h’: File exists"


UPDATE:

Now when I try to launch VMware a pop up reads, "Before you can run VMware, several modules must be compiled and loaded into the running kernel." CANCEL/INSTALL. When I select to install it just closes.

1 Answers1

1

This solution was taken from this answer. However, that answer is still not marked as accepted, but it worked for me.

Run the following script:

#!/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.c
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"
Alaa Ali
  • 32,213