« ESX ホストの仮想マシンに CentOS5.5(32-bit) をデフォルトインストールする / CentOS5.5(32-bit) on ESX 4.1 | トップページ | ESX ホストのデータストア上にカスタム構成の仮想マシンを作成する / ESX 4.1 »

ESX ホスト上の CentOS5.5(32-bit) に"VMware Tools"をインストールする / CentOS5.5(32-bit) on ESX 4.1

CentOS 5.5 (32-bit) に"VMware Tools"をインストールします。ここでは、作業ログを採取するために、主な作業は Tera Term で SSH 接続をして行っています。GNOME 端末などで行っても同じ結果になると思います。


仮想マシンコンソールから、[仮想マシン] → [ゲスト] → [VMware Tools のインストール/アップグレード]の順にクリックします。

VMware Tools に関する注意事項などが表示されます。[OK]をクリックします。

VMware Tools のイメージがマウントされました。


ここからは Tera Term で接続して、作業を行っています。接続時のアカウントは root です。

VMware Tools のディスクイメージがマウントされていることを確認します。

[root@localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/hdc on /media/VMware Tools type iso9660 (ro,noexec,nosuid,nodev,uid=0)

ローカルディスクに VMware Tools のファイルをコピーします。

[root@localhost ~]# mkdir ./VMwareTools
[root@localhost ~]# cd ./VMwareTools/
[root@localhost VMwareTools]# ls -l /media/VMware\ Tools/
合計 88450
-r--r--r-- 1 root root 90569985  5月  9  2010 VMwareTools-8.3.2-257589.tar.gz
-r--r--r-- 1 root root     1987  5月  9  2010 manifest.txt
[root@localhost VMwareTools]# cp /media/VMware\ Tools/VMwareTools-8.3.2-257589.tar.gz ./
[root@localhost VMwareTools]# ls -l
合計 88544
-r--r--r-- 1 root root 90569985 12月 26 05:23 VMwareTools-8.3.2-257589.tar.gz

VMware Tools のディスクイメージがマウントを解除します。

[root@localhost VMwareTools]# eject

ローカルディスクにコピーした VMware Tools のファイルを解凍します。

[root@localhost VMwareTools]# tar zxvf ./VMwareTools-8.3.2-257589.tar.gz
vmware-tools-distrib/
vmware-tools-distrib/lib/
vmware-tools-distrib/lib/modules/
途中省略
vmware-tools-distrib/installer/services.sh
vmware-tools-distrib/INSTALL
vmware-tools-distrib/FILES

解凍後の状態を確認します。

[root@localhost VMwareTools]# ls -l
合計 88552
-r--r--r-- 1 root root 90569985 12月 26 05:23 VMwareTools-8.3.2-257589.tar.gz
drwxr-xr-x 7 root root     4096  5月  9  2010 vmware-tools-distrib
[root@localhost VMwareTools]# cd ./vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls -l
合計 572
-rw-r--r--  1 root root 525881  5月  9  2010 FILES
lrwxrwxrwx  1 root root     13 12月 26 05:25 INSTALL -> ./doc/INSTALL
drwxr-xr-x  2 root root   4096  5月  9  2010 bin
drwxr-xr-x  2 root root   4096  5月  9  2010 doc
drwxr-xr-x  3 root root   4096  5月  9  2010 etc
drwxr-xr-x  2 root root   4096  5月  9  2010 installer
drwxr-xr-x 17 root root   4096  5月  9  2010 lib
lrwxrwxrwx  1 root root     31 12月 26 05:25 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl

インストーラー(vmware-install.pl)を起動し、VMware Tools をインストールします。

[root@localhost vmware-tools-distrib]# ./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] ← [Enter]キーを押します

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d] ← [Enter]キーを押します

What is the directory that contains the init scripts?
[/etc/rc.d/init.d] ← [Enter]キーを押します

In which directory do you want to install the daemon files?
[/usr/sbin] ← [Enter]キーを押します

In which directory do you want to install the library files?
[/usr/lib/vmware-tools] ← [Enter]キーを押します

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] ← [Enter]キーを押します

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools] ← [Enter]キーを押します

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] ← [Enter]キーを押します

The installation of VMware Tools 8.3.2 build-257589 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...


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]


Found a compatible pre-built module for vmmemctl.  Installing it...


Found a compatible pre-built module for vmhgfs.  Installing it...


Found a compatible pre-built module for vmxnet.  Installing it...


Found a compatible pre-built module for vmblock.  Installing it...


Found a compatible pre-built module for vmci.  Installing it...


Found a compatible pre-built module for vsock.  Installing it...


Found a compatible pre-built module for vmxnet3.  Installing it...


Found a compatible pre-built module for pvscsi.  Installing it...




Detected X.org version 7.1.


Host resolution detected as "0 x 0".


Please choose one of the following display sizes that X will start with:

[1]  "320x200"
[2]  "320x240"
[3]  "400x300"
[4]  "512x384"
[5]  "640x400"
[6]  "640x480"
[7]  "720x480"
[8]  "800x480"
[9]  "854x480"
[10]  "720x576"
[11]  "800x600"
[12]  "1024x768"
[13]  "1280x720"
[14]  "1280x768"
[15]  "1152x864"
[16]  "1280x800"
[17]  "1366x768"
[18]  "1280x960"
[19]  "1440x900"
[20]  "1280x1024"
[21]  "1400x1050"
[22]  "1680x1050"
[23]  "1600x1200"
[24]  "1920x1080"
[25]  "1920x1200"
[26]  "1920x1440"
[27]  "2048x1536"
[28]  "2560x1600"
[29]  "2560x1920"
Please enter a number between 1 and 29:

[3] 12 ← 画面の解像度を指定します


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-128.1.10.el5PAE i686 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686
Build Date: 31 March 2010
Build ID: xorg-x11-server 1.1.1-48.76.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.5339", Time: Sun Dec 26 05:30:53 2010
(++) Using config file: "/tmp/vmware-config0/XF86Config.5339"

X is running fine with the new config file.

FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
Creating a new initrd boot image for the kernel.
   Checking acpi hot plug                                  [  OK  ]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Paravirtual SCSI module:                                [  OK  ]
   Guest memory manager:                                   [  OK  ]
   Guest vmxnet fast network device:                       [  OK  ]
   VM communication interface:                             [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]

The configuration of VMware Tools 8.3.2 build-257589 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.

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.

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

Enjoy,

--the VMware team

VMware Tools のインストール後、再起動します。

[root@localhost vmware-tools-distrib]# shutdown -r now

Broadcast message from root (pts/2) (Sat Dec 25 20:33:15 2010):

The system is going down for reboot NOW!
[root@localhost vmware-tools-distrib]#

再起動後、「サービスの設定」で[VMware-tools]が実行されていることを確認出来ます。

VMware vSphere Client の仮想マシンの[サマリ]タブで、VMware Tools の起動を確認します。

« ESX ホストの仮想マシンに CentOS5.5(32-bit) をデフォルトインストールする / CentOS5.5(32-bit) on ESX 4.1 | トップページ | ESX ホストのデータストア上にカスタム構成の仮想マシンを作成する / ESX 4.1 »

OS」カテゴリの記事