VMware Cloud Community
thiyagarajan27
Contributor
Contributor
Jump to solution

HTML Console SDK 2.1 fails to initialize

I’m trying to connect to the VMs console using HTML Console SDK 2.1

It fails to initialize and the browser console log says “vnc authentication not implemented”

What configuration changes are needed in ESXi host get it working?

Interestingly it works on some ESXi hosts  and the browser console log says "security types/authentication scheme is 1". On the ESXi hosts where it fails, browser console log says "security types/authentication scheme is 2"

ESXi version where its NOT working: VMware ESXi, 6.0.0, 3073146

ESXi version where its working: VMware ESXi, 6.0.0, 2494585

--- browser console output where it’s not working on some ESXi hosts----

  1. wmks.min.js:1 2016-11-03T05:24:53.466Z [Info ] Not a touch device, and hence skip touch handler
  2. wmks.min.js:1 2016-11-03T05:24:54.089Z [Info ] WebSocket HAS binary support
  3. wmks.min.js:1 2016-11-03T05:24:54.090Z [Info ] WebSocket created protocol: binary
  4. wmks.min.js:1 2016-11-03T05:24:54.101Z [Info ] Server security types: 2
  5. wmks.min.js:1 2016-11-03T05:24:54.101Z [Info ] Using authentication scheme: 2
  6. wmks.min.js:1 2016-11-03T05:24:54.101Z [Info ] vnc authentication not implemented

--- browser console output where its working ----

  1. wmks.min.js:1 2016-11-03T05:26:59.000Z [Warn ] relativepad : RELATIVEPAD
  2. wmks.min.js:1 2016-11-03T05:26:59.014Z [Info ] Not a touch device, and hence skip touch handler
  3. wmks.min.js:1 2016-11-03T05:26:59.593Z [Info ] WebSocket HAS binary support
  4. wmks.min.js:1 2016-11-03T05:26:59.595Z [Info ] WebSocket created protocol: binary
  5. wmks.min.js:1 2016-11-03T05:26:59.604Z [Info ] Server security types: 1
  6. wmks.min.js:1 2016-11-03T05:26:59.604Z [Info ] Using authentication scheme: 1

-----------

Reply
0 Kudos
1 Solution

Accepted Solutions
elesueur
VMware Employee
VMware Employee
Jump to solution

OK, the answer was staring me right in the face:


  1. wmks.min.js:1 2016-11-03T05:24:54.101Z [Info ] Using authentication scheme: 2
  2. wmks.min.js:1 2016-11-03T05:24:54.101Z [Info ] vnc authentication not implemented

The HTML console does not currently support VNC authentication. Do you have the following set in the VMX file?


RemoteDisplay.vnc.password


Actually, upon further testing, you can have that key set, but if you have


RemoteDisplay.vnc.enabled = "FALSE"


then you can still use the HTML console. So you just need to disable VNC for that VM.


Etienne

View solution in original post

6 Replies
elesueur
VMware Employee
VMware Employee
Jump to solution

Hi there,

Firstly, can you confirm a couple of things for me on the non-working host.

1) Has this host been upgraded from a previous version of ESXi?

2) Can you post the contents of /etc/vmware/rhttpproxy/endpoints.conf

Reply
0 Kudos
thiyagarajan27
Contributor
Contributor
Jump to solution

1. Its not an upgrade.


2. Here is endpoints.conf contents

/                        local            8309                             redirect       allow

/sdk                     local            8307                             redirect       allow

/client/clients.xml      local            8309                             allow          allow

/vpxa                    local            8089                             reject         allow

/mob                     namedpipe        /var/run/vmware/proxy-mob        redirect       allow

/wsman                   local            8889                             redirect       allow

/sdkTunnel               namedpipetunnel  /var/run/vmware/proxy-sdk-tunnel allow          reject

/ha-nfc                  local            12001                            allow          allow

/nfc                     local            12000                            allow          allow

/folder                  local            8309                             redirect       allow

/host                    local            8309                             redirect       allow

/tmp                     local            8309                             redirect       allow

/screen                  local            8309                             redirect       allow

/guestFile               local            8309                             redirect       allow

/cgi-bin                 local            8309                             redirect       allow

/vvold                   local            8090                             allow          allow

/ticket                  tickettunnel     /var/run/vmware/ticket/%1        redirect       allow

Reply
0 Kudos
elesueur
VMware Employee
VMware Employee
Jump to solution

Thanks for supplying the info. I'm still investigating, it would also be useful if you could provide us the vmware.log file from a VM on the host where the console is not working, after you attempt to open a console.

You may have to enable logging in the VM's settings under VM options.

Reply
0 Kudos
elesueur
VMware Employee
VMware Employee
Jump to solution

OK, the answer was staring me right in the face:


  1. wmks.min.js:1 2016-11-03T05:24:54.101Z [Info ] Using authentication scheme: 2
  2. wmks.min.js:1 2016-11-03T05:24:54.101Z [Info ] vnc authentication not implemented

The HTML console does not currently support VNC authentication. Do you have the following set in the VMX file?


RemoteDisplay.vnc.password


Actually, upon further testing, you can have that key set, but if you have


RemoteDisplay.vnc.enabled = "FALSE"


then you can still use the HTML console. So you just need to disable VNC for that VM.


Etienne

thiyagarajan27
Contributor
Contributor
Jump to solution

Thanks Etienne!

-Thiyagu

Reply
0 Kudos
RejinaJasmine
Contributor
Contributor
Jump to solution

We are also hitting the same issue  even after disabling the VNC. Please suggest.