VMware ESXiの修正プログラムを適用するとVMware Toolsもアップデートする必要があります
Update WMware ESXi 5.5(ESXi550-201407001)
http://www.rootlinks.net/2014/08/17/update-wmware-esxi-5-5esxi550-201407001/
先日ESXi550-201407001を適用した時のVMware Toolsのアップデート作業のメモです
仮想マシンがWindowsの場合は簡単なので、今回はLinuxの場合です
- VMwareToolsのインストール/アップグレード
- Linux仮想マシンにログイン
- CDマウント
- VMwareTools-x.x.x.tar.gzをコピー
- インストール
- CDアンマウント
- Linux仮想マシン再起動
- VMware Toolsバージョン確認
VMware vSphere Clientからログインして仮想マシンの[VMwareToolsのインストール/アップグレード]をクリックします
コンソールやsshでLinux仮想マシンにログインします
VMware ToolsのCDをマウントします。自動マウントしない場合はコマンドでマウントして下さい
1 2 3 4 5 6 7 8 9 |
[root@host1 ~]# mount /dev/cdrom /media mount: ブロックデバイス /dev/cdrom は書き込み禁止です、読込み専用でマウントしま す [root@host1 ~]# ls -l /media 合計 62857 -r--r--r-- 1 root root 62964782 4月 25 14:26 VMwareTools-9.4.6-1770165.tar.gz -r-xr-xr-x 1 root root 1961 4月 25 14:25 manifest.txt -r--r--r-- 1 root root 1847 4月 25 14:20 run_upgrader.sh -r-xr-xr-x 1 root root 693484 4月 25 14:24 vmware-tools-upgrader-32 -r-xr-xr-x 1 root root 702400 4月 25 14:24 vmware-tools-upgrader-64 |
適当な場所にコピーして展開します
1 2 3 4 5 6 7 8 9 |
[root@host1 ~]# cd /usr/local/src [root@host1 src]# cp /media/VMwareTools-9.4.6-1770165.tar.gz . [root@host1 src]# tar xvfz VMwareTools-9.4.6-1770165.tar.gz vmware-tools-distrib/ vmware-tools-distrib/etc/ vmware-tools-distrib/etc/xsession-gdm.sh vmware-tools-distrib/etc/xsession-xdm.sh vmware-tools-distrib/etc/poweroff-vm-default (snip) |
VMware Toolsをインストールします。今回はコンパイルが始まってちょっとビックリです
いろいろ質問されますが、取り敢えずデフォルトで大丈夫と思います
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
[root@host1 src]# cd vmware-tools-distrib/ [root@host1 vmware-tools-distrib]# ./vmware-install.pl 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 Stopping VMware Tools services in the virtual machine: Guest operating system daemon: [ OK ] Unmounting HGFS shares: [ OK ] Guest filesystem driver: [ OK ] Guest memory manager: [ OK ] VM communication interface socket family: [ OK ] VM communication interface: [ OK ] File /etc/X11/xorg.conf is backed up to /etc/X11/xorg.conf.old.12. The removal of VMware Tools 9.4.6 build-1770165 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/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] 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 9.4.6 build-1770165 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. Stopping VMware Tools services in the virtual machine: Guest operating system daemon: [ OK ] Unmounting HGFS shares: [ OK ] Guest filesystem driver: [ OK ] Guest memory manager: [ OK ] VM communication interface socket family: [ OK ] VM communication interface: [ OK ] The VMware FileSystem Sync Driver (vmsync) allows external third-party backup software that is integrated with vSphere to create backups of the virtual machine. Do you wish to enable this feature? [no] 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/2.6.18-371.11.1.el5.centos.plus/build/include". The path "/lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include" appears to be a valid path to the 2.6.18-371.11.1.el5.centos.plus kernel headers. Would you like to change it? [no] Using 2.6.x kernel build system. make: ディレクトリ `/tmp/modconfig-OQr307/vmci-only' に入ります /usr/bin/make -C /lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' に入ります CC [M] /tmp/modconfig-OQr307/vmci-only/linux/driver.o CC [M] /tmp/modconfig-OQr307/vmci-only/linux/vmciKernelIf.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciContext.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciDatagram.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciDoorbell.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciDriver.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciEvent.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciHashtable.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciPageChannel.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciQPair.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciQueuePair.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciResource.o CC [M] /tmp/modconfig-OQr307/vmci-only/common/vmciRoute.o CC [M] /tmp/modconfig-OQr307/vmci-only/driverLog.o LD [M] /tmp/modconfig-OQr307/vmci-only/vmci.o Building modules, stage 2. MODPOST CC /tmp/modconfig-OQr307/vmci-only/vmci.mod.o LD [M] /tmp/modconfig-OQr307/vmci-only/vmci.ko make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' から出ます /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: ディレクトリ `/tmp/modconfig-OQr307/vmci-only' に入ります make[1]: `postbuild' は更新済みです make[1]: ディレクトリ `/tmp/modconfig-OQr307/vmci-only' から出ます cp -f vmci.ko ./../vmci.o make: ディレクトリ `/tmp/modconfig-OQr307/vmci-only' から出ます Using 2.6.x kernel build system. make: ディレクトリ `/tmp/modconfig-LwF78P/vmci-only' に入ります /usr/bin/make -C /lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' に入ります CC [M] /tmp/modconfig-LwF78P/vmci-only/linux/driver.o CC [M] /tmp/modconfig-LwF78P/vmci-only/linux/vmciKernelIf.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciContext.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciDatagram.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciDoorbell.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciDriver.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciEvent.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciHashtable.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciPageChannel.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciQPair.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciQueuePair.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciResource.o CC [M] /tmp/modconfig-LwF78P/vmci-only/common/vmciRoute.o CC [M] /tmp/modconfig-LwF78P/vmci-only/driverLog.o LD [M] /tmp/modconfig-LwF78P/vmci-only/vmci.o Building modules, stage 2. MODPOST CC /tmp/modconfig-LwF78P/vmci-only/vmci.mod.o LD [M] /tmp/modconfig-LwF78P/vmci-only/vmci.ko make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' から出ます /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: ディレクトリ `/tmp/modconfig-LwF78P/vmci-only' に入ります make[1]: `postbuild' は更新済みです make[1]: ディレクトリ `/tmp/modconfig-LwF78P/vmci-only' から出ます cp -f vmci.ko ./../vmci.o make: ディレクトリ `/tmp/modconfig-LwF78P/vmci-only' から出ます Using 2.6.x kernel build system. make: ディレクトリ `/tmp/modconfig-LwF78P/vsock-only' に入ります /usr/bin/make -C /lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' に入ります CC [M] /tmp/modconfig-LwF78P/vsock-only/linux/af_vsock.o CC [M] /tmp/modconfig-LwF78P/vsock-only/linux/notify.o CC [M] /tmp/modconfig-LwF78P/vsock-only/linux/notifyQState.o CC [M] /tmp/modconfig-LwF78P/vsock-only/linux/stats.o CC [M] /tmp/modconfig-LwF78P/vsock-only/linux/util.o CC [M] /tmp/modconfig-LwF78P/vsock-only/linux/vsockAddr.o CC [M] /tmp/modconfig-LwF78P/vsock-only/driverLog.o LD [M] /tmp/modconfig-LwF78P/vsock-only/vsock.o Building modules, stage 2. MODPOST CC /tmp/modconfig-LwF78P/vsock-only/vsock.mod.o LD [M] /tmp/modconfig-LwF78P/vsock-only/vsock.ko make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' から出ます /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: ディレクトリ `/tmp/modconfig-LwF78P/vsock-only' に入ります make[1]: `postbuild' は更新済みです make[1]: ディレクトリ `/tmp/modconfig-LwF78P/vsock-only' から出ます cp -f vsock.ko ./../vsock.o make: ディレクトリ `/tmp/modconfig-LwF78P/vsock-only' から出ます Using 2.6.x kernel build system. make: ディレクトリ `/tmp/modconfig-i2KqFf/vmxnet3-only' に入ります /usr/bin/make -C /lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' に入ります CC [M] /tmp/modconfig-i2KqFf/vmxnet3-only/vmxnet3_drv.o CC [M] /tmp/modconfig-i2KqFf/vmxnet3-only/vmxnet3_ethtool.o CC [M] /tmp/modconfig-i2KqFf/vmxnet3-only/vmxnet3_shm.o LD [M] /tmp/modconfig-i2KqFf/vmxnet3-only/vmxnet3.o Building modules, stage 2. MODPOST CC /tmp/modconfig-i2KqFf/vmxnet3-only/vmxnet3.mod.o LD [M] /tmp/modconfig-i2KqFf/vmxnet3-only/vmxnet3.ko make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' から出ます /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: ディレクトリ `/tmp/modconfig-i2KqFf/vmxnet3-only' に入ります make[1]: `postbuild' は更新済みです make[1]: ディレクトリ `/tmp/modconfig-i2KqFf/vmxnet3-only' から出ます cp -f vmxnet3.ko ./../vmxnet3.o make: ディレクトリ `/tmp/modconfig-i2KqFf/vmxnet3-only' から出ます Using 2.6.x kernel build system. make: ディレクトリ `/tmp/modconfig-RuBJV6/pvscsi-only' に入ります /usr/bin/make -C /lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' に入ります CC [M] /tmp/modconfig-RuBJV6/pvscsi-only/pvscsi.o Building modules, stage 2. MODPOST CC /tmp/modconfig-RuBJV6/pvscsi-only/pvscsi.mod.o LD [M] /tmp/modconfig-RuBJV6/pvscsi-only/pvscsi.ko make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' から出ます /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: ディレクトリ `/tmp/modconfig-RuBJV6/pvscsi-only' に入ります make[1]: `postbuild' は更新済みです make[1]: ディレクトリ `/tmp/modconfig-RuBJV6/pvscsi-only' から出ます cp -f pvscsi.ko ./../pvscsi.o make: ディレクトリ `/tmp/modconfig-RuBJV6/pvscsi-only' から出ます Using 2.6.x kernel build system. make: ディレクトリ `/tmp/modconfig-V2MeIk/vmmemctl-only' に入ります /usr/bin/make -C /lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' に入ります CC [M] /tmp/modconfig-V2MeIk/vmmemctl-only/backdoorGcc32.o CC [M] /tmp/modconfig-V2MeIk/vmmemctl-only/backdoor_balloon.o CC [M] /tmp/modconfig-V2MeIk/vmmemctl-only/kernelStubsLinux.o CC [M] /tmp/modconfig-V2MeIk/vmmemctl-only/os.o CC [M] /tmp/modconfig-V2MeIk/vmmemctl-only/vmballoon.o LD [M] /tmp/modconfig-V2MeIk/vmmemctl-only/vmmemctl.o Building modules, stage 2. MODPOST CC /tmp/modconfig-V2MeIk/vmmemctl-only/vmmemctl.mod.o LD [M] /tmp/modconfig-V2MeIk/vmmemctl-only/vmmemctl.ko make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' から出ます /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: ディレクトリ `/tmp/modconfig-V2MeIk/vmmemctl-only' に入ります make[1]: `postbuild' は更新済みです make[1]: ディレクトリ `/tmp/modconfig-V2MeIk/vmmemctl-only' から出ます cp -f vmmemctl.ko ./../vmmemctl.o make: ディレクトリ `/tmp/modconfig-V2MeIk/vmmemctl-only' から出ます 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? [no] Using 2.6.x kernel build system. make: ディレクトリ `/tmp/modconfig-7Absam/vmxnet-only' に入ります /usr/bin/make -C /lib/modules/2.6.18-371.11.1.el5.centos.plus/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' に入ります CC [M] /tmp/modconfig-7Absam/vmxnet-only/vmxnet.o Building modules, stage 2. MODPOST CC /tmp/modconfig-7Absam/vmxnet-only/vmxnet.mod.o LD [M] /tmp/modconfig-7Absam/vmxnet-only/vmxnet.ko make[1]: ディレクトリ `/usr/src/kernels/2.6.18-371.11.1.el5.centos.plus-i686' から出ます /usr/bin/make -C $PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= postbuild make[1]: ディレクトリ `/tmp/modconfig-7Absam/vmxnet-only' に入ります make[1]: `postbuild' は更新済みです make[1]: ディレクトリ `/tmp/modconfig-7Absam/vmxnet-only' から出ます cp -f vmxnet.ko ./../vmxnet.o make: ディレクトリ `/tmp/modconfig-7Absam/vmxnet-only' から出ます 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] 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] Detected X version 7.1 Do you want to change the starting screen display size? (yes/no) [no] X is running fine with the new config file. Creating a new initrd boot image for the kernel. Checking acpi hot plug [ OK ] Starting VMware Tools services in the virtual machine: Switching to guest configuration: [ OK ] Paravirtual SCSI module: [ OK ] Guest memory manager: [ OK ] Guest vmxnet fast network device: [ OK ] VM communication interface: [ OK ] VM communication interface socket family: [ OK ] Guest operating system daemon: [ OK ] The configuration of VMware Tools 9.4.6 build-1770165 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. 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. to use the vmxnet driver, either reboot or 1. stop networking or stop any interface using the vmxnet or pcnet32 driver 2. remove the pcnet32 module with 'rmmod pcnet32' 3. remove the vmxnet module with 'rmmod vmxnet' 4. load the vmxnet module with 'modprobe -v vmxnet' 5. and restart networking or restart the stopped network interfaces Enjoy, --the VMware team Found VMware Tools CDROM mounted at /media. Ejecting device /dev/cdrom ... |
VMware Tools CDを切り離します
1 |
[root@host1 vmware-tools-distrib]# eject |
仮想マシンを再起動します
1 |
[root@host1 vmware-tools-distrib]# shutdown -r now |
1 2 |
[root@host1 ~]# vmware-toolbox-cmd -v 9.4.6.33107 (build-1770165) |
これでVMware Toolsが最新になりました
おまけ
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@host1 ~]# vmware-toolbox-cmd -h 用途: vmware-toolbox-cmd <コマンド> [オプション] [サブコマンド] 「vmware-toolbox-cmd help <コマンド>」と入力すると、そのコマンドのヘルプを表示できます。 VMware Tools のバージョンを確認するには、「'vmware-toolbox-cmd -v」と入力します 。 stdout 出力を抑止するには、「-q」オプションを使用します。 ほとんどのコマンドではサブコマンドも使用されます。 使用可能なコマンド: device disk script stat timesync upgrade (OS によっては使用できない場合もあります) |