vmhgfs module not compilable for VMware Tools 9.9.0 (Fusion7.1) after Ubuntu Linux kernel update to 3.13.0-46-generic?

Solution 1:

The tools can be patched manually. In vmhgfs.tar, inode.c d_alias must be changed to d_u.d_alias , put back to the tar and then recompile tools.

A script that does that (tested on 32-bit ubuntu 14.04, vmware workstation 11.1 on a windows host) is here:

#!/bin/sh -x
cd /usr/lib/vmware-tools/modules/source
tar xf vmhgfs.tar
grep -q d_u.d_alias vmhgfs-only/inode.c && echo "already patched" && exit 0
sed -i -e s/d_alias/d_u.d_alias/ vmhgfs-only/inode.c
cp -p vmhgfs.tar vmhgfs.tar.orig
tar cf vmhgfs.tar vmhgfs-only
vmware-config-tools.pl -d -m

NOTE: this makes the tools incompatible with older kernel versions, i.e. 3.13.0-45.

Solution 2:

I had the same experience after updating to kernel 3.13.0-46. According to vmware-tools-patches, there isn't a patch available.

The patches do not yet apply successfully with the following Linux kernels:

3.13.x

I fixed vmhgfs by:

  1. Reverting to kernel version 3.13.0-45, either by booting into an older version or rolling back your kernel upgrade then
  2. reinstall vmware-tools.