読者です 読者をやめる 読者になる 読者になる

VMware FusionのUbuntu14.04にVMwareToolsをインストールしてみた件

MacOS XVMware FusionのゲストOSとしてUbuntu14.04をインストールしていたけどVMwareToolsをインストールしていなかったのでインストールしてみた。
参照先は以下。

http://tukaikta.blog135.fc2.com/blog-entry-129.html
http://partnerweb.vmware.com/GOSIG/Ubuntu_14_04_LTS.html#Tools
http://d.hatena.ne.jp/ytooyama/20130615/1371308333
http://kledgeb.blogspot.jp/2015/09/ubuntu-vmware-workstation-player-2.html

マウント

VMware Fusionの「仮装マシン」メニューの「VMware Toolsのインストール」を選択することでマウントされる。

マウント前
kohchi@ubuntu13:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda1       19478204 8918296   9547428  49% /
none                   4       0         4   0% /sys/fs/cgroup
udev             1022272       4   1022268   1% /dev
tmpfs             206380    1080    205300   1% /run
none                5120       0      5120   0% /run/lock
none             1031880     152   1031728   1% /run/shm
none              102400      32    102368   1% /run/user
マウント後
kohchi@ubuntu13:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda1       19478204 8918332   9547392  49% /
none                   4       0         4   0% /sys/fs/cgroup
udev             1022272       4   1022268   1% /dev
tmpfs             206380    1084    205296   1% /run
none                5120       0      5120   0% /run/lock
none             1031880     152   1031728   1% /run/shm
none              102400      32    102368   1% /run/user
/dev/sr0           71704   71704         0 100% /media/kohchi/VMware Tools

実行エラー

マウントされたものはDVDとして認識し、フォルダ画面が表示される。

フォルダ画面にあるtarボールをホームへドラッグ&ドロップしてその後DVDを取り出す(取り出しボタンを押すとアンマウントされる)。


で実行してみたけど、open-vm-toolsをインストールする必要があるらしい。

kohchi@ubuntu13:~$ pwd
/home/kohchi
kohchi@ubuntu13:~$ zcat VMwareTools-10.0.1-3160059.tar.gz | tar xf -
kohchi@ubuntu13:~$ cd vmware-tools-distrib/
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
[sudo] password for kohchi: 
open-vm-tools are available from the OS vendor and VMware recommends using 
open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
Do you still want to proceed with this legacy installer? [no] 

kohchi@ubuntu13:~/vmware-tools-distrib$

open-vm-toolsインストール

http://kb.vmware.com/kb/2073803 から http://partnerweb.vmware.com/GOSIG/Ubuntu_14_04_LTS.html#Tools に辿りつきapt-getでopen-vm-toolsをインストール。

kohchi@ubuntu13:~/vmware-tools-distrib$ sudo apt-get install open-vm-tools
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic
これを削除するには 'apt-get autoremove' を利用してください。
以下の特別パッケージがインストールされます:
  libdumbnet1 zerofree
提案パッケージ:
  open-vm-tools-desktop
以下のパッケージが新たにインストールされます:
  libdumbnet1 open-vm-tools zerofree
アップグレード: 0 個、新規インストール: 3 個、削除: 0 個、保留: 131 個。
490 kB のアーカイブを取得する必要があります。
この操作後に追加で 2,493 kB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://jp.archive.ubuntu.com/ubuntu/ trusty/main libdumbnet1 i386 1.12-4build1 [25.3 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main open-vm-tools i386 2:9.4.0-1280544-5ubuntu6.2 [456 kB]
取得:3 http://jp.archive.ubuntu.com/ubuntu/ trusty/main zerofree i386 1.0.2-1ubuntu1 [8,574 B]
490 kB を 0秒 で取得しました (1,042 kB/s)
以前に未選択のパッケージ libdumbnet1 を選択しています。
(データベースを読み込んでいます ... 現在 261017 個のファイルとディレクトリがインストールされています。)
Preparing to unpack .../libdumbnet1_1.12-4build1_i386.deb ...
Unpacking libdumbnet1 (1.12-4build1) ...
以前に未選択のパッケージ open-vm-tools を選択しています。
Preparing to unpack .../open-vm-tools_2%3a9.4.0-1280544-5ubuntu6.2_i386.deb ...
Unpacking open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) ...
以前に未選択のパッケージ zerofree を選択しています。
Preparing to unpack .../zerofree_1.0.2-1ubuntu1_i386.deb ...
Unpacking zerofree (1.0.2-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
libdumbnet1 (1.12-4build1) を設定しています ...
open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) を設定しています ...
 * Starting open-vm daemon vmtoolsd                                      [ OK ] 
