首先确认CentOS-7已经安装了open-vm-tools,如果没有安装,则通过yum安装:
yum install open-vm-tools
关闭虚拟机并配置好windows主机的共享目录后,可以选择手动或者自动挂载共享文件 CentOS中的挂载点为/vmshare,需提前手动创建目录 手动方式:
vmhgfs-fuse -o allow_other -o auto_unmount -o uid=1000 -o gid=1000 .host:/ /vmshare
自动方式: 编辑/etc/fstab,加上一行
.host:/ /vmshare fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0