获取noVNC源代码
git clone https://github.com/novnc/noVNC.gitkimchi使用noVNC的wasm分支
cd noVNC git checkout wasm openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem ./utils/launch.sh --vnc localhost:5901 # 相关依赖下载完后关闭 cd .. cp -r noVNC /usr/share/wok/plugins/kimchi/ui/novnc ln -s /usr/share/wok/plugins/kimchi/ui/novnc /usr/share/novncnoVNC验证功能是否可用,启动测试命令如下,其中5901是虚拟机vnc端口,可通过netstat -tunlp命令查看
./utils/launch.sh --vnc localhost:5901然后通过浏览器访问登陆验证,需要放通6080端口
# 放通端口 firewall-cmd --add-port=6080/tcp --permanent firewall-cmd --reload浏览器访问地址:https://IP:6080
解决方法:
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem