实现共享需要安装VMTools工具
1、开启共享文件夹

开启共享文件夹
2、查看共享文件夹
[root@hadoop101 ~]# cd /mnt/hgfs/
[root@hadoop101 hgfs]# ll
total 4
drwxrwxrwx. 1 root root 4096 Apr 15 10:10 Window-Centos-Shared
[root@hadoop101 hgfs]# cd Window-Centos-Shared/
[root@hadoop101 Window-Centos-Shared]# ll
total 4
-rwxrwxrwx. 1 root root 3005 Nov 27 14:23 website.log
此时在CentOS 7中就能看到物理机上面共享的文件夹了
3、查看 vmware-tools 文件
VMware默认的共享路径是在/mnt/hgfs,这是写死在VMware Tools的脚本里的,我们可以从/etc/init.d/vmware-tools查到
[root@hadoop101 ~]# vim /etc/init.d/vmware-tools
vmhgfs_mnt="/mnt/hgfs"
#Mount all hgfs filesystems"
vmware_mount_vmhgfs() {
if [ "`is_vmhgfs_mounted`" = "no" ]; then
if [ "`vmware_vmhgfs_use_fuse`" = "yes" ]; then
mkdir -p $vmhgfs_mnt
vmware_exec_selinux "$vmdb_answer_BINDIR/vmhgfs-fuse \
-o subtype=vmhgfs-fuse,allow_other $vmhgfs_mnt"
else
vmware_exec_selinux "mount -t vmhgfs .host:/ $vmhgfs_mnt"
fi
fi
}