コンソールにアクセスするときに「MKS に接続できません:現在の状態ではその操作を実行できません (Unable to connect to the MKS: The operation is not allowed in the current state)」エラーが発生する
search cancel

コンソールにアクセスするときに「MKS に接続できません:現在の状態ではその操作を実行できません (Unable to connect to the MKS: The operation is not allowed in the current state)」エラーが発生する

book

Article ID: 343337

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

この記事には、コンソールにアクセスするときに「MKS に接続できません:現在の状態ではその操作を実行できません (Unable to connect to the MKS: The operation is not allowed in the current state)」というエラーが発生する場合の解決方法と手順が記載されています。


Symptoms:
免責事項:これは英文の記事「"Unable to connect to the MKS: The operation is not allowed in the current state" error when acessing the console (2063262)」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

  • 仮想マシンの再ロードを実行すると、コンソールにアクセスできなくなる。
  • 仮想マシンを再ロードすると、コンソールが黒くなり、使用できなくなる。
  • 実行している仮想マシンを再ロードした後、コンソールに次のいずれかのエラーが表示される。

    • MKS に接続できません:その操作は、現在の状態では実行できません。 (Unable to connect to the MKS: The operation is not allowed in the current state.)
    • Unable to connect to the MKS: Malformed response from server.
    • Unable to Connect to the MKS - Error connecting to /bin/vmx process

  • この問題は、次のコマンドを使用して SSH 経由で仮想マシンを再ロードした場合に発生する。

    vim-cmd vmsvc/reload

  • /vmfs/volumes/Datastore_of_affected_virtual_machine/Affected_virtual_machine_directory/vmware.log ファイル(影響を受ける仮想マシンのファイル)に、次のようなエントリが記録される。

    <YYYY-MM-DD>T<time>00:00:22.467Z| vmx| I120: VmdbPipeStreamsOvlError Couldn't read: OVL_STATUS_EOF, (11) Resource temporarily unavailable.
    <YYYY-MM-DD>T<time>00:00:22.467Z| vmx| I120: VmdbCnxDisconnect: Disconnect: closed pipe for pub cnx '/db/connection/#1/' (-32)
    <YYYY-MM-DD>T<time>00:00:22.467Z| vmx| I120: VmdbDbRemoveCnx: Removing Cnx from Db for '/db/connection/#1/'
    <YYYY-MM-DD>T<time>00:00:22.468Z| vmx| I120: Redirecting stdin/stdout/stderr to /dev/null.
    <YYYY-MM-DD>T<time>:00:22.537Z| vmx| I120: SOCKET 1 (119) recv detected client closed connection
    <YYYY-MM-DD>T<time>00:00:22.537Z| vmx| I120: Vix: [267272 mainDispatch.c:2886]: VMAutomation: Connection Error (4) on connection 0.
    <YYYY-MM-DD>T<time>00:00:22.572Z| vmx| I120: VmdbAddConnection: cnxPath=/db/connection/#c/, cnxIx=2
    ...<--- switch to other VM or close VI client
    <YYYY-MM-DD>T<time>00:05:59.773Z| mks| I120: SSL: syscall error 104: Connection reset by peer
    <YYYY-MM-DD>T<time>00:05:59.773Z| mks| I120: SOCKET 2 (120) recv error 104: Connection reset by peer
    <YYYY-MM-DD>T<time>00:05:59.773Z| mks| I120: SOCKET 2 (120) VNC Remote Disconnect.
    ...
    <YYYY-MM-DD>T<time>00:06 :23.428Z| vmx| I120: Vix: [942082 mainDispatch.c:2886]: VMAutomation: Connection Error (4) on connection 2.</time></time></time></time></time></time></time></time></time></time></time>


  • 注:前述のログの引用は単なる例です。日付、時間、および環境変数は、環境によって異なる場合があります。  




Environment

VMware vSphere ESXi 5.5
VMware vSphere Web Client 5.5.x
VMware vCenter Server 5.5.x

Cause

この問題は、バックアップ操作の前後にバックアップ ソフトウェアによって仮想マシンが再ロードされた場合に発生する。

Resolution

この問題は ESXi 5.5 Patch 1 で解決されています。このパッチは VMware Patch Download page からダウンロードすることができ、最新リリースは VMware Downloads で入手できます。詳細については、「VMware ESXi 5.5, Patch Release ESXi550-201312001 (2063795)」を参照してください。
アップグレードできない場合にこの問題を回避するには、次の方法のうちの 1 つまたは複数を、記述されている順序で実行して、仮想マシンの Virtual Network Computing (VNC) コンソール サービスを再起動します。
  1. vMotion を実行して、影響を受ける仮想マシンを別の ESXi ホストに移動します。
  2. vCenter Server または ESXi ホストから仮想マシンを再起動します。
  3. ESXi ホストを再起動します。


Additional Information

"Unable to connect to the MKS: The operation is not allowed in the current state" error when acessing the console