« yum コマンドで DVD(ISO イメージファイル)からパッケージをインストールできるようにする / CentOS 6.5 (64-bit) | トップページ | iptables : filter テーブル / CentOS 6.5 (64-bit) »

VMware Tools のインストール / CentOS 6.5 (64-bit)

CentOS 6.5 を minimal でインストールした場合、VMware Tools をインストールするには先に 'Development Tools' をインストールする必要があります。インターネットに繋げることができる環境の場合はインターネット経由で、繋げることができない環境の場合はインストール DVD(ISO イメージファイル)からインストールします。



【インターネット経由で 'Development Tools' のインストール】

[root@centos ~]# yum groupinstall 'Development Tools'
Loaded plugins: fastestmirror
base                                                                                   | 3.7 kB     00:00
base/primary_db                                                                        | 4.4 MB     00:02
extras                                                                                 | 3.4 kB     00:00
extras/primary_db                                                                      |  19 kB     00:00
updates                                                                                | 3.4 kB     00:00
updates/primary_db                                                                     | 826 kB     00:00
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                                                                          | 220 kB     00:00
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
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: perl >= 5.000 for package: autoconf-2.63-5.1.el6.noarch

途中省略

---> Package libxcb.x86_64 0:1.8.1-1.el6 will be installed
--> 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

途中省略

 xz                            x86_64        4.999.9-0.3.beta.20091007git.el6            base           137 k
 xz-lzma-compat                x86_64        4.999.9-0.3.beta.20091007git.el6            base            16 k
 zip                           x86_64        3.0-1.el6                                   base           260 k

Transaction Summary
==============================================================================================================
Install     113 Package(s)

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

途中省略

(111/113): xz-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm                              | 137 kB     00:00
(112/113): xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm                  |  16 kB     00:00
(113/113): zip-3.0-1.el6.x86_64.rpm                                                    | 260 kB     00:01
--------------------------------------------------------------------------------------------------------------
Total                                                                         362 kB/s | 105 MB     04:58
warning: rpmts_HdrFromFdno: Header 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-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)
 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
  Installing : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                                   1/113
  Installing : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                                              2/113
  Installing : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                                    3/113

途中省略

  Installing : ctags-5.8-2.el6.x86_64                                                                 111/113
  Installing : diffstat-1.51-2.el6.x86_64                                                             112/113
  Installing : cscope-15.6-6.el6.x86_64                                                               113/113
  Verifying  : pakchois-0.4-3.2.el6.x86_64                                                              1/113
  Verifying  : cscope-15.6-6.el6.x86_64                                                                 2/113
  Verifying  : libXdamage-1.1.3-4.el6.x86_64                                                            3/113

途中省略

  Verifying  : libICE-1.0.6-1.el6.x86_64                                                              111/113
  Verifying  : subversion-1.6.11-9.el6_4.x86_64                                                       112/113
  Verifying  : systemtap-2.3-4.el6_5.x86_64                                                           113/113

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

途中省略

  redhat-rpm-config.noarch 0:9.0.3-42.el6.centos               rpm-build.x86_64 0:4.8.0-37.el6
  subversion.x86_64 0:1.6.11-9.el6_4                           swig.x86_64 0:1.3.40-6.el6
  systemtap.x86_64 0:2.3-4.el6_5

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

途中省略

  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

Complete!
[root@centos ~]#




【インストール DVD(ISO イメージファイル)から 'Development Tools' のインストール】 ※事前にこの処理をする必要あり

インストール DVD(ISO イメージファイル)をマウント → インストール DVD(ISO イメージファイル)から"Development Tools"をインストール → インストール DVD をアンマウント

[root@centos yum.repos.d]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@centos yum.repos.d]# yum --disablerepo=\* --enablerepo=centos-dvd groupinstall 'Development Tools'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Group Process
Loading mirror speeds from cached hostfile
centos-dvd/group_gz                                                                    | 220 kB     00:00 ...
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
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

途中省略

--> 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                             centos-dvd        781 k
 automake                      noarch        1.11.1-4.el6                             centos-dvd        550 k
 bison                         x86_64        2.4.1-5.el6                              centos-dvd        637 k

途中省略

 xz                            x86_64        4.999.9-0.3.beta.20091007git.el6         centos-dvd        137 k
 xz-lzma-compat                x86_64        4.999.9-0.3.beta.20091007git.el6         centos-dvd         16 k
 zip                           x86_64        3.0-1.el6                                centos-dvd        260 k

Transaction Summary
==============================================================================================================
Install     113 Package(s)

Total download size: 105 M
Installed size: 310 M
Is this ok [y/N]: y
Downloading Packages:
--------------------------------------------------------------------------------------------------------------
Total                                                                          10 MB/s | 105 MB     00:10
warning: rpmts_HdrFromFdno: Header 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-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5)
 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
  Installing : 1:perl-Pod-Escapes-1.04-136.el6.x86_64                                                   1/113
  Installing : 1:perl-Module-Pluggable-3.90-136.el6.x86_64                                              2/113
  Installing : 1:perl-Pod-Simple-3.13-136.el6.x86_64                                                    3/113

途中省略

  Installing : 1:doxygen-1.6.1-6.el6.x86_64                                                           111/113
  Installing : diffstat-1.51-2.el6.x86_64                                                             112/113
  Installing : cscope-15.6-6.el6.x86_64                                                               113/113
  Verifying  : pakchois-0.4-3.2.el6.x86_64                                                              1/113
  Verifying  : cscope-15.6-6.el6.x86_64                                                                 2/113
  Verifying  : libXdamage-1.1.3-4.el6.x86_64                                                            3/113

途中省略

  Verifying  : libedit-2.11-4.20080712cvs.1.el6.x86_64                                                111/113
  Verifying  : libICE-1.0.6-1.el6.x86_64                                                              112/113
  Verifying  : subversion-1.6.11-9.el6_4.x86_64                                                       113/113

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

途中省略

  redhat-rpm-config.noarch 0:9.0.3-42.el6.centos               rpm-build.x86_64 0:4.8.0-37.el6
  subversion.x86_64 0:1.6.11-9.el6_4                           swig.x86_64 0:1.3.40-6.el6
  systemtap.x86_64 0:2.3-3.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

途中省略

  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

Complete!
[root@centos yum.repos.d]# umount /mnt
[root@centos yum.repos.d]#




【VMware Tools のインストール】

VMware Tools のインストール → 再起動


[root@centos yum.repos.d]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@centos yum.repos.d]# cd
[root@centos ~]# cp /mnt/VMwareTools-9.6.1-1378637.tar.gz ./
[root@centos ~]# tar zxvf ./VMwareTools-9.6.1-1378637.tar.gz
vmware-tools-distrib/
vmware-tools-distrib/doc/
vmware-tools-distrib/doc/INSTALL

途中省略

vmware-tools-distrib/installer/thinprint.conf
vmware-tools-distrib/installer/services.sh
vmware-tools-distrib/installer/thinprint.sh
[root@centos ~]# cd ./vmware-tools-distrib/
[root@centos 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.6.1 build-1378637 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? [yes] [Enter]

Could not create the '/mnt/hgfs' directory.  Please make sure it is writeable
and/or not currently in use.
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.

If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ] [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?
[yes] [Enter]

NOTICE:  It appears your system does not have the required fuse packages
installed.  The VMware blocking filesystem requires the fuse packages and its
libraries to function properly.  Please install the fuse or fuse-utils package
using your systems package management utility and re-run this script in order
to enable the VMware blocking filesystem.

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-thinprint start/running
vmware-tools start/running
The configuration of VMware Tools 9.6.1 build-1378637 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

Found VMware Tools CDROM mounted at /mnt. Ejecting device /dev/sr0 ...
No eject (or equivilant) command could be located.
Eject Failed:  If possible manually eject the Tools installer from the guest
cdrom mounted at /mnt before canceling tools install on the host.
/sbin/restorecon:  Warning no default label for /tmp/vmware-block-restore0/tmp_file
[root@centos vmware-tools-distrib]# reboot


再起動終了(VMware Tools のインストール終了)

« yum コマンドで DVD(ISO イメージファイル)からパッケージをインストールできるようにする / CentOS 6.5 (64-bit) | トップページ | iptables : filter テーブル / CentOS 6.5 (64-bit) »

Linux」カテゴリの記事