虛擬機中的centos安裝VMwareTool

這篇文章講的是虛擬機中如何安裝VMwareTool的方法,但願能夠幫助的有用的朋友centos


一、圖形界面運行centos。
session

二、在虛擬機菜單欄中點擊 虛擬機->安裝 VMWARE TOOLS 子菜單,會彈出安裝信息。ide

三、進入圖形界面會看到CD/DVD已經加載VMware Tools。工具

四、運行終端,進入media目錄,會看到VMware Toolsui

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

五、進入VMware Tools查看rest

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

[root@zz VMware Tools]# ls
manifest.txt  run_upgrader.sh  VMwareTools-9.6.1-1378637.tar.gz  vmware-tools-upgrader-32  vmware-tools-upgrader-64server

六、將VMwareTools-9.6.1-1378637.tar.gz拷貝到臨時文件夾/tmp下ip

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

七、進入tmp目錄,解壓會產生 vmware-tools-distrib文件

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

八、進入 vmware-tools-distrib文件

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

九、運行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 p_w_picpath 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到此工具已經安裝完成。

相關文章
相關標籤/搜索