安装VMWare tools,实现文件共享。

【亲测可行】

在虚拟机系统上如果安装了VMWare tools,就可以实现物理机粘贴到虚拟机的功能。

首先在物理机上随意复制一段文本,然后进入虚拟机右键粘贴,如何可以粘贴,说明VMWare tools已经安装成功。

粘贴失败,可以选择“虚拟机 -> 重新安装VMware tool“, 此时在linux桌面上会有CentosXXX(我的linux是Centos上下载的)的CD图标。

下面开始安装VMware tool:

1: 直接找到VMware Tools压缩包的位置:/run/media/xxx/VMware\ Tools

2:把VMwareTools-9.9.3-2759765.tar.gz包复制到/opt安装目录下,在/opt目录下然后再解压缩。

    cp VMwareTools-9.9.3-2759765.tar.gz /opt

    tar -zxvf VMwareTools-9.9.3-2759765.tar.gz

    cd vmware-tools-distrib

   ./vmware-install.pl

3:开始安装VMware-tools,一直点Enter。

     如果期间遇到 what is the location of the “ifconfig”program on your machine?

     what is the location of "gcc"program on your machine 然后回车,它会问你:Would you like to change it

     如果 yes, 它会问你 what is the location of "gcc"program on your machine。所以如果你不知道 gcc 的位置,就干脆在

     Would you like to change it 时敲入”空格 + no"

     最后看到successful 就表明安装成功了。

4: 安装成功后,虚拟机要访问物理机上的文件,可以通过新建共享文件夹的方法,但是我按照网上的教程试了一遍,没有成            功。所以干脆鼠标拖住物理机文件的文档拉入虚拟机中,这样实现共享更轻松容易些。从物理机拉入的共享文档一般放在            /tmp/VMwareDnD/ 下的文件内。

一般按照虚拟机linux系统时按照默认的硬盘大小,后期使用可能不够,需要再次扩容,参考帖子:

https://www.linuxidc.com/Linux/2019-04/158346.htm 一步一步跟着操作就行了。

补充:

Centos安装git

https://www.cnblogs.com/gsliuruigang/p/7899803.html

Centos安装gvim

https://www.cnblogs.com/zeushuang/archive/2012/12/05/2803772.html

你可能感兴趣的:(安装VMWare tools,实现文件共享。)