如下图:Something went wrong, connection is closed 出现此样式
出现此问题的原因:openstack中 /usr/share/novnc/core/websock.js 此文件缺少binary或base64需要引入协议
解决方法:
1.修改配置文件
[root@openstack ~]# vim /usr/share/novnc/core/websock.js
230 open(uri, protocols) {
231 this.attach(new WebSocket(uri,['binary','base64'])); #修改此处,加入协议
232 }
2.重启服务验证(重启后需要清理浏览器缓存,然后重新访问)
[root@openstack ~]# systemctl restart openstack-nova-novncproxy.service