解决ubuntu 22.04 vmware无法共享文件问题
环境:
vmware: 16.2
OS: ubuntu 22.04
问题
安装完ubuntu 22.04后,vmtool安装报错,无法使用共享文件和屏幕自适应等功能
解决方案
使用open-vm-tools替代vmtool
1. 安装open-vm-tools
sudo apt install open-vm-tools open-vm-tools-desktop
2. 配置共享文件夹
虚拟机 -> 设置 -> 选项 -> 共享文件夹 -> 设置为 总是启用 -> 添加
3. 挂载文件夹
- 检查是否识别到共享目录
vmware-hgfsclient
- 创建hgfs目录
sudo mkdir /mnt/hgfs
- 临时挂载
sudo vmhgfs-fuse .host:/ /mnt/hgfs
- 开机自动挂载
sudo cp /etc/fstab /etc/fstab.bak
sudo gedit /etc/fstab
文本最后加入
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
Reference:
NULL