Blue Boxes
Virtualization tips, news and more

VMware VM Console: Error connecting: cannot connect to host A connection attempt failed because the connected party did

Sometimes while trying to access the console of a virtual machine using the VMware Virtual Infrastructure Client (connected to the ESX host or the virtual center) the following error appears:

Error connecting: cannot connect to host : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Do you want to try again?

This error could be produced if a firewall exists between the virtual infrastructure client and the host where the virtual machine is running blocking the TCP 903 port. If this is the case configure your firewall to allow trafic from the vi client to the physical host on port 903.

In other cases the only way to solve this is to enable the vmauthd proxy on the service console of the host. To do that we need to edit the file /etc/vmware/config adding the following line:

vmauthd.server.alwaysProxy = “TRUE”

The file should look like this:

libdir = “/usr/lib/vmware”
authd.fullpath = “/usr/sbin/vmware-authd”
authd.client.port = “902″
vmware.fullpath = “/usr/bin/vmware”
control.fullpath = “/usr/bin/vmware-cmd”
serverd.fullpath = “/usr/sbin/vmware-serverd”
serverd.init.fullpath = “/usr/lib/vmware/serverd/init.pl”
authd.proxy.vim = “vmware-hostd:hostd-vmdb”
authd.proxy.nfc = “vmware-hostd:ha-nfc”
authd.proxy.nfcssl = “vmware-hostd:ha-nfcssl”
authd.soapServer = “TRUE”
authd.proxy.vpxa-nfc = “vmware-vpxa:vpxa-nfc”
authd.proxy.vpxa-nfcssl = “vmware-vpxa:vpxa-nfcssl”
vmauthd.server.alwaysProxy = “TRUE”

authdproxy

For more information visit Cannot open Virtual Machine Console

Was it helpful, leave your comment.


Comments

ESX 3.5

Cheers this is a spot on remedy for this error, it worked as soon as i added the "vmauthd.server.alwaysProxy="TRUE"

Funny I've never had this error before and got 5 esx server running in our enviroment now.

Anyway thanks for the fix

This worked perfectly and instantly

Thanks for this!

I just upgraded my ESX 3.5u2 with the new 3.5 update 5 (released 2009/12/03), and immediately lost the ability to connect to the consoles of my VMs. As soon as I added the line to the file the console connection opened.

VMWare ought to fix their upgrade script!