ObtainnoVNC
Obtain noVNC source code
git clone https://github.com/novnc/noVNC.git
kimchi
ConfigurationnoVNC
kimchi
Use noVNC
of wasm
branches
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
noVNC
Installation test
noVNC
To verify whether the function is available, start the test command as follows, among which 5901
is the virtual machine vnc
port, which can be netstat -tunlp
viewed 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
- 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