CentOS6.2にVMware Toolsをインストールする
VMware Fusion上のCentOS6.2にVMware Toolsをインストールしたときの手順を残しておきます。なぜか起動がすんなりといきませんでしたが、どうにか解消できました。過去にCentOS5系でもインストールしたことはありますが、このようなことはなかったので、トラブルシューティングとして役に立てば幸いです。
VMware ToolsのインストールにはPerlが必要です。CentOSにPerlがインストールされていない場合は yum install perlでインストールしてください。
VMware Toolsのインストール手順
- VMware Fusionを起動し、VMware ToolsをインストールしたいゲストOSを起動します。メニューバーから「仮想マシン」->「VMware Toolsのインストール」と進みます。
- 確認画面が表示されますので、内容を確認し、「インストール」をクリックします。
この時点で先ほどのメニューは「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 | # CDマウント用ディレクトリを作成しマウントする mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom mount: ブロックデバイス /dev/sr0 は書き込み禁止です、読込み専用でマウントします # マウントした場所から一時領域にファイルをコピーする(VMwareToolsのバージョンは時期によって異なる) cp /mnt/cdrom/VMwareTools-8.8.4-730257.tar.gz /tmp/VMwareTools.tar.gz # アンマウント umount /mnt/cdrom/ # ファイルをコピーしたディレクトリへ移動しファイルを展開する cd /tmp/ tar zxf VMwareTools.tar.gz # 展開されたディレクトリへ移動しPerlスクリプトを実行する cd vmware-tools-distrib/ ./vmware-install.pl # パスの設定等が確認される(基本的にはデフォルトで問題ない) 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/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] The path "/usr/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/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 8.8.4 build-730257 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. [EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that creates backups of virtual machines. Please refer to the VMware Knowledge Base for more details on this capability. Do you wish to enable this feature? [no] Found a compatible pre-built module for vmci. Installing it... Found a compatible pre-built module for vsock. Installing it... The module vmxnet3 has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=vmxnet3 to override. The module pvscsi has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=pvscsi to override. The module vmmemctl has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=vmmemctl to override. 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] Found a compatible pre-built module for vmhgfs. Installing it... Found a compatible pre-built module for vmxnet. Installing it... Found a compatible pre-built module for vmblock. Installing it... !!! [EXPERIMENTAL] !!! VMware automatic kernel modules enables automatic building and installation of VMware kernel modules at boot they are not already present. By selecting yes, you will be enabling this experimental feature. You can always disable this feature by re-running vmware-config-tools.pl. Would you like to enable VMware automatic kernel modules? [no] No X install found. Creating a new initrd boot image for the kernel. vmware-tools start/running The configuration of VMware Tools 8.8.4 build-730257 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 or by invoking "/usr/bin/vmware-toolbox" from the command line during an X server session. 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. Enjoy, --the VMware team # VMware Toolsインストールバージョンの確認コマンド /usr/bin/vmware-toolbox-cmd -v 8.8.4.13798 (build-730257) # ステータスの確認 status vmware-tools vmware-tools start/running # CentOSの再起動 shutdown -r now |
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 | # CentOS再起動後、ステータスの確認 status vmware-tools vmware-tools stop/waiting # 通常は自動起動するが、なぜか起動してない # vmware-toolsの手動起動 start vmware-tools start: Job failed to start # 起動に失敗する # コンフィグスクリプトを実行 /usr/bin/vmware-config-tools.pl Initializing... Making sure services for VMware Tools are stopped. [EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that creates backups of virtual machines. Please refer to the VMware Knowledge Base for more details on this capability. Do you wish to enable this feature? [no] Found a compatible pre-built module for vmci. Installing it... Found a compatible pre-built module for vsock. Installing it... The module vmxnet3 has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=vmxnet3 to override. The module pvscsi has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=pvscsi to override. The module vmmemctl has already been installed on this system by another installer or package and will not be modified by this installer. Use the flag --clobber-kernel-modules=vmmemctl to override. 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] Found a compatible pre-built module for vmhgfs. Installing it... Found a compatible pre-built module for vmxnet. Installing it... Found a compatible pre-built module for vmblock. Installing it... !!! [EXPERIMENTAL] !!! VMware automatic kernel modules enables automatic building and installation of VMware kernel modules at boot they are not already present. By selecting yes, you will be enabling this experimental feature. You can always disable this feature by re-running vmware-config-tools.pl. Would you like to enable VMware automatic kernel modules? [no] No X install found. Creating a new initrd boot image for the kernel. vmware-tools start/running The configuration of VMware Tools 8.8.4 build-730257 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 or by invoking "/usr/bin/vmware-toolbox" from the command line during an X server session. 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. Enjoy, --the VMware team # CentOSの再起動 shutdown -r now # CentOS再起動後、ステータスの確認 status vmware-tools vmware-tools start/running # vmware-toolを再起動しても問題ない restatus vmware-tools vmware-tools start/running |
VWware上のCentOSからMacの共有フォルダにアクセスする方法 | mawatari.jp
2012年6月29日 @ 1:01 PM
[…] ですので、GUIではやり方に違いがあるかもしれません。CentOS側にVMware Toolsが必要となりますので、事前にインストールしておいてください。 参考:CentOS6.2にVMware Toolsをインストールする […]