我使用的是Cent OS Linux。
找了好多解决方法,发现这个方法可以解决问题。
进入虚拟机的设置,将CD/DVD设置为自动检测。
设置完成后保存,重启虚拟机。
再次进入就发现重新安装可以点了。
点击后发现下方会报出:在客户机中装载虚拟 CD 驱动器,启动终端,使用 tar 解压缩安装程序,然后执行 vmware-instal.pl安装 VMware Tools。
不用在意,直接打开文件夹。
这个时候会发现VMware Tools已经出现了,随便新建一个文件夹,将VMwareTools-10.3.23-16594550.tar.gz解压缩到该文件夹。
解压后点进文件夹,找到vmware-install.pl所在的位置。
右键打开Open in Console打开控制台。
输入su - 进入root模式。
su -
输入cd /home/dijiu/vm_tools/VMwareTools-10.3.23-16594550/vmware-tools-distrib
这里把后边的路径改为你的vmware-install.pl所在位置的路径,可从上方直接复制。
cd /home/dijiu/vm_tools/VMwareTools-10.3.23-16594550/vmware-tools-distrib
输入./vmware-install.pl后就可以开始下载,然后一直回车默认就好。
./vmware-install.pl
我第一次进行这个操作的时候,出现了这个问题。
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes]
INPUT: [yes] default
Creating a new VMware Tools installer database using the tar4 format.
Installing VMware Tools.
In which directory do you want to install the binary files?
[/usr/bin]
INPUT: [/usr/bin] default
What is the directory that contains the init directories (rc0.d/ to
rc6.d/)?
INPUT: [] default
The path "" is not an existing directory.
What is the directory that contains the init directories (rc0.d/ to
rc6.d/)?
最终也是找到了解决方法。
进入到根目录,在根目录里打开控制台。
依次输入这些指令。
mkdir /etc/rc.d/rc0.d
mkdir /etc/rc.d/rc1.d
mkdir /etc/rc.d/rc2.d
mkdir /etc/rc.d/rc3.d
mkdir /etc/rc.d/rc4.d
mkdir /etc/rc.d/rc5.d
mkdir /etc/rc.d/rc6.d
上边问题就可以解决了,然后再进行之前的操作一直回车vmware tools就下好啦。