- 首先安装VMware tools,安装方法自行百度,此处不再赘述。
- 在虚拟机设置中按照如下步骤设置共享目录

- 使用如下命令在虚拟机的linux系统中挂载共享目录
vmhgfs-fuse .host:/ /mnt/hgfs
#如果需要普通用户也能使用共享目录,则需使用下面的命令挂载
vmhgfs-fuse .host:/ /mnt/share -o allow_other
注意,centos 7 需要先执行 yum install open-vm-tools
vmhgfs-fuse .host:/ /mnt/hgfs
#如果需要普通用户也能使用共享目录,则需使用下面的命令挂载
vmhgfs-fuse .host:/ /mnt/share -o allow_other
注意,centos 7 需要先执行 yum install open-vm-tools