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.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom閱讀 3,165評(píng)論 0 3
  • ?王越:VMware存儲(chǔ)API整理,比如核心的存儲(chǔ)池與卷兩者的CURD。可以參考:VMware in OpenSt...
    笨手笨腳越閱讀 5,839評(píng)論 0 2
  • Here is our training plan. Our agenda for this training m...
    FlyingPeter閱讀 462評(píng)論 0 0
  • Awesome Ruby Toolbox Awesome A collection of awesome Ruby...
    debbbbie閱讀 3,085評(píng)論 0 3
  • 雯春長(zhǎng)到16歲,就是全村數(shù)一數(shù)二漂亮的姑娘了。 雖說臉盤大是容貌里致命的缺陷,胖了可以減肥,太瘦可以多吃,皮膚黑可...
    南飛雨燕閱讀 3,511評(píng)論 72 104

友情鏈接更多精彩內(nèi)容