virtualization/VMware

가상머신(CentOS 5.2)에 vmware-tools를 인스톨하기

yueisu 2009. 2. 27. 10:57
ESX Server상에서 CentOS의 가상머신 작성후, CUI환경에서 vmware-tools를 인스톨하는 방법입니다.

※SSH등의 원격접속으로 vmware-tools을 인스톨을 실행하면, 도중에 접속이 끊어지므로, 콘솔에서 실행을 하는 것이 좋습니다.
⑴ESX Server상에서 CentOS의 가상머신 "Install/Upgare VMware Tools" 을 선택합니다.
⑵CentOS의 가상머신 콘솔에서 다음을 실행

[root@ma-temp ~]# mount /dev/cdrom /media/
mount: block device /dev/cdrom is write-protected、mounting read-only
[root@ma-temp ~]# cd /media/
[root@ma-temp media]# ls
VMwareTools-3.5.0-110271.i386.rpm
VMwareTools-3.5.0-110271.tar.gz
[root@ma-temp media]# cp VMwareTools-3.5.0-110271.tar.gz /usr/src/VMwareTools-3.5.0-110271.tar.gz
[root@ma-temp ~]# cd ..
[root@ma-temp ~]# umount /media/
[root@ma-temp media]# cd /usr/src/
[root@ma-temp src]# tar zxvf VMwareTools-3.5.0-110271.tar.gz
.
.
vmware-tools-distrib/installer/
vmware-tools-distrib/installer/services.sh
vmware-tools-distrib/INSTALL
vmware-tools-distrib/FILES
[root@ma-temp src]# cd vmware-tools-distrib
[root@ma-temp vmware-tools-distrib]# ./vmware-install.pl
Creating a new installer database using the tar4 format.

Installing the content of the package. This may take from several minutes to
over an hour depending on the size of the package.

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] 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] yes

The installation of VMware Tools 3.5.0 build-110271 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] yes


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-i686smp-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-i686smp-RHEL5 loads perfectly in the running
kernel.

pcnet32                35269  0  #SSH등 원격접속의 경우는 이부분에서 접속이 끊어집니다.

To use the vmxnet driver, restart networking using the following commands:
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/init.d/network start

If the virtual printer feature is enabled, you will need to restart the CUPS
service to make use of this feature.

Enjoy,

--the VMware team
[root@ma-temp vmware-tools-distrib]# /etc/init.d/network stop
Shutting down loopback interfaces:            [OK]
[root@ma-temp vmware-tools-distrib]# rmmod pcnet32
[root@ma-temp vmware-tools-distrib]# rmmod vmxnet
[root@ma-temp vmware-tools-distrib]# depmod -a
[root@ma-temp vmware-tools-distrib]# modprobe vmxnet
[root@ma-temp vmware-tools-distrib]# /etc/init.d/network start
Bringing up loopback interfaces:                [OK]
Bringing up interface eth0:                         [OK]
Bringing up interface eth0:                         [OK]
[root@ma-temp vmware-tools-distrib]#