虚拟机中的centos安装VMwareTool

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了虚拟机中的centos安装VMwareTool相关的知识,希望对你有一定的参考价值。

这篇文章讲的是虚拟机中如何安装VMwareTool的方法,希望可以帮助的有用的朋友


1、图形界面运行centos。

2、在虚拟机菜单栏中点击 虚拟机->安装 VMWARE TOOLS 子菜单,会弹出安装信息。

3、进入图形界面会看到CD/DVD已经加载VMware Tools。

4、运行终端,进入media目录,会看到VMware Tools

[[email protected] /]# cd /media/
[[email protected] media]# ls
VMware Tools

5、进入VMware Tools查看

[[email protected] media]# cd VMware\ Tools/

[[email protected] VMware Tools]# ls
manifest.txt  run_upgrader.sh  VMwareTools-9.6.1-1378637.tar.gz  vmware-tools-upgrader-32  vmware-tools-upgrader-64

6、将VMwareTools-9.6.1-1378637.tar.gz拷贝到临时文件夹/tmp下

[[email protected] VMware Tools]# cp VMwareTools-9.6.1-1378637.tar.gz /tmp

7、进入tmp目录,解压会产生 vmware-tools-distrib文件

[[email protected] tmp]# tar -zxvf VMwareTools-9.6.1-1378637.tar.gz

8、进入 vmware-tools-distrib文件

[[email protected] vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
[[email protected] vmware-tools-distrib]#

9、运行vmware-install.pl文件安装程序

[[email protected] vmware-tools-distrib]# ./vmware-install.pl



详细操作过程:

因为我已经安装过,再次安装会提示你卸载,当出现(yes/no) 统一输入[yes],其他一律回车。

[[email protected] vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes] yes

Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint

initctl: Unknown instance:
File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.2.
The removal of VMware Tools 9.6.1 build-1378637 for Linux completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin] yes

The path "yes" is a relative path. Please enter an absolute path.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

yes
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]
The path "yes" is a relative path. Please enter an absolute path.

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 9.6.1 build-1378637 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

yeBefore running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] s^Hyes

The answer "yeyes" is invalid. It must be one of "y" or "n".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes] yes

Initializing...


Making sure services for VMware Tools are stopped.



Found a compatible pre-built module for vmci.  Installing it...


Found a compatible pre-built module for vsock.  Installing it...


The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.

Use the flag --clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.

Use the flag --clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.

Use the flag --clobber-kernel-modules=vmmemctl to override.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [yes]

Found a compatible pre-built module for vmhgfs.  Installing it...


Found a compatible pre-built module for vmxnet.  Installing it...


The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[yes]

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can be

enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes]


Disabling timer-based audio scheduling in pulseaudio.



Detected X server version 1.17.4



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
vmware-tools-thinprint start/running
vmware-tools start/running
The configuration of VMware Tools 9.6.1 build-1378637 for Linux for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team
到此工具已经安装完成。

本文出自 “诺克” 博客,请务必保留此出处http://9840752.blog.51cto.com/9830752/1866789

以上是关于虚拟机中的centos安装VMwareTool的主要内容,如果未能解决你的问题,请参考以下文章

完美解决安装在虚拟机中的CentOS7无法联网的问题

完美解决安装在虚拟机中的CentOS7无法联网的问题

VMware虚拟机中的CentOS7安装Nginx后本机无法访问的解决办法

实践:在虚拟机中的centos7中安装jdk

虚拟机中最小安装centos7没有ifconfig命令

新人求助,关于vmware tools安装