1.在虚拟机设置中设置共享目录
虚拟机设置-选项-共享文件夹-总是启用-添加-填写主机路径-确定
2.更新vm-tools
yum -y install open-vm-tools
3.挂载共享目录
vmhgfs-fuse .host:/ /mnt/hgfs
#如果需要普通用户也能使用共享目录,则需使用下面的命令挂载
vmhgfs-fuse .host:/ /mnt/share -o allow_other
4.cd /mnt/hgfs即可看到共享文件夹
1.在虚拟机设置中设置共享目录
虚拟机设置-选项-共享文件夹-总是启用-添加-填写主机路径-确定
2.更新vm-tools
yum -y install open-vm-tools
3.挂载共享目录
vmhgfs-fuse .host:/ /mnt/hgfs
#如果需要普通用户也能使用共享目录,则需使用下面的命令挂载
vmhgfs-fuse .host:/ /mnt/share -o allow_other
4.cd /mnt/hgfs即可看到共享文件夹