VMware Workstation里的Ubuntu22.04找不到共享文件夹
VMware Workstation里的Ubuntu22.04找不到共享文件夹
源自ChatGPT :
🛠 解决步骤
1. 安装 VMware Tools(新版用 open-vm-tools 就行)
Ubuntu 22.04 推荐用开源版本:
sudo apt update sudo apt install open-vm-tools open-vm-tools-desktop
⚠️ 如果你用的是 命令行 Ubuntu Server,只装
open-vm-tools
就够了;如果是 桌面版 Ubuntu,要加上open-vm-tools-desktop
。
装完重启:
sudo reboot
2. 检查共享文件夹设置
在 VMware Workstation 里:
选中虚拟机 → Edit virtual machine settings
进入 Options → Shared Folders
确保选择:
Always enabled ✅
下面添加了你要共享的 Windows 文件夹 ✅
3. 在 Ubuntu 里找到共享目录
重启后,共享文件夹会自动挂载到:
/mnt/hgfs/
你可以看看:
ls /mnt/hgfs
如果显示你在 VMware 里设置的共享文件夹名,比如 Shared
,说明已经挂载好了。
路径就是:
/mnt/hgfs/Shared
4. 如果 /mnt/hgfs
为空或不存在
有时需要手动挂载:
sudo mkdir -p /mnt/hgfs sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
再看看:
ls /mnt/hgfs
✅ 总结:
安装
open-vm-tools open-vm-tools-desktop
VMware 设置里启用 Shared Folders
在 Ubuntu 里去
/mnt/hgfs
找