问题描述

环境: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)
vCenter 6.7 HTML web console连接vm黑屏
利用web console连接vm时,显示黑屏:
vCenter 6.7 HTML web console连接vm黑屏
报错:The console has been disconnected. Close this window and re-launch the console to reconnect.未出现MKS (Mouse,Keyboard,Screen).提示。
vCenter 6.7 HTML web console连接vm黑屏
但改VM可以在VMRC和vSphere Client中成功打开控制台。

原因

1、检查vc的C:\ProgramData\VMware\vCenterServer\logs\vsphere-client\logs\vsphere_client_virgo.log;
对于vcsa:/storage/log/vmware/目录下,如下图所示,
vCenter 6.7 HTML web console连接vm黑屏
其中H5登录的事UI,去检查UI下的日志
vCenter 6.7 HTML web console连接vm黑屏
检查日志:
vCenter 6.7 HTML web console连接vm黑屏
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)找同事在别的电脑上可正常打开,遂项这应该是我本地浏览器问题,尤其缓存,考虑清理缓存,
vCenter 6.7 HTML web console连接vm黑屏

4)测试在其他浏览器上访问正常,应该是缓存的作用。

1)消除vm同时连接数限制:
vCenter 6.7 HTML web console连接vm黑屏

vCenter 6.7 HTML web console连接vm黑屏
vCenter 6.7 HTML web console连接vm黑屏

编辑打开,搜索:RemoteDisplay.maxConnections,如果存在该参数,将其值配置为1,如果不存在,新建。
vCenter 6.7 HTML web console连接vm黑屏
vCenter 6.7 HTML web console连接vm黑屏

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

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2021-07-28
  • 2021-11-10
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2021-09-09
  • 2021-12-06
  • 2022-12-23
  • 2021-07-09
  • 2021-06-26
  • 2021-11-03
  • 2021-04-15
相关资源
相似解决方案