1.11.08

Instalacion de VMWare Tools en CentOS

Me parecio interesante y necesario instalar el vmWare tools porque sin hacerlo, la pantalla no alcanza resoluciones mas alla de 800x600 o 640x320, entonces trabajar en un ambiente asi es bastante molesto, aparte se habilitan ciertas otras cosas como copy/paste entre la maquina host y el guest, bueno para no alargar el cuento aqui va el proceso... Primero instalar el compilador de c, pondre los comentarios de esta manera /* */
para que no haya confusiones

/*Primero intente instalar el compilador de C*/
[Jams@localhost ~]$ yum install gcc gcc-c++ autoconf automake

You need to be root to perform this command.

/*Como se necesita ser root, me autentique como root con el siguiente comando*/
[Jams@localhost ~]$ su -

Password:

/*Con este comando se inicia la instalacion*/
[root@localhost ~]# yum install gcc gcc-c++ autoconf automake

Setting up Install Process

Parsing package install arguments

Package gcc - 4.1.2-42.el5.x86_64 is already installed.

Package gcc-c++ - 4.1.2-42.el5.x86_64 is already installed.

Package autoconf - 2.59-12.noarch is already installed.

Package automake - 1.9.6-2.1.noarch is already installed.

Nothing to do

[root@localhost ~]# yum install gcc gcc-c++ kernel-devel

Setting up Install Process

Parsing package install arguments

Package gcc - 4.1.2-42.el5.x86_64 is already installed.

Package gcc-c++ - 4.1.2-42.el5.x86_64 is already installed.

Package kernel-devel - 2.6.18-92.el5.x86_64 is already installed.

Resolving Dependencies

--> Running transaction check

---> Package kernel-devel.x86_64 0:2.6.18-92.1.13.el5 set to be installed

--> Finished Dependency Resolution



Dependencies Resolved



=============================================================================

Package Arch Version Repository Size

=============================================================================

Installing:

kernel-devel x86_64 2.6.18-92.1.13.el5 updates 5.0 M



Transaction Summary

=============================================================================

Install 1 Package(s)

Update 0 Package(s)

Remove 0 Package(s)



Total download size: 5.0 M

Is this ok [y/N]: y

Downloading Packages:

(1/1): kernel-devel-2.6.1 100% |=========================| 5.0 MB 01:19

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897

Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) " from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

Is this ok [y/N]: y

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Installing: kernel-devel ######################### [1/1]



Installed: kernel-devel.x86_64 0:2.6.18-92.1.13.el5

Complete!

/*Al terminar esa parte, se hace que el vmWare habilite la unidad de CD con el VmWare tools, para eso hay que ir al menu VM, y poner install VMWare Tools, luego de eso aqui les pongo la lista de instrucciones para montar copiar, ojo donde ven la parte de VMWareTools-6.0.4-93057.i386, pongan su version de VMWARe Tools, porque no necesariamente sera esa*/

[root@localhost ~]# mount /dev/cdrom /mnt/cdrom

mount: mount point /mnt/cdrom does not exist

[root@localhost ~]# mkdir /mnt/cdrom

[root@localhost ~]# mount /dev/cdrom /mnt/cdrom

mount: block device /dev/cdrom is write-protected, mounting read-only

[root@localhost ~]# cp /mnt/cdrom/VMwareTools-6.0.4-93057.i386.rpm /tmp

[root@localhost ~]# cd /tmp

[root@localhost tmp]# rpm -i /tmp/VMwareTools-6.0.4-93057.i386.rpm

/*Esta es la instruccion que inicia la instalacion en si del VMWAre Tools*/
[root@localhost tmp]# vmware-config-tools.pl

/*Aparecera todo este testamento*/
Stopping VMware Tools services in the virtual machine:

Guest operating system daemon: [ OK ]

Trying to find a suitable vmmemctl module for your running kernel.



The module bld-2.6.18-8.el5-x86_64smp-RHEL5 loads perfectly in the running

kernel.



Trying to find a suitable vmhgfs module for your running kernel.



The module bld-2.6.18-8.el5-x86_64smp-RHEL5 loads perfectly in the running

kernel.



Trying to find a suitable vmblock module for your running kernel.



The module bld-2.6.18-8.el5-x86_64smp-RHEL5 loads perfectly in the running

kernel.



