Tuesday 16 June 2015

FIXED: VMware Workstation Shared Folders don't work

The current release of VMware Tools fails to compile its Shared Folders (HGFS) module on Ubuntu 14.04 guest VMs.

It seems that VMware has failed to keep their code up-to-date with routine updates to the Linux kernel for some months.

1. Take a snapshot of your VM guest in case step 2 goes wrong...
2. Patch the VMware Tools source code in your VM guest...

#!/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

This works for VMware Workstation 11.1.0 build-2496824 with the 3.16.0-41-generic kernel on Ubuntu 14.04 LTS x86_64.

Sources: https://github.com/rasa/vmware-tools-patches

No comments:

Post a Comment

Spammers: please stop wasting my time. All comments are moderated before publication.