Today my ubuntu 14 updated its kernel to 3.16 then VMware shared folder disappeared in /mnt/hgfs. I tried to recompile vmhgfs modules with and reinstall vmware-tools, but both failed with error messages:

from /tmp/modconfig-qqjwHn/vmhgfs-only/inode.c:29:
/tmp/modconfig-qqjwHn/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
include/linux/kernel.h:793:27: error: ‘struct dentry’ has no member named ‘d_alias’

This bug has already been reported to VMware. Before VMware release official patch, we can manually fix this problem.

  1. Uncompress your VMwareTools-*\**-*****.tar.gz (eg. VMwareTools-9.9.2-2496486.tar.gz)

  2. cd YOURPATH/vmware-tools-distrib/lib/modules/source/

  3. tar xvf vmhgfs.tar

  4. cd vmhgfs-only

  5. substitute d_alias with d_u.d_alias in inode.c

  6. tar cvf vmhgfs.tar vmhgfs-only

Then re-run ./, everything should be fine now.