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

  1. 首先保证你安装了vmware,并且安装了kernel相关。
yum install kernel kernel-headers kernel-devel -y 
  1. 使用以下脚本挂载共享文件夹
#!/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

你可能感兴趣的:(vmware 共享文件夹hgfs下为空的解决办法)