Sharing a folder between Windows VMWare workstation host & Ubuntu guest

So I lost a few hours of my life today trying to set up a folder share between a Windows 7 host machine running VMWare workstation 11.0 and an Ubuntu guest machine.
I went through the following steps  to link a new created shared windows folder .

After restarting the VM I ran the default wmware-config tools, accepting all the defaults

$sudo vmware-config-tools.pl

and ended up with the following compile time error from the vmhgfs module

“The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution’s installation CD.
[ Press Enter key to continue ] “

After a lot hunting around I finally discovered that this was a known problem with older versions VMWares tooling , not sure how I managed  to recreate it but for what its worth here are the steps to fix the problem

(1)Ensure that latest Workstation 11 is installed.
(2)Uninstall open-vm-tools

$sudo apt-get remove open-vm-tools

(3) Check for any missing package updates

$sudo apt-get update

(4) Grab the following source

$sudo git clone https://github.com/rasa/vmware-tools-patches.git

(5) Untar & Patch !

$cd vmware-tools-patches
$sudo ./download-tools.sh
$sudo ./compile.sh

your shared folder should appear under the following directory

mnt/hgfs/
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s