Actualización de las VMWare tools en Linux RedHat

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp
Share on telegram
Share on email

Cada cierto tiempo aparece una nueva nueva versión de VMWare tools y hay que ir actualizándolas para que el Host ESX se «hable» con el sistema invitado a la hora de realizar algunas operaciones en el servidor virtual.

Yo siempre las actualizo de manera interactiva. Veamos cómo se hace según la versión de VMWare que vayamos a actualizar.

Versiones de VMWare Tools 11.0.0 o superiores

Según la documentación oficial de VMWare, a partir de la versión 11.0.0, instalaremos el paquete RPM open-vm-tools, tal y como hacemos con cualquier otro paquete RPM de sistema operativo.

Paquetes de VMWare Tools para Linux

Versiones de VMWare Tools inferiores a la 11.0.0

Primero reviso el estado actual de las VMWare tools desde la consola del host:

Inicio la actualización de manera interactiva, tal y como comentaba anteriormente:

Monto la ISO de las VMWare tools en el servidor donde las voy a actualizar:

[[email protected] ~]# mkdir /mnt/cd
[[email protected] ~]# mount /dev/cdrom /mnt/cd
mount: block device /dev/sr0 is write-protected, mounting read-only
[[email protected] ~]# cd /mnt/cd
[[email protected] cd]# ll
total 56520
-r-xr-xr-x 1 root root 1994 Jul 19 2017 manifest.txt
-r-xr-xr-x 1 root root 4393 Jul 19 2017 run_upgrader.sh
-r--r--r-- 1 root root 56217262 Jul 19 2017 VMwareTools-10.1.10-6082533.tar.gz
-r-xr-xr-x 1 root root 802620 Jul 19 2017 vmware-tools-upgrader-32
-r-xr-xr-x 1 root root 848816 Jul 19 2017 vmware-tools-upgrader-64
[[email protected]abcdt1 cd]#

En este caso, es un RedHat 6.9:

[[email protected] cd]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.9 (Santiago)
Release: 6.9
Codename: Santiago
[[email protected] cd]#

Ahora actualizo el producto:

[[email protected] cd]# cp -p VMwareTools-10.1.10-6082533.tar.gz /tmp
[[email protected] cd]# cd /tmp
[[email protected] tmp]# tar xvf VMwareTools-10.1.10-6082533.tar.gz

[[email protected] vmware-tools-distrib]# pwd
/tmp/vmware-tools-distrib

[[email protected] vmware-tools-distrib]# ./vmware-install.pl -d
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

initctl: Unknown instance:
The removal of VMware Tools 9.0.16 build-3055609 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]

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.10 build-6082533 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.

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

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

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

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

Upgrading from a really old version of CAF – /etc/vmware-caf/pme/install/../config/_previous_/cafenv.config

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.1.10 build-6082533 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 /mnt/cd. Ejecting device /dev/sr0 …
[[email protected] vmware-tools-distrib]#

Comprobamos la versión:

[[email protected] vmware-tools-distrib]# vmware-toolbox-cmd -v
10.1.10.63510 (build-6082533)
[[email protected] vmware-tools-distrib]#

Y el estado desde el servidor de VMWare:

¿Te ha gustado? ¡Compártelo!

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp
Share on telegram
Share on email

SUSCRÍBETE A PUERTO53

Recibe un email periódico con los artículos más interesantes de Puerto53.com

Antes de suscribirte lee los términos y condiciones. Gracias.

Contenido Relacionado

Artículos Recientes

Deja un comentario

About Author