「VMware ESXi 4.1のゲストOSとリモート・コンソール間のコピー・アンド・ペースト操作の有効化」にも書いたように、ESXiではクリップボードにコピーされた機密データの漏えいを防ぐためコピー・アンド・ペーストの操作がデフォルトで無効にされている。
私のように閉じた環境でしか使わないからコピー・アンド・ペースト操作を有効にしたい人は、各仮想マシンの設定を編集して有効にする方法を紹介したが、仮想マシンが多いと編集作業が面倒なのでデフォルトを有効にしたいと思ったのは私だけじゃないはず。
ということで調べたところ解決策を発見!!!
To enable this option for all the virtual machines in the ESX/ESXi host:
Clipboard Copy and Paste option is disabled in vSphere Client 4.1
- Log in to the ESX/ESXi host as a root user and open the /etc/vmware/config file using a text editor.
- Add these entries to the file:
- isolation.tools.copy.disable="FALSE"
- isolation.tools.paste.disable="FALSE"
- Save and close the file. The Copy and Paste options are only enabled when the virtual machines restart or resume the next time.
さっそくESXiにSSHでログインして、viで/etc/vmware/configに各エントリを追加。あとは仮想マシンを再起動すると、その後は各仮想マシンにisolation.tools.copy.disableを設定しなくてもデフォルトでコピー・アンド・ペースト操作が有効になる。
ちなみにESXiにSSHでログインする方法は下記の通り。
To enable local or remote TSM from the vSphere Client:
Using Tech Support Mode in ESXi 4.1
- Select the host and click the Configuration tab.
- Click Security profile > Properties.
- Click Local Tech Support or Remote Tech Support (SSH) and click Options.(SSHを使うので"Local Tech Support"ではなく"Remote Tech Support (SSH)"をクリック)
- Choose the desired startup policy and click Start, then click OK.
- Verify that the daemon selected in step 3 shows as running in the Services Properties window.
うーん、便利だ♪