天天看點

解決centos7最小安裝版安裝完VMtools後mnt檔案夾下沒有hgfs檔案夾 hgfs下面也沒有共享檔案夾

/mnt目錄下沒有hgfs檔案夾;

yum install -y open-vm-tools-devel

/hgfs檔案夾下面沒有共享檔案夾

使用指令: sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other 如果每次重新開機之後想讓系統自動挂載 #vi /etc/fstab: 在最後添加一行: .host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0

補充:

如果顯示

Error: cannot mount filesystem: No such device

先執行yum install open-vm-dkms

ubuntu也是一樣

1、sudo  apt-get install open-vm-tools 

2、sudo apt-get install open-vm

3、reboot後挂載:vmhgfs-fuse .host:/共享檔案名 /mnt/hgfs

virtualbox:

mount -t vboxsf share_folder_name /path_where_you_want

繼續閱讀