« 仮想マシンの編集 / vSphere 5.5 (ESXi 5.5), Web Client | トップページ | DRS : vSphere Distributed Resource Scheduler : システム負荷に応じた仮想マシンの自動移動 / vSphere 5.5 (ESXi 5.5), Web Client »

VMware Tools のインストール(Linux / CentOS 6.4) / vSphere 5.5 (ESXi 5.5), Web Client

CentOS 6.4 に VMware Tools をインストールするには開発ツールが必要です。


【開発ツールのインストール】

[root@vm003 ~]# yum groupinstall 'Development tools'
Loaded plugins: fastestmirror
base                                                                                             | 3.7 kB     00:00
base/primary_db                                                                                  | 4.4 MB     00:03
extras                                                                                           | 3.4 kB     00:00
extras/primary_db                                                                                |  18 kB     00:00
updates                                                                                          | 3.4 kB     00:00
updates/primary_db                                                                               | 5.1 MB     00:02
Setting up Group Process
Determining fastest mirrors
 * base: mirror.fairway.ne.jp
 * extras: mirror.fairway.ne.jp
 * updates: mirror.fairway.ne.jp
base/group_gz                                                                                    | 212 kB     00:00
Package binutils-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
--> Processing Dependency: perl >= 5.005_03 for package: autoconf-2.63-5.1.el6.noarch
--> Processing Dependency: perl >= 5.005 for package: autoconf-2.63-5.1.el6.noarch

途中省略

--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.8.1-1.el6.x86_64
--> Running transaction check
---> Package libXau.x86_64 0:1.0.6-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                          Arch             Version                                      Repository         Size
========================================================================================================================
Installing:
 autoconf                         noarch           2.63-5.1.el6                                 base              781 k
 automake                         noarch           1.11.1-4.el6                                 base              550 k
 bison                            x86_64           2.4.1-5.el6                                  base              637 k

途中省略

 zip                              x86_64           3.0-1.el6                                    base              260 k
Updating for dependencies:
 glibc                            x86_64           2.12-1.107.el6_4.5                           updates           3.8 M
 glibc-common                     x86_64           2.12-1.107.el6_4.5                           updates            14 M

Transaction Summary
========================================================================================================================
Install     116 Package(s)
Upgrade       2 Package(s)

Total download size: 122 M
Is this ok [y/N]: y
Downloading Packages:
(1/118): alsa-lib-1.0.22-3.el6.x86_64.rpm                                                        | 370 kB     00:01
(2/118): apr-1.3.9-5.el6_2.x86_64.rpm                                                            | 123 kB     00:00
(3/118): apr-util-1.3.9-3.el6_0.1.x86_64.rpm                                                     |  87 kB     00:00

途中省略

(116/118): xz-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm                                        | 137 kB     00:00
(117/118): xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm                            |  16 kB     00:00
(118/118): zip-3.0-1.el6.x86_64.rpm                                                              | 260 kB     00:00
------------------------------------------------------------------------------------------------------------------------
Total                                                                                   282 kB/s | 122 MB     07:23
警告: rpmts_HdrFromFdno: ヘッダ V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) 
 Package: centos-release-6-4.el6.centos.10.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : glibc-common-2.12-1.107.el6_4.5.x86_64                                                             1/120
  Updating   : glibc-2.12-1.107.el6_4.5.x86_64                                                                    2/120
  Installing : 1:perl-Pod-Escapes-1.04-131.el6_4.x86_64                                                           3/120

途中省略

  Verifying  : subversion-1.6.11-9.el6_4.x86_64                                                                 118/120
  Verifying  : glibc-common-2.12-1.107.el6.x86_64                                                               119/120
  Verifying  : glibc-2.12-1.107.el6.x86_64                                                                      120/120

Installed:
  autoconf.noarch 0:2.63-5.1.el6             automake.noarch 0:1.11.1-4.el6       bison.x86_64 0:2.4.1-5.el6
  byacc.x86_64 0:1.9.20070509-7.el6          cscope.x86_64 0:15.6-6.el6           ctags.x86_64 0:5.8-2.el6
  cvs.x86_64 0:1.11.23-15.el6                diffstat.x86_64 0:1.51-2.el6         doxygen.x86_64 1:1.6.1-6.el6
  elfutils.x86_64 0:0.152-1.el6              flex.x86_64 0:2.5.35-8.el6           gcc.x86_64 0:4.4.7-3.el6
  gcc-c++.x86_64 0:4.4.7-3.el6               gcc-gfortran.x86_64 0:4.4.7-3.el6    gettext.x86_64 0:0.17-16.el6
  git.x86_64 0:1.7.1-3.el6_4.1               indent.x86_64 0:2.2.10-7.el6         intltool.noarch 0:0.41.0-1.1.el6
  libtool.x86_64 0:2.2.6-15.5.el6            make.x86_64 1:3.81-20.el6            patch.x86_64 0:2.6-6.el6
  patchutils.x86_64 0:0.3.1-3.1.el6          pkgconfig.x86_64 1:0.23-9.1.el6      rcs.x86_64 0:5.7-37.el6
  redhat-rpm-config.noarch 0:9.0.3-42.el6    rpm-build.x86_64 0:4.8.0-32.el6      subversion.x86_64 0:1.6.11-9.el6_4
  swig.x86_64 0:1.3.40-6.el6                 systemtap.x86_64 0:1.8-7.el6

