どうやら今後、
Open-vm-toolsを使うことが推奨されるみたい。
なので、今回はUbuntu、CentOSでやってみました。
CentOS6
Ubuntu14.04(trusty)
CentOS7はこちら
CetntOS7とVMWare-tools
やってることは同じです。
リポジトリ
http://packages.vmware.com/packages/index.html
VMWareのKB
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2075048
ホスト
ESXi(esxi5.5-5.5_update02 Build Number: 2068190)
「VMwareTools-9.4.10-2068191.tar.gz」
からインストールしたVMware-tools
# vmware-toolbox-cmd -v 9.4.10.37835 (build-2068191)
アンインストールしましょ
# vmware-uninstall-tools.pl Uninstalling the tar installation of VMware Tools. Stopping services for vmware-tools vmware-tools stop/waiting The removal of VMware Tools 9.4.10 build-2068191 for Linux completed successfully. Thank you for having tried this software.
キーのインポート
ubuntu
# wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub # apt-key add VMWARE-PACKAGING-GPG-RSA-KEY.pub ok
CentOS
# rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
リポジトリ追加
ubuntu
# vi /etc/apt/sources.list.d/vmware-tools.list deb http://packages.vmware.com/packages/ubuntu trusty main
「precise」と「trusty」がある。
CentOS
# vi /etc/yum.repos.d/vmware-tools.repo [vmware-tools] name = VMware Tools baseurl = http://packages.vmware.com/packages/rhel7/x86_64/ enabled = 1 gpgcheck = 1
あとはアップデートして、
「open-vm-tools-deploypkg」をインストール。
Ubuntu
# apt-get update # apt-get install open-vm-tools-deploypkg open-vm-tools-deploypkg (9.4.10-3) を設定しています ... * Stopping open-vm guest daemon vmtoolsd [ OK ] * Starting open-vm daemon vmtoolsd [ OK ] Processing triggers for libc-bin (2.19-0ubuntu6.3) ... # # vmware-toolbox-cmd -v 9.4.0.25793 (build-1280544) # vmtoolsd -v VMware Tools daemon, version 9.4.0.25793 (build-1280544)
古くなっちゃった。。。
CentOS
# yum update # yum install open-vm-tools-deploypkg Installed: open-vm-tools-deploypkg.x86_64 0:9.4.10-3 Dependency Installed: libdnet.x86_64 0:1.12-6.el6 libicu.x86_64 0:4.2.1-9.1.el6_2 libmspack.x86_64 0:0.4-0.1.alpha.el6 open-vm-tools.x86_64 0:9.4.6-1.el6 Complete! # service vmtoolsd restart vmtoolsd を停止中: [ OK ] vmtoolsd を起動中: [ OK ] # # vmtoolsd -v VMware Tools daemon, version 9.4.6.33107 (build-1770165)
CentOSには「vmware-toolbox-cmd」など一部ないみたい。
で、こっちも古くなっちゃった。。。