zerofree (1.0.2-1ubuntu1) を設定しています ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...
kohchi@ubuntu13:~/vmware-tools-distrib$

VMwareToolsのインストール

もう一回インストーラを起動してインストール。質問はすべてデフォルト(この場合インストーラに"-d"オプションをつけるといいらしい)で、インストール完了後リブート。

kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools on this 
system and will not attempt to remove and replace these user-space 
applications. It is recommended to use the open-vm-tools packages provided by 
the operating system. If you do not want to use the existing installation of 
open-vm-tools and attempt to install VMware Tools, you must uninstall the 
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] 

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] 

What is the directory that contains the init scripts? 
[/etc/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] 

The installation of VMware Tools 10.0.1 build-3160059 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] 

The file /usr/bin/vmware-hgfsclient that this program was about to install 
already exists.  Overwrite? [no] 

The file /sbin/mount.vmhgfs that this program was about to install already 
exists.  Overwrite? [no] 

Initializing...


Making sure services for VMware Tools are stopped.



The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

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] 


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-63-generic/build/include".
The path "/lib/modules/3.13.0-63-generic/build/include" appears to be a valid 
path to the 3.13.0-63-generic kernel headers.
Would you like to change it? [no] 

Using kernel build system.
make: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' に入ります
/usr/bin/make -C /lib/modules/3.13.0-63-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' に入ります
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-egp2TO/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-egp2TO/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-egp2TO/vmhgfs-only/vmhgfs.ko
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' から出ます
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= postbuild
make[1]: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' に入ります
make[1]: `postbuild' は更新済みです
make[1]: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' から出ます
cp -f vmhgfs.ko ./../vmhgfs.o
make: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' から出ます

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] 

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] 

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-63-generic
vmware-tools start/running
vmware-tools-thinprint start/running
The configuration of VMware Tools 10.0.1 build-3160059 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team

kohchi@ubuntu13:~/vmware-tools-distrib$ sync;sync;sync
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo reboot

VMwareToolsの再インストールしてkernel-modulesだけインストール

リブート後ログインしてUbuntuでコピーしてMacOS Xでペーストしてみたけどうまくいかず。
http://kledgeb.blogspot.jp/2015/09/ubuntu-vmware-workstation-player-2.html を見ると以下の質問でデフォルト[no]として答えていたのでカーネルモジュールを自動的にインストールしていないみたいなので再度インストール。

Would you like to enable VMware automatic kernel modules?
[no] yes

kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools on this 
system and will not attempt to remove and replace these user-space 
applications. It is recommended to use the open-vm-tools packages provided by 
the operating system. If you do not want to use the existing installation of 
open-vm-tools and attempt to install VMware Tools, you must uninstall the 
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [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] 

Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint

vmware-tools-thinprint stop/waiting
The removal of VMware Tools 10.0.1 build-3160059 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] 

What is the directory that contains the init scripts? 
[/etc/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] 

The installation of VMware Tools 10.0.1 build-3160059 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] 

The file /usr/bin/vmware-hgfsclient that this program was about to install 
already exists.  Overwrite? [no] 

The file /sbin/mount.vmhgfs that this program was about to install already 
exists.  Overwrite? [yes] 

Initializing...


Making sure services for VMware Tools are stopped.



The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

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] 


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-63-generic/build/include".
The path "/lib/modules/3.13.0-63-generic/build/include" appears to be a valid 
path to the 3.13.0-63-generic kernel headers.
Would you like to change it? [no] 

Using kernel build system.
make: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' に入ります
/usr/bin/make -C /lib/modules/3.13.0-63-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' に入ります
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-OknHE6/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-OknHE6/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-OknHE6/vmhgfs-only/vmhgfs.ko
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' から出ます
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= postbuild
make[1]: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' に入ります
make[1]: `postbuild' は更新済みです
make[1]: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' から出ます
cp -f vmhgfs.ko ./../vmhgfs.o
make: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' から出ます

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] yes

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] 

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-63-generic
vmware-tools start/running
vmware-tools-thinprint start/running
The configuration of VMware Tools 10.0.1 build-3160059 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team

