vmware 共享文件夹hgfs下为空的解决办法

2017-2-13来源:经验技巧人气:266

首先保证你安装了vmware,并且安装了kernel相关。 yum install kernel kernel-headers kernel-devel -y 使用以下脚本挂载共享文件夹 #!/bin/bash vmware-hgfsclient | while read folder; do echo "[i] Mounting ${folder} (/mnt/hgfs/${folder})" mkdir -p "/mnt/hgfs/${folder}" umount -f "/mnt/hgfs/${folder}" 2>/dev/null vmhgfs-fuse -o allow_other -o auto_unmount ".host:/${folder}" "/mnt/hgfs/${folder}" done sleep 2s