« ESX 4.1 ホスト上の仮想マシンに CentOS5.5(64-bit) をインストールする / CentOS5.5(64-bit) on ESX 4.1 | トップページ | yum コマンド実行時の参照先サーバーを理化学研究所(理研)へ変更する / CentOS5.5(64-bit) on ESX 4.1 »

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

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


"VMware Tools"をインストールする仮想マシンをクリックします。

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

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

Tera Term 等で仮想マシンに接続し、"VMware Tools"のイメージがマウントされていることを確認します。もし、マウントされていない場合は、仮想マシンコンソールから仮想マシンにログインしてください。

[root@vm1 ~]# mount[Enter]
/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)
[root@vm1 ~]# 

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

[root@vm1 ~]# mkdir ./vmwaretools[Enter]
[root@vm1 ~]# cd ./vmwaretools[Enter]
[root@vm1 vmwaretools]# ls -la /media/VMware\ Tools/[Enter]
合計 88460
dr-xr-xr-x 2 root root     2048  5月  9  2010 .
drwxr-xr-x 3 root root     4096  2月  5 17:26 ..
-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@vm1 vmwaretools]# cp /media/VMware\ Tools/VMwareTools-8.3.2-257589.tar.gz ./[Enter]
[root@vm1 vmwaretools]# ls -l[Enter]
合計 88544
-r--r--r-- 1 root root 90569985  2月  5 17:27 VMwareTools-8.3.2-257589.tar.gz
[root@vm1 vmwaretools]# 

"VMware Tools"のイメージをアンマウントします。

[root@vm1 vmwaretools]# eject[Enter]
[root@vm1 vmwaretools]# 

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

[root@vm1 vmwaretools]# tar zxvf ./VMwareTools-8.3.2-257589.tar.gz[Enter]
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@vm1 vmwaretools]# ls -la[Enter]
合計 88568
drwxr-xr-x  3 root root     4096  2月  5 17:28 .
drwxr-x--- 16 root root     4096  2月  5 17:27 ..
-r--r--r--  1 root root 90569985  2月  5 17:27 VMwareTools-8.3.2-257589.tar.gz
drwxr-xr-x  7 root root     4096  5月  9  2010 vmware-tools-distrib

インストーラーを起動し、"VMware Tools"をインストールします。

[root@vm1 vmwaretools]# cd ./vmware-tools-distrib/[Enter]
[root@vm1 vmware-tools-distrib]# ls -la[Enter]
合計 588
drwxr-xr-x  7 root root   4096  5月  9  2010 .
drwxr-xr-x  3 root root   4096  2月  5 17:28 ..
-rw-r--r--  1 root root 525881  5月  9  2010 FILES
lrwxrwxrwx  1 root root     13  2月  5 17:28 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  2月  5 17:28 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl
[root@vm1 vmware-tools-distrib]# ./vmware-install.pl[Enter]
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] [Enter]

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[Enter] ← 自分の環境にあった解像度を選択


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-164.11.1.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux vm1.exam.local 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64
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.3376", Time: Sat Feb  5 17:30:13 2011
(++) Using config file: "/tmp/vmware-config0/XF86Config.3376"

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

Enjoy,

--the VMware team

[root@vm1 vmware-tools-distrib]# 

"VMware Tools"のインストール後、仮想マシンを再起動します。

[root@vm1 vmware-tools-distrib]#  reboot[Enter]

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

« ESX 4.1 ホスト上の仮想マシンに CentOS5.5(64-bit) をインストールする / CentOS5.5(64-bit) on ESX 4.1 | トップページ | yum コマンド実行時の参照先サーバーを理化学研究所(理研)へ変更する / CentOS5.5(64-bit) on ESX 4.1 »

OS」カテゴリの記事