kohchi@ubuntu13:~/vmware-tools-distrib$ sync;sync;sync
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo reboot

open-vm-tools-desktopをインストール

リブート後同じように試してみたけどコピペできない。open-vm-tools-desktopをインストールしてからVMwareToolsを再度インストール。
なお、今回のVMwareToolsインストールでの自動的にカーネルモジュールをインストールするかどうかの質問は先ほど[yes]と答えてのでデフォルト[yes]となっていた。

Would you like to enable VMware automatic kernel modules?
[yes]

kohchi@ubuntu13:~$ sudo apt-get install open-vm-tools-desktop
[sudo] password for kohchi: 
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic
これを削除するには 'apt-get autoremove' を利用してください。
以下のパッケージが新たにインストールされます:
  open-vm-tools-desktop
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 131 個。
120 kB のアーカイブを取得する必要があります。
この操作後に追加で 447 kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main open-vm-tools-desktop i386 2:9.4.0-1280544-5ubuntu6.2 [120 kB]
120 kB を 0秒 で取得しました (424 kB/s)   
以前に未選択のパッケージ open-vm-tools-desktop を選択しています。
(データベースを読み込んでいます ... 現在 261111 個のファイルとディレクトリがインストールされています。)
Preparing to unpack .../open-vm-tools-desktop_2%3a9.4.0-1280544-5ubuntu6.2_i386.deb ...
Unpacking open-vm-tools-desktop (2:9.4.0-1280544-5ubuntu6.2) ...
open-vm-tools-desktop (2:9.4.0-1280544-5ubuntu6.2) を設定しています ...
kohchi@ubuntu13:~$ 

kohchi@ubuntu13:~$ cd vmware-tools-distrib/
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools on this 
system and will not attempt to remove and replace these user-space 
applications. It is recommended to use the open-vm-tools packages provided by 
the operating system. If you do not want to use the existing installation of 
open-vm-tools and attempt to install VMware Tools, you must uninstall the 
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [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] 

Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint

vmware-tools-thinprint stop/waiting
The removal of VMware Tools 10.0.1 build-3160059 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] 

What is the directory that contains the init scripts? 
[/etc/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] 

The installation of VMware Tools 10.0.1 build-3160059 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] 

The file /usr/bin/vmware-hgfsclient that this program was about to install 
already exists.  Overwrite? [no] 

Initializing...


Making sure services for VMware Tools are stopped.



The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

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] 


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-63-generic/build/include".
The path "/lib/modules/3.13.0-63-generic/build/include" appears to be a valid 
path to the 3.13.0-63-generic kernel headers.
Would you like to change it? [no] 

Using kernel build system.
make: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' に入ります
/usr/bin/make -C /lib/modules/3.13.0-63-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' に入ります
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-dzVYo5/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/vmhgfs.ko
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' から出ます
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= postbuild
make[1]: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' に入ります
make[1]: `postbuild' は更新済みです
make[1]: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' から出ます
cp -f vmhgfs.ko ./../vmhgfs.o
make: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' から出ます

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes] 

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] 

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-63-generic
vmware-tools start/running
vmware-tools-thinprint start/running
The configuration of VMware Tools 10.0.1 build-3160059 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team

kohchi@ubuntu13:~/vmware-tools-distrib$ sync;sync;sync
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo reboot

リブート後、Ubuntu上でコピーしたものをMacOS Xでペーストしてみたところうまくいった。
最初からopen-vm-tools-desktopを入れとけって話か。