Dependency Installed:
  alsa-lib.x86_64 0:1.0.22-3.el6                        apr.x86_64 0:1.3.9-5.el6_2
  apr-util.x86_64 0:1.3.9-3.el6_0.1                     atk.x86_64 0:1.28.0-2.el6
  avahi-libs.x86_64 0:0.6.25-12.el6                     cairo.x86_64 0:1.8.8-3.1.el6

途中省略

  systemtap-runtime.x86_64 0:1.8-7.el6                  unzip.x86_64 0:6.0-1.el6
  xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6          xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6
  zip.x86_64 0:3.0-1.el6

Dependency Updated:
  glibc.x86_64 0:2.12-1.107.el6_4.5                       glibc-common.x86_64 0:2.12-1.107.el6_4.5

Complete!
[root@vm003 ~]# 



【VMware Tools のインストール】

インストール先の仮想マシンを右クリック → [すべての vCenter アクション] → [ゲスト OS] → [VMware Tools のインストール]の順にクリック

[マウント]をクリック

[root@vm003 ~]# mount -t iso9660 /dev/cdrom /mnt
mount: ブロックデバイス /dev/sr0 は書き込み禁止です、読込み専用でマウントします
[root@vm003 ~]# mount
/dev/mapper/vg_vm003-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_vm003-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sr0 on /mnt type iso9660 (ro)
[root@vm003 ~]# ls -la /mnt
合計 61900
dr-xr-xr-x.  2 root root     2048  8月 18 03:14 2013 .
dr-xr-xr-x. 22 root root     4096 11月  1 20:56 2013 ..
-r--r--r--.  1 root root 61978217  8月 18 02:51 2013 VMwareTools-9.4.0-1280544.tar.gz
-r-xr-xr-x.  1 root root     1961  8月 18 02:51 2013 manifest.txt
-r--r--r--.  1 root root     1847  8月 18 02:49 2013 run_upgrader.sh
-r-xr-xr-x.  1 root root   693484  8月 18 02:50 2013 vmware-tools-upgrader-32
-r-xr-xr-x.  1 root root   702400  8月 18 02:50 2013 vmware-tools-upgrader-64
[root@vm003 ~]# cp /mnt/VMwareTools-9.4.0-1280544.tar.gz ./
[root@vm003 ~]# ls
VMwareTools-9.4.0-1280544.tar.gz  anaconda-ks.cfg  install.log  install.log.syslog
[root@vm003 ~]# umount /dev/cdrom
[root@vm003 ~]# mount
/dev/mapper/vg_vm003-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_vm003-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@vm003 ~]# tar zxvf ./VMwareTools-9.4.0-1280544.tar.gz
vmware-tools-distrib/
vmware-tools-distrib/lib/
vmware-tools-distrib/lib/plugins64/

途中省略

vmware-tools-distrib/doc/open_source_licenses.txt
vmware-tools-distrib/doc/INSTALL
vmware-tools-distrib/vmware-install.pl
[root@vm003 ~]# ls
VMwareTools-9.4.0-1280544.tar.gz  anaconda-ks.cfg  install.log  install.log.syslog  vmware-tools-distrib
[root@vm003 ~]# cd ./vmware-tools-distrib/
[root@vm003 vmware-tools-distrib]# ls
FILES  INSTALL  bin  doc  etc  installer  lib  vmware-install.pl
[root@vm003 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 9.4.0 build-1280544 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...


Making sure services for VMware Tools are stopped.



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


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


The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.

Use the flag --clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.

Use the flag --clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.

Use the flag --clobber-kernel-modules=vmmemctl to override.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [no] [Enter]

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


The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[no] [Enter]

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can be

enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] [Enter]

No X install found.

Creating a new initrd boot image for the kernel.
vmware-tools start/running
The configuration of VMware Tools 9.4.0 build-1280544 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 "/usr/bin/vmware-toolbox-cmd" from the
command line.

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@vm003 vmware-tools-distrib]# 



【再起動】

[root@vm003 vmware-tools-distrib]# reboot


再起動終了


【確認】
VMware Tools がインストール済みであることを確認

« 仮想マシンの編集 / vSphere 5.5 (ESXi 5.5), Web Client | トップページ | DRS : vSphere Distributed Resource Scheduler : システム負荷に応じた仮想マシンの自動移動 / vSphere 5.5 (ESXi 5.5), Web Client »

VMware ESXi」カテゴリの記事