Skip to content

Instantly share code, notes, and snippets.

@kernelsmith
Last active January 14, 2016 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kernelsmith/14c6adcbe1118333f9b2 to your computer and use it in GitHub Desktop.
Save kernelsmith/14c6adcbe1118333f9b2 to your computer and use it in GitHub Desktop.
vmware tools problems such as mounting shares and kernel patches

Restart vmware tools services

  • restart the services so you can see if any fail

sudo /etc/vmware-tools/services.sh restart

  • if failure, you can optionally check which services are actually still running

sudo /etc/vmware-tools/services.sh status

  • but you'll want to rerun the vmware config script which will recompile kernel mods

sudo /usr/bin/vmware-config-tools.pl

  • usually if this fails it's because of 1 of 2 reasons

Reason #1: kernel headers

  • can't find kernel headers. The script will tell you pretty blatantly. this happens often after you upgrade the kernel, or fresh install
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install build-essential linux-headers-$(uname -r)
  • if you re-run the script it should work, on some systems you may need to:
  • 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
  • which creates a soft link. Note that's a 1-line command continued on a second line

Reason #2: vmware-tools needs to be patched

  • If #1 isn't the problem, it's usually a problem w/the kernel being "more" up to date than vmware-tools.
  • if you are running open-vm-tools, hopefully the apt-get upgrade fixed you up
  • you can check if you are using it by doing

apt-cache policy open-vm-tools

  • if you get "Installed (none)" then you don't seem to be using it
  • in this case, you are using vmware-tools from vmware, which are continuously behind kernel upgrades, so much so that someone created a git repo for the patches and an easy way of applying them, just do what it says at
  • https://github.com/rasa/vmware-tools-patches
@kernelsmith
Copy link
Author

just cuz I keep having to look this stuff up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment