Vmware10 Centos7 共享文件夾設置方法


先安裝包依賴:
yum -y install kernel-devel-$(uname -r) 
yum -y install net-tools perl gcc gcc-c++

 

安裝vm tool
mount /dev/cdrom /home/tmp
cp /home/tmp/VMwareTools-9.6.0-1294478.tar.gz /tmp
cd /tmp
tar -zxvf VMwareTools-9.6.0-1294478.tar.gz
cd vmware-tools-distrib
./vmware-install.pl
按提示操作即可。
 
有/mnt/hgfs但沒有共享文件的解決方法:
mount -t vmhgfs .host:/  /mnt/hgfs
Error: cannot mount filesystem: No such device

 

這時不能用mount工具掛載,而是得用vmhgfs-fuse,需要安裝工具包
yum install open-vm-tools-devel -y
有的源的名字並不一定為open-vm-tools-devel(centos) ,而是open-vm-dkms(unbuntu)
執行:vmhgfs-fuse .host:/ /mnt/hgfs
 
此時進入/mnt/hgfs就能看到你設置的共享文件夾了。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM