« ESXi 4.1 ホスト上の仮想マシンに CentOS5.5(32-bit) をインストールする / CentOS5.5(32-bit) on ESXi 4.1 | トップページ | コマンドラインから仮想マシンの電源をオフにする : vim-cmd vmsvc/power.off / ESXi 4.1 »

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

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


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

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

DVD ドライブに、VMware Tools がマウントされました。

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


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

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


作業用ディレクトリを作成します。

[root@vm1 ~]# mkdir ./vmware
[root@vm1 ~]# cd ./vmware/
[root@vm1 vmware]#


作業用ディレクトリへ VMware Tools のファイルをコピーします。コピー後、DVD ドライブのマウントを解除します。

[root@vm1 vmware]# ls -la /media/VMware\ Tools/
合計 47109
dr-xr-xr-x 2 root root     2048  5月 19 08:49 .
drwxr-xr-x 3 root root     4096  8月  7 07:17 ..
-r--r--r-- 1 root root 48226640  5月 19 08:49 VMwareTools-8.3.2-257589.tar.gz
-r--r--r-- 1 root root     1987  5月 19 08:48 manifest.txt
[root@vm1 vmware]# cp /media/VMware\ Tools/VMwareTools-8.3.2-257589.tar.gz ./
[root@vm1 vmware]# ls -l
合計 47156
-r--r--r-- 1 root root 48226640  8月  7 07:18 VMwareTools-8.3.2-257589.tar.gz
[root@vm1 vmware]# eject
[root@vm1 vmware]#


コピーした VMware Tools のファイルを解凍します。

[root@vm1 vmware]# tar xzvf ./VMwareTools-8.3.2-257589.tar.gz
vmware-tools-distrib/
vmware-tools-distrib/lib/
vmware-tools-distrib/lib/modules/
vmware-tools-distrib/lib/modules/binary/
vmware-tools-distrib/lib/modules/binary/2.4.9-e.24summit/
 :
途中省略
 :
vmware-tools-distrib/doc/INSTALL
vmware-tools-distrib/installer/
vmware-tools-distrib/installer/services.sh
vmware-tools-distrib/INSTALL
vmware-tools-distrib/FILES
[root@vm1 vmware]#


解凍後作成されたディレクトリ vmware-tools-distrib へ移動します。

[root@vm1 vmware]# ls
VMwareTools-8.3.2-257589.tar.gz  vmware-tools-distrib
[root@vm1 vmware]# cd ./vmware-tools-distrib/
[root@vm1 vmware-tools-distrib]# ls -l
合計 572
-rw-r--r--  1 201 201 525881  5月  9 14:38 FILES
lrwxrwxrwx  1 201 201     13  8月  7 07:19 INSTALL -> ./doc/INSTALL
drwxr-xr-x  2 201 201   4096  5月  9 14:38 bin
drwxr-xr-x  2 201 201   4096  5月  9 14:38 doc
drwxr-xr-x  3 201 201   4096  5月  9 14:38 etc
drwxr-xr-x  2 201 201   4096  5月  9 14:38 installer
drwxr-xr-x 17 201 201   4096  5月  9 14:38 lib
lrwxrwxrwx  1 201 201     31  8月  7 07:19 vmware-install.pl -> ./bin/vmware-uninstall-tools.pl
[root@vm1 vmware-tools-distrib]#


インストーラを起動し、VMware Tools をインストールします。途中、いくつか質問されますが、デフォルト回答([Enter]キーを押す)で問題ありません。画面サイズは、必要な大きさを選択します。

[root@vm1 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]

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]

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]

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 vm1.exam.local 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.3598", Time: Sat Aug  7 07:21:04 2010
(++) Using config file: "/tmp/vmware-config0/XF86Config.3598"

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

[root@vm1 vmware-tools-distrib]#


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

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

再起動が終了したら、ログインします。

VMware Tools のインストール時に指定した解像度で表示されています

« ESXi 4.1 ホスト上の仮想マシンに CentOS5.5(32-bit) をインストールする / CentOS5.5(32-bit) on ESXi 4.1 | トップページ | コマンドラインから仮想マシンの電源をオフにする : vim-cmd vmsvc/power.off / ESXi 4.1 »

OS」カテゴリの記事