虚拟机中的centos安装VMwareTool

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


1、图形界面运行centos。

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

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

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

[root@zz /]# cd /media/
[root@zz media]# ls
VMware Tools

5、进入VMware Tools查看

[root@zz media]# cd VMware\ Tools/

[root@zz 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下

[root@zz VMware Tools]# cp VMwareTools-9.6.1-1378637.tar.gz /tmp

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

[root@zz tmp]# tar -zxvf VMwareTools-9.6.1-1378637.tar.gz

8、进入vmware-tools-distrib文件

[root@zz vmware-tools-distrib]# ls
bin doc etc FILES INSTALL installer lib vmware-install.pl
[root@zz vmware-tools-distrib]#

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

[root@zhaozhe vmware-tools-distrib]# ./vmware-install.pl



详细操作过程:

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

[root@zz 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] yesUninstalling the tar installation of VMware Tools.Stopping services for vmware-toolsvmware-tools stop/waitingStopping services for vmware-tools-thinprintinitctl: 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] yesThe 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] yesIn 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^HyesThe 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] yesInitializing...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 ofVMware kernel modules at boot that are not already present. This feature can beenabled/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.4Distribution 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/runningvmware-tools start/runningThe 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 thecommand 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-user2. Log out and log back into your desktop session; and,3. Restart your X session.Enjoy,--the VMware team到此工具已经安装完成。

相关文章

有时候CentOS工作在无互联网的环境下,需要在离线环境下安装一些组件,这次实现的是模拟在离线环境下安...
首先参照https://www.cnblogs.com/wdw984/p/13330074.html,来进行如何安装Centos和离线下载rpm包。 离...
有两个.NET CORE3.1网站部署在CentOS7上(内网IP是192.168.2.32),现在想实现访问http://192.168.2.32...
1、yum -y install vsftpd 安装vsftpd 2、配置vsftpd的配置文件(/etc/vsftpd/vsftpd.conf)主要修改以...
首先去mysql官网下载mysql的离线rpm安装包(https://downloads.mysql.com/archives/community/) Mysql...
第一步下载erlang环境并安装: wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_...