« カスタム構成の仮想マシンの作成 / ESXi 5.5 (Hypervisor) | トップページ | ESXi ホストの起動時に SSH 接続を有効にする / ESXi 5.5 (Hypervisor) »

Linux(CentOS 6.4) 仮想マシンに VMware Tools をインストール / ESXi 5.5 (Hypervisor)

[インベントリ] → [仮想マシン] → [ゲスト] → [VMware Tools のインストール/アップグレード]の順にクリック

[OK]をクリック

コンソールから VMware Tools をマウント

[root@vm002 ~]# mount
/dev/mapper/vg_vm002-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_vm002-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@vm002 ~]# mount /dev/cdrom /media
mount: ブロックデバイス /dev/sr0 は書き込み禁止です、読込み専用でマウントします
[root@vm002 ~]# mount
/dev/mapper/vg_vm002-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_vm002-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sr0 on /media type iso9660 (ro)
[root@vm002 ~]# ls -l /media/
合計 61894
-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@vm002 ~]#


適当なフォルダに"VMwareTools-9.4.0-1280544.tar.gz"をコピー → 解凍

[root@vm002 ~]# mkdir ./vmware
[root@vm002 ~]# cd ./vmware/
[root@vm002 vmware]# cp /media/VMwareTools-9.4.0-1280544.tar.gz .
[root@vm002 vmware]# ls
VMwareTools-9.4.0-1280544.tar.gz
[root@vm002 vmware]# 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/README
vmware-tools-distrib/doc/open_source_licenses.txt
vmware-tools-distrib/doc/INSTALL
vmware-tools-distrib/vmware-install.pl
[root@vm002 vmware]# ls
VMwareTools-9.4.0-1280544.tar.gz  vmware-tools-distrib
[root@vm002 vmware]#


"vmware-install.pl"を実行してVMware Tools をインストール → 再起動

[root@vm002 vmware]# cd ./vmware-tools-distrib/
[root@vm002 vmware-tools-distrib]# ls
FILES  INSTALL  bin  doc  etc  installer  lib  vmware-install.pl
[root@vm002 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]

Initializing...


Making sure services for VMware Tools are stopped.

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


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]

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]

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]

No X install found.

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  ]
   VM communication interface:                             [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Guest operating system daemon:                          [  OK  ]
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

Found VMware Tools CDROM mounted at /media. Ejecting device /dev/sr0 ...
[root@vm002 vmware-tools-distrib]# reboot


再起動後に VMware Tools をインストールした仮想マシンを選択 → [サマリ]タブをクリック
※ VMware Tools が実行中であることを確認

« カスタム構成の仮想マシンの作成 / ESXi 5.5 (Hypervisor) | トップページ | ESXi ホストの起動時に SSH 接続を有効にする / ESXi 5.5 (Hypervisor) »

VMware ESXi」カテゴリの記事