ウェブ、ショウジン

CentOS 5.2にVMware Toolsをインストール

2009-8-10
Category
Linux

http://narucissus.blogspot.com/2008/10/vmware-fusion-2linuxcentosvmware-tools.html
上記エントリをまるまる参考にして、Mac OS X 10.5.7上のVMware Fusion 2.0.5にVMware Toolsをインストールする。

これを入れると、VMware Fusion上で動くCentOSにシームレスにアクセス出来るようになるっていうから、きっとControl + commandとか、いちいちやらなくて済むようになるんだろう。

まず、仮想マシン(CentOS)を起動させる。

起動したら、Control + commandでいったんCentOSを抜けて、VMware Fusionのメニューから「仮想マシン > VMware Toolsのインストール」を実行。

これでCentOSに戻ると、/homeにVMware Toolsというアイコンがマウントされている。一見、デスクトップ上にあるように見えるけど、Desktopディレクトリにあるわけじゃないので注意。

これをダブルクリックして、中に入っているVMwareTools-7.9.6-173382.tar.gzというファイルを、GUI上でデスクトップのように見えている画面内の「ユーザ名 のホーム」というアイコンにドラッグしてコピー。こうすると、端末から$ cdで、ユーザホーム(/home/ユーザID)ディレクトリで確認することが出来る。

$ pwd
/home/showjin
$ ls
Desktop  VMwareTools-7.9.6-173382.tar.gz

このVMwareTools-7.9.6-173382.tar.gzをtarコマンドで展開。

$ tar xzf VMwareTools-7.9.6-173382.tar.gz

次に、VMware Toolsをインストールする前にkernel-headersとgccをインストールしておく。参照記事にはそうあったけど、すでに存在しているようなので(そういうメッセージが出た)VMware Toolsのインストールに進む。

root権限をsuで取得し、VMwareTools-7.9.6-173382.tar.gzを展開したディレクトリ(# cd /home/showjin)に移動。(この流れで進んでいればそのままでそのディレクトリのはず)

展開して出現したvmware-tools-distribというフォルダ内にcdで移動して、以下コマンドでインストールを実行。(returnとyesで進めて、モニタサイズを入力するところだけ、iMacのディスプレイサイズを指す番号を入力した)

# ./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 7.9.6 build-173382 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]

It looks like you are trying to run this program in a remote session. This
program will temporarily shut down your network connection, so you should only
run it from a local console session. Are you SURE you want to continue?
[no]

Please re-run this program from a local console shell.
Execution aborted.

Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/hdc ...
[root@localhost vmware-tools-distrib]# ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will
first uninstall the currently installed version.  Do you wish to continue?
(yes/no) [yes] yes

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]

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 /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.0.

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.

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.0.

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.

This program previously created the directory
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0, and was about to remove it.
Since there are files in that directory that this program did not create, it
will not be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib64/libconf/etc, and was about to remove it. Since
there are files in that directory that this program did not create, it will not
be removed.

This program previously created the directory
/usr/lib/vmware-tools/lib64/libconf, and was about to remove it. Since there
are files in that directory that this program did not create, it will not be
removed.

This program previously created the directory /usr/lib/vmware-tools/lib64, and
was about to remove it. Since there are files in that directory that this
program did not create, it will not be removed.

This program previously created the directory /usr/lib/vmware-tools, and was
about to remove it. Since there are files in that directory that this program
did not create, it will not be removed.

The removal of VMware Tools 7.9.6 build-173382 for Linux completed
successfully.

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]

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] yes

The installation of VMware Tools 7.9.6 build-173382 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] yes

It looks like you are trying to run this program in a remote session. This
program will temporarily shut down your network connection, so you should only
run it from a local console session. Are you SURE you want to continue?
[no] yes


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]
The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmmemctl module loads perfectly into the
running kernel.

The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmhgfs module loads perfectly into the
running kernel.

The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmxnet module loads perfectly into the
running kernel.

The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmblock module loads perfectly into the
running kernel.

[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]

The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmci module loads perfectly into the
running kernel.

The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vsock module loads perfectly into the
running kernel.



Detected X.org version
X Window System Version 7.1.1
Release Date: 12 May 2006
? 7.1 : '0.0.0'.1
Build Operating System: Linux 2.6.18-53.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-128.4.1.el5 #1 SMP
Tue Aug 4 20:19:25 EDT 2009 x86_64
Build Date: 21 January 2009
Build ID: xorg-x11-server 1.1.1-48.52.el5
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
.


Please choose one of the following display sizes that X will start with (1 -
29):

[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:

[20] 22


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-53.el5 x86_64 Red Hat, Inc.
Current Operating System: Linux localhost.localdomain 2.6.18-128.4.1.el5 #1 SMP Tue Aug 4 20:19:25 EDT 2009 x86_64
Build Date: 21 January 2009
Build ID: xorg-x11-server 1.1.1-48.52.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.24327", Time: Tue Aug 11 01:49:50 2009
(++) Using config file: "/tmp/vmware-config0/XF86Config.24327"

X is running fine with the new config file.

FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.
   Checking acpi hot plug                                  [  OK  ]
Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Guest filesystem driver:                                [  OK  ]
   Mounting HGFS shares:                                   [失敗]
   Guest memory manager:                                   [  OK  ]
   VM communication interface:                             [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Blocking file system:                                   [  OK  ]
   Guest operating system daemon:                          [  OK  ]
   Virtual Printing daemon:                                [  OK  ]

The configuration of VMware Tools 7.9.6 build-173382 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.

You will need to either manually start /usr/bin/vmware-user or log out and log
back in to this desktop session to obtain the following features: guest
resolution fit, drag and drop, and file and text copy/paste.  vmware-user is
configured to automatically start at a graphical login, but that won't take
effect until the next login.

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

再起動。

# reboot

たしかに、いちいちControl + commandキーを叩かなくても、仮想マシン(CentOS)からMacのFinderをシームレスに行き来することが可能になった。これは気分がいい。

Categories

Tag Cloud

AdMob Android Apache centos CodeIgniter EC-CUBE facebookアプリ facebookページ feed Firefox Flash google googleanalytics htaccess iPad iPhone JavaScript lamp mobile nginx ogp pear php plugin rollover rss sendmail setting smarty ssh Titanium Mobile Titanium Studio tutorial ubuntu vim VirtualBox vmware vps Windows WordPress xampp youtube さくらインターネット アクセス解析 カスタム投稿