What I'm trying to do is symlinking a shared folder between my Mac and my Ubuntu VM. The shared folders on the VM are going in /mnt/hgfs/.On my Mac I symlink the directory (let's say macdirectory) to the shared folder sharedfolder so when I compile and put a file there, it follows to the VM directory where the application is running.What I'm trying to do in my VM is this:sudo ln -s ~/linuxdirectory /mnt/hgfs/sharedfolderbut then I get this error message:ln: failed to create symbolic link '/mnt/hgfs/sharedfolder/linuxdirectory'With my many attempts to make this symlink, I may have done bad links. This is the result of ls -la /mnt/hgfs/sharedfolder/drwxr-xr-x 1  502 dialout  102 Jun 30 22:30 .dr-xr-xr-x 1 root root    4192 Jun 30 23:01 ..-????????? ? ?    ?          ?            ? linuxdirectoryCan't I use /mnt/ as a link?
Symlinking /mnt in a VM to compile file directly to VM folder
osx;virtual machine;symlink;vmware
HGFS won't allow this. No matter what you do, symlinks are only allowed from the share to other places in the share. Other links will be like that broken file you made. Normally, the guest can create symlinks, but then it cannot follow them. If you add the linesharedFolder<n>.followSymlinks = TRUEthen the guest will be allowed to follow symlinks already made, but then it loses the ability to create new ones.Reference