问题描述
环境:vc 6.7, H5 Client html方式访问
vSphere Web Client - Adobe Flex (https://FQDN-or-IP-Address-of-VC/vsphere–client)
vSphere Client - HTML5 (https://FQDN-or-IP-Address-of-VC/UI)
其他访问方式:
Host Client - HTML5 (https://FQDN-or-IP-Address-of-ESXi-host/UI) (available since vSphere 6.0 Update 2)
vSphere Appliance Management UI (VAMI) - HTML5 (https://FQDN-or-IP-Address-of-VCSA:5480) (Only available in the vCenter Server Appliance)
PSC Management UI - HTML5 (available since vSphere 6.0 Update 1):
External PSC deployments (https://FQDN-or-IP-Address-of-PSC/psc)
Embedded PSC deployments (https://FQDN-or-IP-Address-of-VCSA/psc)
利用web console连接vm时,显示黑屏:
报错:The console has been disconnected. Close this window and re-launch the console to reconnect.未出现MKS (Mouse,Keyboard,Screen).提示。
但改VM可以在VMRC和vSphere Client中成功打开控制台。
原因
1、检查vc的C:\ProgramData\VMware\vCenterServer\logs\vsphere-client\logs\vsphere_client_virgo.log;
对于vcsa:/storage/log/vmware/目录下,如下图所示,
其中H5登录的事UI,去检查UI下的日志
检查日志:
unable to return vm date protection related properties!java lang NullPointerException:nu;;
Error retrieve vm config option:com.vmware.vim.binding.vmod1.fault,SystemError:vim.fault.InvalidState
cannot get vm screenshot,result is empty
3)找同事在别的电脑上可正常打开,遂项这应该是我本地浏览器问题,尤其缓存,考虑清理缓存,
4)测试在其他浏览器上访问正常,应该是缓存的作用。
5)对于windows虚拟机,检查vmware.log ,检查是否SVGA版本不兼容所致,其在安装vmtools时一并安装,如果是此因素,需要卸载vmtools重新安装;
附
1)消除vm同时连接数限制:
或
编辑打开,搜索:RemoteDisplay.maxConnections,如果存在该参数,将其值配置为1,如果不存在,新建。
2)vSphere Client (HTML5) and vSphere Web Client 6.5 FAQ (2147929)
参考地址:https://kb.vmware.com/s/article/2147929?lang=en_US&queryTerm=web+console+can+not+connect