VMshare is an utility used for sharing the files in VMware to base machine. If you need to configure VMshare, this tutorial maybe helpful for you as this article covers the method to configure VMshare option in VMware.
VM tools must be installed in your system
Before you begin with the actual process, make sure you download the patch files for the VM tools.
[root@localhost Desktop]# wget https://codeload.github.com/rasa/vmware-tools-patches/zip/master --2017-12-06 16:58:38-- https://codeload.github.com/rasa/vmware-tools-patches/zip/master Resolving codeload.github.com (codeload.github.com)... 22.214.171.124, 126.96.36.199 Connecting to codeload.github.com (codeload.github.com)|188.8.131.52|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘master’ [ <=> ] 55,283 102KB/s in 0.5s 2017-12-06 16:58:40 (102 KB/s) - ‘master’ saved 
Once it is downloaded, you shall extract those files by making use of the following command.
[root@localhost Desktop]# unzip master Archive: master e70a54f6800efa22f799b4e8c85f23924a42c454 creating: vmware-tools-patches-master/ inflating: vmware-tools-patches-master/.editorconfig inflating: vmware-tools-patches-master/.gitattributes . . . inflating: vmware-tools-patches-master/untar-all-and-patch.sh inflating: vmware-tools-patches-master/untar-and-patch-and-compile.sh inflating: vmware-tools-patches-master/untar-and-patch.sh inflating: vmware-tools-patches-master/untar.sh
Later, enter into the extracted diretory by running the following command.
[root@localhost Desktop]# cd vmware-tools-patches-master/
After that, you should list the directory as follows.
[root@localhost vmware-tools-patches-master]# ll total 84 -rw-r--r--. 1 root root 31 Nov 1 06:01 CHANGELOG.md -rwxr-xr-x. 1 root root 1112 Nov 1 06:01 compile.sh -rw-r--r--. 1 root root 4783 Nov 1 06:01 CONTRIBUTING.md -rwxr-xr-x. 1 root root 1137 Nov 1 06:01 download-patches.sh . . . -rwxr-xr-x. 1 root root 1627 Nov 1 06:01 setup.sh -rwxr-xr-x. 1 root root 470 Nov 1 06:01 untar-all-and-patch.sh -rwxr-xr-x. 1 root root 280 Nov 1 06:01 untar-and-patch-and-compile.sh -rwxr-xr-x. 1 root root 225 Nov 1 06:01 untar-and-patch.sh -rwxr-xr-x. 1 root root 667 Nov 1 06:01 untar.sh
Later you need to execute the patched open VM tools script, so run the following commands.
[root@localhost vmware-tools-patches-master]# ./patched-open-vm-tools.sh Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.dhakacom.com * extras: mirror.ehost.vn * updates: mirror.ehost.vn Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:184.108.40.206-12.el7_4 will be installed --> Processing Dependency: perl-Git = 220.127.116.11-12.el7_4 for package: git-18.104.22.168-12.el7_4.x86_64 --> Processing Dependency: perl(Term::ReadKey) for package: git-22.214.171.124-12.el7_4.x86_64 --> Processing Dependency: perl(Git) for package: git-126.96.36.199-12.el7_4.x86_64 --> Processing Dependency: perl(Error) for package: git-188.8.131.52-12.el7_4.x86_6 . . . . The configuration of VMware Tools 10.1.15 build-6627299 for Linux for this running kernel completed successfully. Enjoy, --the VMware team
Now, we shall configure the share option, Go to VM settings ------> Options ------> Share folder ------> choose Always enable.
And then in the Folders box, click on the Add button.
And then, click on the Next button in the wizzard.
And then, you need to choose folder to share and click OK.
In the next part of the Wizard, you need to click OK.
And then click Finish.
Also, in the Pop-up box which was below, you need to click on OK.
Again, in your terminal, you need to enter into /mnt location and list its contents.
[root@localhost ~]# cd /mnt [root@localhost mnt]# ll total 5 drwxr-xr-x. 2 root root 6 Dec 6 17:03 cdrom dr-xr-xr-x. 1 root root 4192 Dec 6 2017 hgfs
TThe shared folder is present in hgfs, so enter into hgfs and list its content as follows.
[root@localhost mnt]# cd hgfs/ [root@localhost hgfs]# ll total 0 drwxrwxrwx. 1 root root 0 Dec 6 17:08 vmshare
The shared directory is present, enter into vmshare and create directory and file and list the directory.
[root@localhost hgfs]# cd vmshare/ [root@localhost vmshare]# mkdir 1 [root@localhost vmshare]# [root@localhost vmshare]# vim new [root@localhost vmshare]# [root@localhost vmshare]# ll total 1 drwxrwxrwx. 1 root root 0 Dec 6 17:23 1 -rwxrwxrwx. 1 root root 10 Dec 6 17:22 new
Now, you shall open the base machine and and go to shared location.
And then, you open the file .
You can also create a new folder.
And also, create a new file.
Now go to your terminal and check for shared directory, enter into it, and list its content. Run the following command for the same purpose.
[root@localhost vmshare]# cd 1 [root@localhost 1]# ll total 0 drwxrwxrwx. 1 root root 0 Dec 6 17:23 test -rwxrwxrwx. 1 root root 0 Dec 6 17:23 test1.txt
Your newly created folder and file is present in VM. This shows that vmshare folder option is properly working.
Thank you! for using Linux Help.
You find this tutorial helpful? Share with your friends to keep
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.