4. VMWare Player - FreeBSD への VMWare Tools のインストール

 
4.1 概要
4.2 前準備
4.3 VMWare Tools(10.1.6)のインストール
4.4 VMWare Tools(10.2.5)のインストール

4.1 概要

 Windows のようなデスクトップが存在することが前提のゲストOS だと VMWare Tools が自動でインストールされますが、FreeBSD のようなゲスト OS の場合、手動でインストールする必要があります。  FreeBSD への VMWare Tools のインストールに関しては提供元に説明があります。  詳細は「FreeBSD 仮想マシンでの VMware Tools の手動インストールまたは手動アップグレード 」を参考になさってください。  また「FreeBSDゲストのVMwareToolsのインストールメモ」を参考にさせていただいております。

4.2 前準備

 前掲のサイトにも書いてありますが、FreeBSD への VMWare Tools のインストールにはいくつかのプログラムが必要になります。

・perl5
・compat6x-amd64
・xorg
 portupgrade をインストールする際に perl5 は同時にインストールされますので、perl5 を単独でインストールするよりも、本項の設定の前に portupgrade をインストールしておくことをお勧めします。  portupgrade これらのインストールに際して行う項目を書いておきます。  内容の詳細は「FreeBSD 11.1 RELEASE」の項目を参考にしてください。

/etc/portsnap.conf
 の

# REFUSE arabic chinese french german hebrew hungarian japanese
# REFUSE korean polish portuguese russian ukrainian vietnamese
 を↓に変更

REFUSE arabic chinese french german hebrew hungarian
REFUSE korean polish portuguese russian ukrainian vietnamese
 make のコンフィグレーションファイルをコピー

プロンプト略
cp /usr/share/examples/etc/make.conf /etc/make.conf
 以下、make。  途中で config を設定する画面が何度も出てきますが、すべてそのまま Enter ですすめます。

プロンプト略
portsnap fetch
portsnap extract
cd /usr/ports/ports-mgmt/portupgrade
make
make install
cd /usr/ports/security/ca_root_nss
make
make install
portsnap fetch
portsnap extract
cd /usr/ports/x11/xorg
make
make install
pkg install compat6x-amd64
 xorg は恐ろしく時間がかかるので pkg の方がいいかもしれません。

4.3 VMWare Tools(10.1.6)のインストール

 ここで説明しているのは、以下の環境です。

VMWare WorkStation Player	12.5.9
VMWare Tools				10.1.6
FreeBSD						11.1 RELEASE
 ここまでで、ゲスト OS にインストーラの .iso ファイルを割り当てている場合はその割り当てを解除しておきます。  perl のインストール後に  「インストールを完了しました」

 「Player」→「管理」→「VMWare Tools のインストール」


 ゲストマシンの仮想ドライブに VMWare Tools の iso イメージがマウントされます。
 ゲスト OS にログインして root ユーザで


> mount -t cd9660 /dev/cd0 /mnt
> cd /tmp
> tar xvf /mnt/vmware-freebsd-tools.tar.gz
> cd vmware-tools-distrib
> ./vmware-install.pl
A previous installation of VMware Tools has been detected.

The previousinstallation 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]

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   Guest memory manager:                                               done

The removal of VMware Tools 10.1.6 build-5214329 for FreeBSD completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/local/bin]

In which directory do you want to install the startup script?
[/usr/local/etc/rc.d]

In which directory do you want to install the daemon files?
[/usr/local/sbin]

In which directory do you want to install the library files?
[/usr/local/lib/vmware-tools]

The path "/usr/local/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/local/share/doc/vmware-tools]

The path "/usr/local/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 10.1.6 build-5214329 for FreeBSD completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/local/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/local/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:                                      done
   Guest memory manager:                                               done


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]



Detected X server version 1.18.4



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                                   done
   Guest memory manager:                                              failed
   Guest operating system daemon:                                      done
Unable to start services for VMware Tools

Execution aborted.
 問い合わせにはすべて Enter で答えておりましたが・・・。  どうも、最後に一つしくっているようですねぇ・・・。  いずれやり直すときがあれば、もう一度、いちからやり直してみたいと思います。  ただ、まぁ

> pgrep -lf vm
25382 /usr/local/lib/vmware-tools/sbin/vmtoolsd
 と vmtoolsd (おそらく VMware Tools デーモン)が起動しているのでツールははいってるんじゃないかな・・・。

4.4 VMWare Tools(10.2.5)のインストール

 とまぁ、前項では微妙な感じでしたが、以下の環境でもう一度やってみました。

VMWare WorkStation Player	14.1.3
VMWare Tools				10.2.5
FreeBSD						11.2 RELEASE

> ./vmware-install.pl
open-vm-tools packages are available from the OS vendor and VMware recommends
using open-vm-tools packages. See http://kb.vmware.com/kb/2149806 for more
information.
Do you still want to proceed with this installation? [yes] yes Enter

INPUT: [yes]

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

INPUT: [yes]  default

Uninstalling the tar installation of VMware Tools.

The removal of VMware Tools 10.2.5 build-8068393 for FreeBSD completed
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/local/bin] Enter

INPUT: [/usr/local/bin]  default

In which directory do you want to install the startup script?
[/usr/local/etc/rc.d] Enter

INPUT: [/usr/local/etc/rc.d]  default

The path "/usr/local/etc/rc.d" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes] Enter

INPUT: [yes]  default

In which directory do you want to install the daemon files?
[/usr/local/sbin] Enter

INPUT: [/usr/local/sbin]  default

In which directory do you want to install the library files?
[/usr/local/lib/vmware-tools] Enter

INPUT: [/usr/local/lib/vmware-tools]  default

The path "/usr/local/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

INPUT: [yes]  default

In which directory do you want to install the documentation files?
[/usr/local/share/doc/vmware-tools] Enter

INPUT: [/usr/local/share/doc/vmware-tools]  default

The path "/usr/local/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

INPUT: [yes]  default

The installation of VMware Tools 10.2.5 build-8068393 for FreeBSD completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command:
"/usr/local/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/local/bin/vmware-config-tools.pl". Do you
want this program to invoke the command for you now? [yes] Enter

INPUT: [yes]  default

Initializing...


Making sure services for VMware Tools are stopped.

Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done


Skipping vmxnet because VMware Tools kernel modules are not available for
FreeBSD 11 and later.

Skipping vmxnet3 because VMware Tools kernel modules are not available for
FreeBSD 11 and later.

Skipping vmmemctl because VMware Tools kernel modules are not available for
FreeBSD 11 and later.

vmblock is not supported for FreeBSD 9.1 and above.



Detected X server version 1.18.4



Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                                   done
   Guest operating system daemon:                                      done
For VMware Tools for FreeBSD 11.2 it is recommended that you install the
following packages:

  xf86-video-vmware
  xf86-input-vmmouse

The easiest way to install this package is by using the pkg utility.  Refer to
the man pages on how to properly use this utility.

The configuration of VMware Tools 10.2.5 build-8068393 for FreeBSD for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /mnt. Ejecting device /dev/cd0 ...
 とまぁ、今度はすんなりいきました。  特に操作は変えてないので、OS か VMWare がよくなったということでしょう。  下記の表示に一瞬、どっきりしたのですが

The path "/usr/local/etc/rc.d" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?

/usr/local/etc/rc.d
 はアプリケーションをインストールするまで作成されないようです。