Skip to content

Instantly share code, notes, and snippets.

@un33k
Last active September 1, 2020 10:05
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save un33k/3155934 to your computer and use it in GitHub Desktop.
Save un33k/3155934 to your computer and use it in GitHub Desktop.
Enable Shared Folders on vmware Fusion 4.x, 5.x & 6.x (Linux Ubuntu 12.x as guest OS)
Enable Shared Folders on vmware Fusion (4.x)+ (Example OS: Linux Ubuntu 12.x as guest OS)
1. First update your linux system:
sudo apt-get update
sudo apt-get install -y build-essential
sudo aptitude -y safe-upgrade
2. Reboot your system just in case you have a new kernel
sudo shutdown -r now
3. Install the required headers if you have a new kernel (a MUST, as most problems are from headers mismatch)
sudo apt-get install linux-headers-`uname -r`
4. Virtual Machines -> Install VMware Tools
5. Mount the CD-ROM (step "0" has added a CDROM to /dev/cdromX)
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom(x) /mnt/cdrom # (x) is the next avail. cdrom, choose highest number
Note: If for some reasons, you don't get /dev/cdrom(x), then just look into vmware fusion application directory
and look for a linux.iso. Double click on it and you should see a .tgz file. move the .tgz file to your Linux (scp)
and you are ready.
6. Copy VMWare Tools
cd /tmp
cp /mnt/cdrom/VMwareTools-<version>.tar.gz .
tar xzvf VMwareTools-<version>.tar.gz
7. Cancel VMware Tool Insallation
Bring your Linux vmware to focus
From the menu (VirtualMachines -> Cancel VMtool Installation)
8. Run VMWare Tools
sudo ./vmware-install.pl --default
Note: If you happend to have upgraded your kernal then just run this instead
sudo ./vmware-install.pl -d --clobber-kernel-modules=vmhgfs
9. Restart
sudo reboot
10. Verify
ls /mnt/hgfs/
Let's say you had a shared folder called Projects. (You can set Projects' permission on the VM's settings window)
Then you'd see /mnt/hgfs/Projects
Then in your home directory, simply do: ln -s /mnt/hgfs/Projects/ projects
Then in your home directory on Linux you'd have a projects directory.
11. Done! Now enabled shared folders will show up in /mnt/hgfs/
Copy link

ghost commented May 21, 2014

do you think that sometimes this http://superuser.com/questions/588304/no-mnt-hgfs-in-ubuntu-guest-under-vmware-fusion is needed? trying it right now

@un33k
Copy link
Author

un33k commented Sep 26, 2014

Never had to worry about anything other than the above.

@wching
Copy link

wching commented Oct 14, 2015

@un33k thanks so much for this, you were totally right: (a MUST, as most problems are from headers mismatch)

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