投げ銭

★当サイトへの投げ銭(PayPal)★

LINK


(無償)
logo
世界中で使われるISO標準オフィスソフト(MSオフィス互換)
The Document Foundation Wiki

人気の投稿(1ヶ月間)

Ad

Ad

投げ銭

★当サイトへの投げ銭(PayPal)★

2012年4月25日水曜日

【VMware vSphere Hypervisor 5.0.0】CentOS6.2 64bit版にVMware Tools(ESXi5.0.0 515841)をインストールする【Linux CentOS6.2 64bit版】

Esxi 5.0.0のゲストCentOS 6.2 64bit版に、VMware Tools(8.6.0 build-515842)をインストールしたときのメモ


(注意)VMwareTools導入のゲストOSLinuxで、VNC-SERVERを利用したい場合

CentOS 6でyumを使用してインストールされるデフォルトのvnc-server(tiger-vnc)を利用している場合、vnc-serverが起動しなくなる不具合が発生した。
tightvnc-server 1.3.9でも不具合が生じた。(VNCクライアントに黒い画面が表示され待機状態のまま変わらなかった。)
(参照)
VMWare 5 Centos 6 VMWareTools Kill VNC 
< http://communities.vmware.com/message/1878825 > 2012年8月16日
★対策として、Turbo VNCを代わりに使用した。


用いたCentOS 6.2 64bit版は、インストーラーでDesktopタイプを選択したものである。

■VMware Tools DVDイメージをマウントした

vSphere Clientから、対象とする仮想マシンを起動し「仮想マシンコンソール」を開いた。
システムが起動した後、この「仮想マシンコンソール」を使ってVMware Tools DVDイメージをマウントした。

GNOMEにログインしておき、

「仮想マシン(V)」→「ゲスト(G)」→「VMware Toolsのインストール/アップグレード(W)」を開いた。

GNOMEのデスクトップ上に、DVDがマウントされたことを示すアイコンが現れた。

次に示すディレクトリに自動的にマウントされていた。


■マウントされたDVDイメージからtar.gzファイルを取り出し、適当な作業ディレクトリにコピーした
[root@localhost ~]# cd /media/
[root@localhost media]# ls
VMware Tools
[root@localhost media]# cd VMware\ Tools/
[root@localhost VMware Tools]# ls
VMwareTools-8.6.0-515842.tar.gz  manifest.txt


■tar.gzファイルを解凍した
[root@localhost software]# ls
VMwareTools-8.6.0-515842.tar.gz

[root@localhost software]# tar xvzf VMwareTools-8.6.0-515842.tar.gz
[root@localhost software]# ls
VMwareTools-8.6.0-515842.tar.gz  vmware-tools-distrib

[root@localhost software]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls
FILES  INSTALL  bin  doc  etc  installer  lib  vmware-install.pl




■スクリプトを実行し、質問に答えた

エンターキーを押すと表示されているデフォルト値が選択されるようだ。
以下すべて、提案されたデフォルト値を適用した。

[root@localhost 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.6.0 build-515842 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.

[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]

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]


Disabling timer-based audio scheduling in pulseaudio.


Detected X server version 1.10.4


Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

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

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

インストール作業はこれで終わり。


vSphere Clientで対象仮想マシンの「サマリ」タブ開くと、次のようになっていた。
VMware Tools:  実行(現在)



◆インストールしたVMware Toolsをアンインストールする方法

アンインストールするには、次のコマンドを実行するだけだった。(コマンドにはパスが通っているようだった。)
一部、処理に時間がかかるところがあったが、プロンプトに復帰するまで待つ必要がある。

[root@localhost vmware-tools-distrib]# vmware-uninstall-tools.pl
Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

initctl: Unknown instance:
This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules, and was about to
remove it.  Somebody else apparently did it already.

File /etc/vmware-tools/vmware-user.desktop is backed up to
/etc/vmware-tools/vmware-user.desktop.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf is backed up to
/usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is
backed up to
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.1.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangorc, and was about to remove
it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangox.aliases, and was about to
remove it.  Somebody else apparently did it already.

File /etc/dracut.conf is backed up to /etc/dracut.conf.old.1.

File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.1.


The removal of VMware Tools 8.6.0 build-425873 for Linux completed
successfully. 
Thank you for having tried this software.

投げ銭

★当サイトへの投げ銭(PayPal)★

Ad

Ad