vmware——vmware掛載windows共享文件夾

//在安裝好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

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章