[Operation and maintenance] kimchi configure noVNC

ObtainnoVNC

Obtain noVNC source code

git clone https://github.com/novnc/noVNC.git

kimchiConfigurationnoVNC

kimchiUse noVNCof wasmbranches

cd noVNC
git checkout wasm
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
cd ..
cp -r noVNC /usr/share/wok/plugins/kimchi/ui/novnc
ln -s /usr/share/wok/plugins/kimchi/ui/novnc /usr/share/novnc

noVNCInstallation test

noVNCTo verify whether the function is available, start the test command as follows, among which 5901is the virtual machine vncport, which can be netstat -tunlpviewed through the command

./utils/launch.sh --vnc localhost:5901

Then through the browser to access the login verification, you need to allow port 6080

# 放通端口
firewall-cmd --add-port=6080/tcp --permanen
firewall-cmd --reload

Browser access address: https://IP:6080

Common mistakes

  1. The error message is as follows
connection but '/root/kimchi/noVNC/self.pem' not found

Solution:

openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem

Guess you like

Origin blog.csdn.net/macaiyun0629/article/details/109212298