Shared Folder Configuration in VMware(VMware共享文件夹配置)

When using VMware virtual machine, it is necessary to configure a shared folder to share files between the host and client. And note that you must have installed the VMware Tools before setting a shared folder. To know how to install it, see details in VMware Tools Installation


  • Enable the shared folder

In the VIRTUAL MACHINE OPTIONS, Select the following option:



and then add a folder:


You should assign a name to it, which will be seen in your client system.


  • Mount the shared folder

Start your client and use the command:

//confirm the shared folder
Ubuntu:~$ vmware-hgfsclient
share

//create a mount point
Ubuntu:~$ sudo mkdir /mnt/hgfs

//mount the shared folder
Ubuntu:~$ sudo vmhgfs-fuse .host:/ /mnt/hgfs

//confirm the mounted shared folder
Ubuntu:~$ sudo ls /mnt/hgfs
share
Ubuntu:~$ sudo ls /mnt/hgfs/share
1.conf     2.conf

However, after rebooting the client, we need to use the same command again. So we should edit the configuration file next.


  • Stable configuration

Use the command:

Ubuntu:~$ sudo vim /etc/fstab

to edit the file, and add the following content to it:

.host:/      /mnt/hgfs      fuse.vmhgfs-fuse      defaults      0      0

to execute the command when boot. Then save the modification and exit.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 7,982评论 0 3
  • •王越:VMware存储API整理,比如核心的存储池与卷两者的CURD。可以参考:VMware in OpenSt...
    笨手笨脚越阅读 11,017评论 0 2
  • Here is our training plan. Our agenda for this training m...
    FlyingPeter阅读 3,161评论 0 0
  • Awesome Ruby Toolbox Awesome A collection of awesome Ruby...
    debbbbie阅读 8,052评论 0 3
  • 雯春长到16岁,就是全村数一数二漂亮的姑娘了。 虽说脸盘大是容貌里致命的缺陷,胖了可以减肥,太瘦可以多吃,皮肤黑可...
    南飞雨燕阅读 8,759评论 72 104

友情链接更多精彩内容