VMware中Linux虚拟机与Windows主机共享文件夹

VMware下Linux虚拟机与Windows主机共享文件夹

1. 安装vm-tool

2. 开启共享文件夹
虚拟机->设置->选项->共享文件夹”右边选择“总是启用
image

还是空白就添加一个共享文件夹
上面填主机需要共享的文件夹
下面填共享文件夹名字
image

如果你不能选择共享文件夹(灰色)那么你只能重新安装VMware Tools了

3. 进入Linux 查看挂载目录/mnt/hgfs
cd /mnt/hgfs
如果有共享文件夹就完事了
如果没有尝试一下命令
vmware-hgfsclient
查看自己的共享文件夹
mount  -t  vmhgfs .host:/pyServer  /mnt/hgfs
pyServer是我自己的共享文件夹的名字

如果出现Error: cannot mount filesystem: No such device
mount -t vmhgfs-fuse .host:/pyServer  /mnt/hgfs
如果出现unknown filesystem type 'vmhgfs'

image

vmhgfs -fuse .host:/ /mnt/hgfs

原文地址:https://www.cnblogs.com/HsinTsao/p/15417178.html