Win10 installed centos7 shared folder can not be seen, reinstalled VMware Tools, shared files did not appear related problems

background

Today's use: VMware® Workstation 15 Pro installs the CentOS-7-x86_64-DVD-1908 virtual machine. After the installation, there is a problem that the shared file cannot be found. So record it here.

Specific solution steps:

1. Reinstall VMtools.

Specific steps:

    1.右击你的虚拟机,或者点击虚拟机按钮,点击安装VMware Tools,如下图:

insert image description here

      这里有个坑,需要注意下,如果你的这个按钮是灰色,那么就点击上图红框下面的设置,然后点击CD/DVD,选择使用ISO影响文件,这个文件选择我们VM安装路径下面的文件即可,如我VM是默认安装的,那么对应路径就如下图:

insert image description here
After setting, turn on the virtual machine, and the button that should install VMware Tools will not be grayed out.

     2.上面第一步已经把VMware Tool的安装工具映射到虚拟机里面去了,所以接下来我们就进行安装步骤,请注意如下步骤都是在root下面运行.
		 su root                                          #这是切换root用户
		 cp /run/media/saint/VMware\ Tools/VMwareTools-10.3.10-13959562.tar.gz /home/saint/    #注意,上面复制的文件就是我们cd/DVD选择的linux.ISO里面的文件。
		 cd /home/saint/                                  #进入我们刚把文件复制到的目录
		 tar -zxvf VMwareTools-10.3.10-13959562.tar.gz    #解压刚复制过来的文件
		 cd vmware-tools-distrib/                         #就是是刚解压文件的目录
		 ./vmware-install.pl                              #运行这个在过程中一直回车即可,到最后会看到一个出现successfully就表示成功了。

2. After successfully reinstalling VMWARE-Tools, the shared file directory cannot be found.

If the VMWARE-Tools tool is reinstalled, there is still no shared folder directory under the /mnt/hgfs/ directory, then you can execute the following command:

         vmware-hgfsclient                         #命令查看当前有哪些共享的目录
         vmhgfs-fuse .host:/ /mnt/hgfs        #把共享的目录挂载到/mnt/hgfs 目录下,到这里应该是可以看到共享目录了。

There is still a pit here. If all the above is completed and the shared file directory is not seen, then the virtual machine may not be installed: the two dependent libraries of gcc and kernel-devel, because they will go during the reinstallation of VMware Tools Find the effective paths of gcc and kernel, so these two libraries are needed, the specific commands are as follows:

    yum -y install gcc                      #安装gcc:
    yum -y install kernel-devel        #安装kernel-devel:
    reboot                                       #重启
开机后再重新安装VMtool应该就可以看得到了。

Reference link:
https://blog.csdn.net/yhahaha_/article/details/89762487
https://blog.csdn.net/yhahaha_/article/details/82625067?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source= distribute.pc_relevant.none-task

Guess you like

Origin blog.csdn.net/m0_37860943/article/details/105007521