I ran into same issue while working with Ubuntu 21.10 impish. Below is a complete solution guide for this shared folder issue.
Pre-work
Make sure open-vm-tools (and open-vm-tools-desktop if you're using a desktop environment) are installed, and that you've rebooted after their installation.
sudo apt update
sudo apt install open-vm-tools open-vm-tools-desktop
Make sure you have a /mnt/hgfs directory made and empty. If not:
sudo mkdir -p /mnt/hgfs
Mounting
To mount the filesystem, run:
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
The shared folders will now be in subdirectories of /mnt/hgfs
Setting up auto-mounting
Add the following line to /etc/fstab:
.host:/ /mnt/hgfs fuse.vmhgfs-fuse auto,allow_other 0 0
Update: based on extensive testing, the auto keyword seems to work fine. Prior versions suggested noauto. If you have trouble with auto, change to noauto and see below
If using the noauto keyword, but you want automount
Create or edit the script /etc/rc.local (as root), and add the line:
mount /mnt/hgfs
make sure rc.local is executable and owned by root:
sudo chown root:root /etc/rc.local
sudo chmod 0755 /etc/rc.local
enable the rc.local service in systemd:
sudo systemctl enable rc-local.service
reboot
The rc.local script runs as the last step of startup, allowing the HGFS filesystem to mount after open-vm-tools services are running, which is required for successful operation.
Browse /mnt/hgfs at will.
Ref :
https://gist.github.com/darrenpmeyer/b69242a45197901f17bfe06e78f4dee3
Unlike using VMWare Tools to enable Linux guest capabilities, the
open-vm-tools package doesn't auto-mount shared VMWare folders.
Reference from official docs :
https://docs.vmware.com/en/VMware-Workstation-Pro/16.0/com.vmware.ws.using.doc/GUID-AB5C80FE-9B8A-4899-8186-3DB8201B1758.html