Skip to content

Instantly share code, notes, and snippets.

@ASnow
Forked from un33k/vmware_fusion_shared_folder.txt
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ASnow/84a49dd9e7892bc7ab10 to your computer and use it in GitHub Desktop.
Save ASnow/84a49dd9e7892bc7ab10 to your computer and use it in GitHub Desktop.
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/
11. Done! Now enabled shared folders will show up in /mnt/hgfs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment