“Unable to connect to the MKS: Internal Error” when connecting to the virtual machine console

You try to connect to the virtual machine console and get the following error:

Unable to connect to the MKS: Internal Error



  • connect to your ESXi Host via SSH and start the DCUI
  • press “F2” to log-in
  • select “Troubleshooting Options”


  • select “Restart Management Agents”


Do not panic, if you see the hosted virtual machines as “orphaned” in your vCenter. It will take some minutes till they are connected back as normal.

The restart of the Management Agents will not kill the virtual machines – they will continue to run.


  1. Anand

    I have a simple solution for it i.e, vMotion the VM to other host. It will work.

  2. Paul Krash

    Remember to disable HA first or the VMs could Failover due to heartbeat not detected (HA considers this a host down and will power off the VMs)
    Learned this the hard way.

  3. Manju

    after 15 min its automatically corrected.

Leave a Comment

Your email address will not be published. Required fields are marked *