[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service

provides a new communication capability with the Host, primarily for

development at the moment. Would you like to enable this feature? [no] yes



Trying to find a suitable vmci module for your running kernel.



The module bld-2.6.18-8.el5-x86_64smp-RHEL5 loads perfectly in the running

kernel.







Detected X.org version 7.1.





Please choose one of the following display sizes that X will start with (1 -

15):



[1] "640x480"

[2] "800x600"

[3] "1024x768"

[4] "1152x864"

[5]
[6] "1152x900"

[7] "1280x1024"

[8] "1376x1032"

[9] "1400x900"

[10] "1400x1050"

[11] "1440x900"

[12] "1680x1050"

[13] "1600x1200"

[14] "1920x1200"

[15] "2364x1773"

Please enter a number between 1 and 15:


/*En este punto se preguntara la resolucion de la pantalla que se desea usar, ahi uno pone la que se ajuste a sus necesidades*/

[5] 11


Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/vmware-config-tools.pl line 5862, line 7.

Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/vmware-config-tools.pl line 5862, line 7.

Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/vmware-config-tools.pl line 5899, line 30.

Argument "redhat" isn't numeric in numeric eq (==) at /usr/bin/vmware-config-tools.pl line 5899, line 30.



X Window System Version 7.1.1

Release Date: 12 May 2006

X Protocol Version 11, Revision 0, Release 7.1.1

Build Operating System: Linux 2.6.18-53.1.14.el5 x86_64 Red Hat, Inc.

Current Operating System: Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64

Build Date: 24 May 2008

Build ID: xorg-x11-server 1.1.1-48.41.el5

Before reporting problems, check http://wiki.x.org

to make sure that you have the latest version.

Module Loader present

Markers: (--) probed, (**) from config file, (==) default setting,

(++) from command line, (!!) notice, (II) informational,

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.

(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.5561", Time: Sat Nov 1 22:29:24 2008

(++) Using config file: "/tmp/vmware-config0/XF86Config.5561"



X is running fine with the new config file.



FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.

Starting VMware Tools services in the virtual machine:

Switching to guest configuration: [ OK ]

Guest filesystem driver: [ OK ]

Mounting HGFS shares: [FAILED]

Guest memory manager: [ OK ]

New Host-Guest communications path: [ OK ]

Blocking file system: [ OK ]

DMA setup: [ OK ]

Guest operating system daemon: [ OK ]



The configuration of VMware Tools 6.0.4 build-93057 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 the following command:

"/usr/bin/vmware-toolbox" during an X server session.



Enjoy,



--the VMware team

Listo... VMWare Tools instalado en CentOS 5

1 comment:

yume said...

No veas cómo me alegro de haber encontrado tu blog!!

Soy nueva tanto en el mundo VMware como en linux pero para dejar de serlo me he instalado el VMware y sobre él he montado el CentOS que viene en el cd FAN (Fully Automated Nagios) con intención de también probar Nagios en el futuro. Mi historia es larga.

Mi PC real marcha sobre WindowsXP
Me instalo VMware y todo va bien.
Me instalo CentOS y me pide un password de root. Yo le pongo login: rootadmin, pass: admin.
Ejecuto el centOS y me pide un localhost login. Pruebo con varias combinaciones como rootadmin/admin, admin./admin. Y no me las coge.

Se me ocurre instalarlo y volverloa instalar y estoy en las mismas. Pruebo también a montar el CentOS sobre el virtualBox y me pasa lo mismo. De hecho, como llevo también otro proyecto de CRM, me bajo una máquina de virtualBOx que ya tiene montado un WinXP, lo ejecuto y ¡otra vez el mismo problema!

Aquí es cuando empiezo a pensar que tal vez no es problema de las máquinas y sí de mi máquina real, así que tecleo en el explorador de mi máquina real http://localhost y también me pide usuario y contraseña.

Entonces me meto en panel de control> herramientas administrativas> Servicios de IIS y veo que la carpeta donde se guardan los ficheros HTML del root tiene un usuario y una contraseña que yo no he metido y como me da la opción de meter yo una manualmente, voy y la cambio, pero no soluciono nada.

Me desinstalo el IIS y vuelvo a probar las máquinas virtuales sin éxito.

Finalmente, ejecuto de nuevo CentOS y cuando me pide el localhost login le pongo root/rootadmin y va el tio y se la traga (o eso creo) porque ahora me aparece en la línea de comandos [root@localhost ~]# y así es como he llegado a tu blog.

¿Por qué me ha cogido este login/contraseña?
¿Qué hago ahora para entrar de una vez por todas al CentOS?

Espero que al menos tú puedas ayudarme.

Muchas gracias por adelantado.