vmware 安装 vmtools 记录 (未完成)

VMware软件 点击菜单栏 -- 虚拟机 -- 安装 VMware Tools 挂在ISO镜像

或者

右键虚拟机设置,找到CD/DVD,选择使用ISO映像文件,在VMware安装目录下找到linux.iso。

挂载iso文件
mount -t auto /dev/cdrom /mnt/cdromtemp


如果/mnt下没有cdromtemp文件夹
mkdir /mnt/cdromtemp

解压

tar -zxvf VMwareTools-10.3.2-9925305.tar.gz
cd vmware-tools-distrib
./vmware-install.pl

[root@nailwl dev]# cd /mnt/
[root@nailwl mnt]# ll
total 0
[root@nailwl mnt]# mkdir cdromtemp
[root@nailwl mnt]# ll
total 4
drwxr-xr-x. 2 root root 4096 Mar  8 17:22 cdromtemp
[root@nailwl mnt]# mount -t auto /dev/cdrom /mnt/cdromtemp
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@nailwl mnt]# cd /mnt/cdromtemp/
[root@nailwl cdromtemp]# ll
total 55899
-r-xr-xr-x. 1 root root     1975 Sep  4  2018 manifest.txt
-r-xr-xr-x. 1 root root     4413 Sep  4  2018 run_upgrader.sh
-r--r--r--. 1 root root 55491492 Sep  4  2018 VMwareTools-10.3.2-9925305.tar.gz
-r-xr-xr-x. 1 root root   847468 Sep  4  2018 vmware-tools-upgrader-32
-r-xr-xr-x. 1 root root   893640 Sep  4  2018 vmware-tools-upgrader-64
[root@nailwl cdromtemp]# 

对VMwareTools-10.3.2-9925305.tar.gz文件进行解压缩

命令为:

tar -zxvf VMwareTools-10.0.10-4301679.tar.gz

解压后寻找类似文件夹vmware-tools-distrib,进入文件夹执行vmware-install.pl

[root@nailwl vmtoollishi]# cd vmware-tools-distrib/
[root@nailwl vmware-tools-distrib]# ll
total 392
drwxr-xr-x.  2 root root   4096 Sep  4  2018 bin
drwxr-xr-x.  5 root root   4096 Sep  4  2018 caf
drwxr-xr-x.  2 root root   4096 Sep  4  2018 doc
drwxr-xr-x.  5 root root   4096 Sep  4  2018 etc
-rw-r--r--.  1 root root 142493 Sep  4  2018 FILES
-rw-r--r--.  1 root root   2538 Sep  4  2018 INSTALL
drwxr-xr-x.  2 root root   4096 Sep  4  2018 installer
drwxr-xr-x. 14 root root   4096 Sep  4  2018 lib
drwxr-xr-x.  3 root root   4096 Sep  4  2018 vgauth
-rwxr-xr-x.  1 root root 223540 Sep  4  2018 vmware-install.pl
[root@nailwl vmware-tools-distrib]# ./vmware-install.pl 

执行之后的过程如下,我进行了记录

[root@nailwl 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

INPUT: [yes]

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Common Agent:                                           [  OK  ]
   VGAuthService:                                          [  OK  ]
   VMware User Agent (vmware-user):                        [  OK  ]
   Blocking file system:                                   [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]
   VM communication interface socket family:               [  OK  ]
   VM communication interface:                             [  OK  ]

Stopping Thinprint services in the virtual machine:
   Stopping Virtual Printing daemon:                                   done

This program previously created the directory 
/var/lib/vmware-caf/pme/data/input, and was about to remove it. Since there are
files in that directory that this program did not create, it will not be 
removed.

This program previously created the directory /var/lib/vmware-caf/pme/data, and
was about to remove it. Since there are files in that directory that this 
program did not create, it will not be removed.

This program previously created the directory /usr/lib/vmware-caf/pme/bin, and 
was about to remove it. Since there are files in that directory that this 
program did not create, it will not be removed.

This program previously created the directory /etc/vmware-caf/pme/config, and 
was about to remove it. Since there are files in that directory that this 
program did not create, it will not be removed.

This program previously created the directory /usr/lib/vmware-caf/pme, and was 
about to remove it. Since there are files in that directory that this program 
did not create, it will not be removed.

This program previously created the directory /var/lib/vmware-caf/pme, and was 
about to remove it. Since there are files in that directory that this program 
did not create, it will not be removed.

This program previously created the directory /var/lib/vmware-caf, and was 
about to remove it. Since there are files in that directory that this program 
did not create, it will not be removed.

This program previously created the directory /usr/lib/vmware-caf, and was 
about to remove it. Since there are files in that directory that this program 
did not create, it will not be removed.

This program previously created the directory /etc/vmware-caf/pme, and was 
about to remove it. Since there are files in that directory that this program 
did not create, it will not be removed.

This program previously created the directory /etc/vmware-tools, and was about 
to remove it. Since there are files in that directory that this program did not
create, it will not be removed.

This program previously created the directory /etc/vmware-caf, and was about to
remove it. Since there are files in that directory that this program did not 
create, it will not be removed.

File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.0.

The removal of VMware Tools 10.0.5 build-3228253 for Linux completed 
successfully.

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/)? 
[/etc/rc.d] 

INPUT: [/etc/rc.d]  default

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

INPUT: [/etc/rc.d/init.d]  default

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

INPUT: [/usr/sbin]  default

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

INPUT: [/usr/lib/vmware-tools]  default

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

INPUT: [yes]

In which directory do you want to install the common agent library files? 
[/usr/lib] 

INPUT: [/usr/lib]  default

In which directory do you want to install the common agent transient files? 
[/var/lib] 

INPUT: [/var/lib]  default

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

INPUT: [/usr/share/doc/vmware-tools]  default

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] 

INPUT: [yes]  default

The installation of VMware Tools 10.3.2 build-9925305 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] 

INPUT: [yes]  default

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.

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

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

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] 

INPUT: [yes]  default


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] 
INPUT: [yes]  default

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?
[no] 

INPUT: [no]  default


Disabling timer-based audio scheduling in pulseaudio.

Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed 
if you want to enable Common Agent (caf). [yes] 

INPUT: [yes]  default

Do you want to enable Common Agent (caf)? [no] 

INPUT: [no]  default



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.

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.

vmware-tools start/running
The configuration of VMware Tools 10.3.2 build-9925305 for Linux for this 
running kernel completed successfully.

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

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/sr0 ...
Found VMware Tools CDROM mounted at /mnt/cdromtemp. Ejecting device /dev/sr0 
...
umount: /mnt/cdromtemp: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
eject: unmount of `/mnt/cdromtemp' failed
Eject Failed:  If possible manually eject the Tools installer from the guest 
cdrom mounted at /mnt/cdromtemp before canceling tools install on the host.
You have new mail in /var/spool/mail/root
[root@nailwl vmware-tools-distrib]# 
发布了630 篇原创文章 · 获赞 20 · 访问量 476万+

猜你喜欢

转载自blog.csdn.net/nailwl/article/details/104737128
今日推荐