Hatena::ブログ(Diary)

hsksnote RSSフィード Twitter

2011-12-11

VMware Toolsのインストールと時刻合わせ

VMwareScientific Linuxを入れた環境(CLI)で、VMware Toolsを入れて時刻同期の設定を入れる方法です。


VMware Playerで仮想OSを起動したら、メニューの「仮想マシン」→「VMware Toolsのインストール」を選択する。ちょっと待つとウィンドウ下にこんなのが出ます。

f:id:hsksnote:20111212004957p:image

これでCDドライブにVMware ToolsのCDが入った状態になります。

次にマウント。

[root@sl01 ~]# mount /dev/cdrom /media
mount: block device /dev/sr0 is write-protected, mounting read-only

確認。

[root@sl01 ~]# mount
/dev/mapper/vg_sl01-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)
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@sl01 ~]# ls /media/
manifest.txt  VMwareTools-8.8.0-471268.tar.gz

中のファイルを/tmp下に解凍します。

[root@sl01 ~]# cd /tmp
[root@sl01 tmp]# tar xvfz /media/VMwareTools-8.8.0-471268.tar.gz 
vmware-tools-distrib/
vmware-tools-distrib/lib/
<中略>
vmware-tools-distrib/bin/vmware-uninstall-tools.pl
vmware-tools-distrib/bin/vmware-config-tools.pl

できたディレクトリに移って、VMware-Toolsをインストールします。途中聞かれるところは、わからないところもありますが、とりあえず全部Enter。ここはログを省略しません。

[root@sl01 tmp]# cd vmware-tools-distrib/
[root@sl01 vmware-tools-distrib]# ls
bin  doc  etc  FILES  INSTALL  installer  lib  vmware-install.pl
[root@sl01 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.8.0 build-471268 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? [yes] 

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


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


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


!!! [EXPERIMENTAL] !!!
VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot they are not already present.  By selecting yes,
you will be enabling this experimental feature.  You can always disable this
feature 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.
vmware-tools start/running
The configuration of VMware Tools 8.8.0 build-471268 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. Ejecting device /dev/sr0 ...
You have new mail in /var/spool/mail/root
[root@sl01 vmware-tools-distrib]# 

ここで一旦シャットダウンします。


仮想マシンをつくったディレクトリの、仮想マシン名.vmxをエディタで開きます。

一番下に、こんな行が追加されています。

tools.syncTime = "FALSE"

これをTRUEに変えます。

tools.syncTime = "TRUE"

これで仮想OSを起動すれば、ローカルOSの時刻を参照して、時計合わせをしてくれます。


参考:nonn-et-twk.net -&nbsp リソースおよび情報

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証

トラックバック - http://d.hatena.ne.jp/hsksnote/20111211/1323618653
リンク元