//在安裝好vmware-tools之後再進行如下操作(tar 解壓,運行 ./*.pl程序,一路回車)
// /mnt 目錄下並沒有hgfs共享目錄
[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 .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 .host:/Linux /mnt/share
sleep 1
done
mount /mnt/share/CentOS-7-x86_64-Everything-1708.iso /var/www/html/centos7
mount /mnt/share/rhel-server-7.4-x86_64-dvd.iso /var/www/html/rhel7