1.在VMware设置共享文件夹
右键单击对应虚拟机——>选项——>共享文件夹——>启用
2.虚拟机中找到 /mnt/hgfs 目录
Other Locations——>Computer——>mnt——>hgfs
#如果没有hgfs文件夹,就用下列命令创建
sudo mkdir -p /mnt/hgfs
3.将 /mnt/hgfs 目录的写权限授予所有用户
sudo chmod a+w /mnt/hgfs
2.将 VMware 主机上的共享文件系统挂载到虚拟机中的 /mnt/hgfs 目录下
vmhgfs-fuse .host:/ /mnt/hgfs/