[root@localhost mnt]# ls /mnt
[root@localhost mnt]# mkdir share //创建共享目录挂载点share
[root@localhost mnt]# ls
share
[root@localhost mnt]# vmware-hgfsclient //查看windows的共享目录名
Linux
[root@localhost mnt]# vmhgfs-fuse -o allow_other .host:/Linux /mnt/share //挂载windows共享目录
[root@localhost mnt]# ls share/
CentOS-7-x86_64-Everything-1708.iso rhel-server-7.4-x86_64-dvd.iso
desktop.ini ubuntu-18.04-desktop-amd64.iso
kali-linux-2018.2-amd64.iso
[root@localhost ~]# vim /etc/rc.d/rc.local //开机挂载Linux目录,并挂载目录内的系统镜像到html下
……
for i in {1..5}
do
/usr/bin/vmhgfs-fuse -o allow_other .host:/Linux /mnt/share
sleep 1
done