如何在RHEL 7 CentOS 7上安装VMware Tools

为了获得出色的性能,VMware Tools是虚拟机(VM)的重要组件之一。它是一组实用程序,可帮助增强虚拟机的来宾操作系统(OS)的整体性能并改善对VM的管理。如果没有VMware Tools,则来宾OS性能将缺少某些重要功能。以下步骤显示了如何在RHEL 7,CentOS 7和Oracle Linux 7上安装VMware Tools 。

如何安装VMware Tools

选项1VMware推荐)– VMwareopen-vm-tools的支持

open-vm-tools是第三方VMware Tools的开源实现,并且包含一些实用程序,这些实用程序可以增强VMware环境中虚拟机的虚拟化管理,管理和功能。最终目标是使操作系统供应商和/或社区以及虚拟设备供应商能够将VMware Tools捆绑到其产品版本中。

# yum install open-vm-tools

选项2

1.安装先决条件:

# yum install perl gcc make kernel-headers kernel-devel -y

2.从vSphere Client附加vmware工具软件。

3.将vmware工具包安装到/ mnt中:

# mount /dev/cdrom /mnt

扫描二维码关注公众号,回复: 11982436 查看本文章

mount: /dev/sr0 is write-protected, mounting read-only

4.将vmware工具packagae复制到/ tmp中:

# cd /mnt

# ls

manifest.txt     VMwareTools-9.4.0-1280544.tar.gz  vmware-tools-upgrader-64

run_upgrader.sh  vmware-tools-upgrader-32

# cp -p VMwareTools-9.4.0-1280544.tar.gz /tmp

5.转到/ tmp目录并解压缩vmware工具包:

# cd /tmp

# tar xzvf VMwareTools-9.4.0-1280544.tar.gz

6.转到解压缩的文件夹vmware-tools-distrib:

# cd vmware-tools-distrib

# ls

bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl

7.运行vmware-install.pl开始安装:

# ./vmware-install.pl

例:

# ./vmware-install.pl

Creating a new VMware Tools installer database using the tar4 format.

 

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 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.4.0 build-1280544 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 vmware-tools (via systemctl):                     [  OK  ]

 

 

The module vmci has already been installed on this system by another installer

or package and will not be modified by this installer.

 

The module vsock has already been installed on this system by another installer

or package and will not be modified by this installer.

 

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

 

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please

upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

 

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?

[no]

 

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]

 

No X install found.

 

Creating a new initrd boot image for the kernel.

Starting vmware-tools (via systemctl):                     [  OK  ]

The configuration of VMware Tools 9.4.0 build-1280544 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

8.成功安装后,请确保重新挂载/ mnt:

# umount /mnt

 

猜你喜欢

转载自blog.csdn.net/allway2/article/details/109161757