miércoles, 19 de mayo de 2021

Instalar VMWare Tools en CentOS 6 "legacy"



Cómo instalar VMWare Tools en CentOS 6.



El otro día fui a instalar VMWare Tools en un CentOS 6 y me encontré con el siguiente mensaje:

[root@wgbcncentreon ~]# yum install open-vm-tools -y Complementos cargados:fastestmirror Configurando el proceso de actualización Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base

Esto ocurre porque CentOS 6 es un sistema operativo "legacy" y los repositorios principales estám desactivados. Si queremos instalar cualquier paquete en un CentOS 6 - como VMWare Tools - deberemos instalar primero el repositorio EPEL (Extra Packages for Enterprise Linux) en él:

[root@centos66 ~]# rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6 [root@centos66 ~]# rpm -ivh https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm

Acto seguido instalamos las VMWare tools:

[root@centos66 ~]# yum install open-vm-tools -y Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: centos.ipserverone.com * epel: kartolo.sby.datautama.net.id * extras: centos.ipserverone.com * updates: centos.ipserverone.com Resolving Dependencies --> Running transaction check ---> Package open-vm-tools.x86_64 0:9.4.6-1.el6 will be installed --> Processing Dependency: libicuuc.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64 --> Processing Dependency: libicui18n.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64 --> Processing Dependency: libicudata.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64 --> Processing Dependency: libdnet.so.1()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64 --> Running transaction check ---> Package libdnet.x86_64 0:1.12-6.el6 will be installed ---> Package libicu.x86_64 0:4.2.1-9.1.el6_2 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================= Package Arch Version Repository Size ======================================================================================= Installing: open-vm-tools x86_64 9.4.6-1.el6 epel 402 k Installing for dependencies: libdnet x86_64 1.12-6.el6 epel 28 k libicu x86_64 4.2.1-9.1.el6_2 base 4.9 M Transaction Summary ======================================================================================= Install 3 Package(s) Total download size: 5.3 M Installed size: 20 M Downloading Packages: (1/3): libdnet-1.12-6.el6.x86_64.rpm | 28 kB 00:00 http://centos.ipserverone.com/centos/6.6/os/x86_64/Packages/libicu-4.2.1-9.1.el6_2.x86_64.rpm: [Errno 12] Timeout on http://centos.ipserverone.com/centos/6.6/os/x86_64/Packages/libicu-4.2.1-9.1.el6_2.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. (2/3): libicu-4.2.1-9.1.el6_2.x86_64.rpm | 4.9 MB 01:21 (3/3): open-vm-tools-9.4.6-1.el6.x86_64.rpm | 402 kB 00:04 --------------------------------------------------------------------------------------- Total 44 kB/s | 5.3 MB 02:04 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : libdnet-1.12-6.el6.x86_64 1/3 Installing : libicu-4.2.1-9.1.el6_2.x86_64 2/3 Installing : open-vm-tools-9.4.6-1.el6.x86_64 3/3 Verifying : libicu-4.2.1-9.1.el6_2.x86_64 1/3 Verifying : open-vm-tools-9.4.6-1.el6.x86_64 2/3 Verifying : libdnet-1.12-6.el6.x86_64 3/3 Installed: open-vm-tools.x86_64 0:9.4.6-1.el6 Dependency Installed: libdnet.x86_64 0:1.12-6.el6 libicu.x86_64 0:4.2.1-9.1.el6_2 Complete!

Por último iniciamos el servicio vmtoolsd:

[root@centos66 ~]# service vmtoolsd start

Tras esto, ya tenemos la última versión de VMWare Tools para CentOS 6 en funcionamiento.
0

0 comentarios:

Publicar un comentario