1. 确认VMtools已经装好,开启共享文件夹,设置好共享目录

2.执行命令
  sudo mount -t vmhgfs .host:/ /mnt/hgfs
如果出现错误:
  Error: cannot mount filesystem: No such device

使用: vmhgfs-fuse .host:/ /mnt/hgfs

设置开机自动挂载 vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o nonempty

用vmware-hgfsclient命令能看到设置的共享目录