天天看点

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

1. 安装vm-tool
2. 开启共享文件夹 虚拟机->设置->选项->共享文件夹”右边选择“总是启用
VMware中Linux虚拟机与Windows主机共享文件夹
还是空白就添加一个共享文件夹 上面填主机需要共享的文件夹 下面填共享文件夹名字
VMware中Linux虚拟机与Windows主机共享文件夹

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

3. 进入Linux 查看挂载目录/mnt/hgfs <code>cd /mnt/hgfs</code> 如果有共享文件夹就完事了 如果没有尝试一下命令 <code>vmware-hgfsclient</code> 查看自己的共享文件夹 <code>mount  -t  vmhgfs .host:/pyServer  /mnt/hgfs</code> pyServer是我自己的共享文件夹的名字
如果出现Error: cannot mount filesystem: No such device <code>mount -t vmhgfs-fuse .host:/pyServer  /mnt/hgfs</code> 如果出现unknown filesystem type 'vmhgfs'
VMware中Linux虚拟机与Windows主机共享文件夹

vmhgfs -fuse .host:/ /mnt/hgfs