VMware 如何挂载 共享文件夹
https://askubuntu.com/questions/29284/how-do-i-mount-shared-folders-in-ubuntu-using-vmware-tools
Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically.
How do I get them to work?
If I run vmware-hgfsclient in terminal, I get the list of shared folders, but ls -l /mnt/hgfs is empty. Actually there's no hgfs dir in /mnt. I know I should probably use the vmware-hgfsclient tool, but I realy don't know how.
P.S. I wouldn't ask if I could understand the vmware-hgfsclient help I've read.
Answer
Most other answers are outdated. For Ubuntu 18.04 (or recent Debian distros), try:
sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000
If the hgfs directory doesn't exist, try:
sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000
You may have use a specific folder instead of .host:/. In that case you can find out the share's name with vmware-hgfsclient. For example:
$ vmware-hgfsclient
my-shared-folder
$ sudo vmhgfs-fuse .host:/my-shared-folder /mnt/hgfs/ -o allow_other -o uid=1000
If you want them mounted on startup, update /etc/fstab with the following:
# Use shared folders between VMWare guest and host
.host:/ /mnt/hgfs/ fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0
I choose to mount them on demand and have them ignored by sudo mount -a and the such with the noauto option, because I noticed the shares have an impact on VM performance.
Requirements
Software requirements may require installing the following tools beforehand:
sudo apt-get install open-vm-tools open-vm-tools-desktop
Others have claimed the following are required:
sudo apt-get install build-essential module-assistant \
linux-headers-virtual linux-image-virtual && dpkg-reconfigure open-vm-tools
Official Article
How to configure VMware Tools Shared Folders Linux mounts (60262)

浙公网安备 33010602011771号