**Problem: I’m trying to take console for a VM from Host detail it tries to connect but couldn’t connect. I have checked google chrome console by using F12 & on console window it showing an exception “Websocket couldn’t establish connection & then it timeout”…Attached console error from browser
You might want to take a look at troubleshooting VNC in the manual for some more potential steps.
Also note that 2.1 is a fairly old release and is no longer supported, there were some improvements around VNC in 2.2 and later releases so you might want to consider upgrading your foreman instance to the latest version first (2.4.0 at the time of writing).
I also would recommend to use VMRC instead of the novnc (should be some config option on the compute resource) as it is easier to setup (requires no config on VMware at all) and works better in most cases, but requires you to have the client installed.