How to configure VMshare in VMware

To configure VMshare option on VMware

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 


Configuring VMshare

Before you begin with the actual process, make sure you download the patch files for the VM tools. 

[root@localhost Desktop]# wget
--2017-12-06 16:58:38--
Resolving (,
Connecting to (||: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 [55283]

Once it is downloaded, you shall extract those files by making use of the following command. 

[root@localhost Desktop]# unzip master
Archive:  master
   creating: vmware-tools-patches-master/
  inflating: vmware-tools-patches-master/.editorconfig  
  inflating: vmware-tools-patches-master/.gitattributes  
  inflating: vmware-tools-patches-master/  
  inflating: vmware-tools-patches-master/  
  inflating: vmware-tools-patches-master/  
  inflating: vmware-tools-patches-master/  


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
-rwxr-xr-x.  1 root root 1112 Nov  1 06:01
-rw-r--r--.  1 root root 4783 Nov  1 06:01
-rwxr-xr-x.  1 root root 1137 Nov  1 06:01
-rwxr-xr-x.  1 root root 1627 Nov  1 06:01
-rwxr-xr-x.  1 root root  470 Nov  1 06:01
-rwxr-xr-x.  1 root root  280 Nov  1 06:01
-rwxr-xr-x.  1 root root  225 Nov  1 06:01
-rwxr-xr-x.  1 root root  667 Nov  1 06:01

Later you need to execute the patched open VM tools script, so run the following commands. 

[root@localhost vmware-tools-patches-master]# ./ 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0: will be installed
--> Processing Dependency: perl-Git = for package: git-
--> Processing Dependency: perl(Term::ReadKey) for package: git-
--> Processing Dependency: perl(Git) for package: git-
--> Processing Dependency: perl(Error) for package: git-
The configuration of VMware Tools 10.1.15 build-6627299 for Linux for this 
running kernel completed successfully.


--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. 
CentOs 1


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 it alive.
For more help topics browse our website
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: VMware
user image Author :  Noah