FreeBSD 9.0でVMware-tools

以前、FreeBSD 9にOpen-vm-toolsを入れましたが、

FreeBSD 9.0でOpen-VM-tools

今回は、正規?のVMware-toolsをインストールしてみます。

必要なもの
・Kernelソース
・compat6x
・vmmemctlのみ再コンパイル

***注意***
現状対応してるのは、8.1までみたいです。
vmxnetは使えないし、
9を使う場合は、open-vm-tooslのほうがよさげです。


1)Kernelソースのダウンロード、配置

Sysinstallだとうまくいかん。。。ので、ダウンロードしてくる

# wget ftp://ftp.riken.jp/FreeBSD/releases/amd64/9.0-RELEASE/src.txz
# xz -d src.txz 
# tar xf src.tar
# cp usr/src/* /usr/src/ 

配置完了

2)VMware-toolsのインストールその1

とりあえず、入れてみる

# mount -t cd9660 /dev/cd0 /mnt
# mkdir /usr/src/vmware
# cp /mnt/* /usr/src/vmware
# cd  /usr/src/vmware
# tar zxfv vmware-freebsd-tools.tar.gz
# cd vmware-tools-distrib/
# ./vmware-install.pl


The VMware Tools for FreeBSD 9.0 depend on libraries provided by the 
compat6x-amd64 package. Unfortunately we were unable to locate these libraries 
on your system.  Please install the compat6x-amd64 package from the FreeBSD 
Ports Tree before you attempt to configure VMware Tools.

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

Please re-run this program after installing the compat6x-amd64 package.
Execution aborted.

「compat6x-amd64」でエラーこいて止まりました

3)portsからcompat6xをインストール

Ports一発

# cd /usr/ports/misc/compat6x
# make
# make install

終わり

4)VMware-toolsのインストールその2

再度、入れてみる

# ./vmware-install.pl


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.

「Guest memory manager」でFailed。。
あぼーと

5)vmmemctlのみ再コンパイル

makeのみ」おこなって下さい

# /usr/local/lib/vmware-tools/modules/source/vmmemctl.tar /usr/src/vmware
# tar -zxf vmmemctl.tar
# cd vmmemctl-only/
# make
# cd ../
# cp vmmemctl.ko /boot/kernel/

これでOK
この作業は、Kernel再構築した後も必要です。

6)VMware-toolsのインストールその3

再々インストールしてみる

# ./vmware-install.pl


You can now run VMware Tools by invoking "/usr/local/bin/vmware-toolbox-cmd" 
from the command line or by invoking "/usr/local/bin/vmware-toolbox" from the 
command line during an X server session.

Please remember to configure your network by adding:
ifconfig_vxn0="dhcp"
to the /etc/rc.conf file and start the network with:
/etc/netstart
to use the vmxnet interface using DHCP.

Enjoy,

--the VMware team

えんじょい!!!

うまく入れることが出来ました。

[tegaki]Linuxとは違うね[/tegaki]

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Enter code * Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.