本文介绍如何用VMTools共享Windows和Ubuntu虚拟机下的文件,本文所用系统 host: win10 guest: Ubuntu 20.04 LTS, VM版本15.5pro

 

1.  首先在VM安装VM tools

可以直接通过VMWare安装,也可以在虚拟机中用如下命令:

sudo apt-get install open-vm-tools open-vm-tools-desktop

安装完要重启VM

 

2.  VMWare - VM - Settings - share folders, 添加一个文件夹

 用VMTools在Windows和Ubuntu VM共享文件

 

 我这里命名为VMShared

 

3. 在Ubuntu中进行挂载

sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000

之后用 vmware-hgfslient 命令,看到已经挂载

用VMTools在Windows和Ubuntu VM共享文件

再执行一次

sudo vmhgfs-fuse .host:/VMShared /mnt/ -o allow_other -o uid=1000

之后cd到/mnt/VMShared,实现共享。

相关文章:

  • 2021-09-18
  • 2021-11-28
  • 2022-01-13
  • 2021-12-05
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
猜你喜欢
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-04-10
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案