解决Linux安装 VMware tools 工具的方法

时间:2021-10-05 11:17:53

一:启动linux服务器,并用远程登录工具访问linux服务器

1:启动系统

解决Linux安装 VMware tools 工具的方法

2:用服务器控制台   :查看点ip地址

解决Linux安装 VMware tools 工具的方法

3:用客户端 连接服务器

解决Linux安装 VMware tools 工具的方法

二:挂起 vm虚拟机的 tools 安装光盘

解决Linux安装 VMware tools 工具的方法

解决Linux安装 VMware tools 工具的方法

三:开始进行tools工具的安装步骤

1:挂载 光盘

解决Linux安装 VMware tools 工具的方法

 [root@oracleServerFrist ~]# cd /mnt/cdrom
-bash: cd: /mnt/cdrom: No such file or directory
[root@oracleServerFrist ~]# mkdir /mnt/cdrom
[root@oracleServerFrist ~]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@oracleServerFrist ~]#

2:进入光盘,并把安装包拷贝出来放到 /home/temp 目录下

1:进入光盘

解决Linux安装 VMware tools 工具的方法

 [root@oracleServerFrist ~]# cd /mnt/cdrom
[root@oracleServerFrist cdrom]# pwd
/mnt/cdrom
[root@oracleServerFrist cdrom]# ls
manifest.txt VMwareTools-10.1.6-5214329.tar.gz vmware-tools-upgrader-64
run_upgrader.sh vmware-tools-upgrader-32
[root@oracleServerFrist cdrom]#

2: 进行安装包的拷贝

解决Linux安装 VMware tools 工具的方法

 [root@oracleServerFrist home]# cd /home/
[root@oracleServerFrist home]# ls
oracle
[root@oracleServerFrist home]# pwd
/home
[root@oracleServerFrist home]# mkdir /home/temp
[root@oracleServerFrist home]# ls
oracle temp
[root@oracleServerFrist home]# cd temp
[root@oracleServerFrist temp]# ls
[root@oracleServerFrist temp]# cp /mnt/cdrom/VMwareTools-10.1.6-5214329.tar.gz /home/temp/
[root@oracleServerFrist temp]# ls
VMwareTools-10.1.6-5214329.tar.gz
[root@oracleServerFrist temp]#

3:解压安装包,并进行安装

1:进行压缩包解压

解决Linux安装 VMware tools 工具的方法

 [root@localhost cdrom]# cd /tmp/
[root@localhost tmp]# tar zxvf VMwareTools-6.5.0-118166.tar.gz //解压文件

2:进行安装文件的启动

 [root@oracleServerFrist temp]# ls
VMwareTools-10.1.6-5214329.tar.gz vmware-tools-distrib
[root@oracleServerFrist temp]# cd vmware-tools-distrib/
[root@oracleServerFrist vmware-tools-distrib]# ls
bin caf doc etc FILES INSTALL installer lib vgauth vmware-install.pl
[root@oracleServerFrist vmware-tools-distrib]# ./vmware-install.pl

解决Linux安装 VMware tools 工具的方法

3:以下是安装执行过程。基本是一路回车键按到北

 [root@oracleServerFrist 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] Uninstalling the tar installation of VMware Tools. Stopping services for VMware Tools Skipping VMware Tools services shutdown on the host:[ OK ] The removal of VMware Tools 10.1.6 build-5214329 for Linux completed
successfully. Installing VMware Tools. 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] In which directory do you want to install the common agent library files?
[/usr/lib]
In which directory do you want to install the common agent transient files?
[/var/lib] 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 10.1.6 build-5214329 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". 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] Initializing... Making sure services for VMware Tools are stopped. Stopping Thinprint services in the virtual machine:
Stopping Virtual Printing daemon: done
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon:[ OK ]
VGAuthService:[ OK ]
VMware User Agent (vmware-user):[ OK ]
Blocking file system:[ OK ]
Unmounting HGFS shares:[ OK ]
Guest filesystem driver:[ OK ]
Guest memory manager:[ OK ]
VM communication interface socket family:[ OK ]
VM communication interface:[ OK ]
File system sync driver:[ OK ] The VMware FileSystem Sync Driver (vmsync) allows external third-party backup
software that is integrated with vSphere to create backups of the virtual
machine. Do you wish to enable this feature? [yes] Found a compatible pre-built module for vmsync. Installing it... Found a compatible pre-built module for vmci. Installing it... Found a compatible pre-built module for vsock. Installing it... Found a compatible pre-built module for vmxnet3. Installing it... Found a compatible pre-built module for pvscsi. Installing it... Found a compatible pre-built module for vmmemctl. Installing it... 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] Found a compatible pre-built module for vmblock. Installing it... 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] Thinprint provides driver-free printing. Do you wish to enable this feature?
[yes] Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
if you want to enable Common Agent (caf). [yes] Detected X version 7.1 Do you want to change the starting screen display size? (yes/no) [no] yes Unable to detect guest resolution. Please choose one of the following display sizes that X will start with: [1]< 640x480
[2] 800x600
[3] 1024x768
[4] 1280x800
Please enter a number between 1 and 4: [1] 3 X is running fine with the new config file. Creating a new initrd boot image for the kernel. NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and
/etc/vmware-tools/GuestProxyData/server/cert.pem already exist.
They are not generated again. To regenerate them by force,
use the "vmware-guestproxycerttool -g -f" command. Starting Virtual Printing daemon: done
Checking acpi hot plug[ OK ]
Starting VMware Tools services in the virtual machine:
Switching to guest configuration:[ OK ]
VMware Automatic Kmods:[ OK ]
Paravirtual SCSI module:[ OK ]
Guest memory manager:[ OK ]
VM communication interface:[ OK ]
VM communication interface socket family:[ OK ]
Guest filesystem driver:[ OK ]
Mounting HGFS shares:[FAILED]
Blocking file system:[ OK ]
VMware User Agent:[ OK ]
File system sync driver:[ OK ]
Guest operating system daemon:[ OK ]
VGAuthService:[ OK ]
The configuration of VMware Tools 10.1.6 build-5214329 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
3. Restart your X session. Enjoy, --the VMware team Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/scd0 ...
Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/cdrom ...
[root@oracleServerFrist vmware-tools-distrib]#

执行完毕后 系统会自动重启的。

解决Linux安装 VMware tools 工具的方法