noVNCが開けない
リストアしたVMを立ち上げようとProxmoxのWebGUIからコンソールを表示すると、”noVNCが開けない” となりました。しかもProxmox状態をみると エラー:Failed to run vncproxy.
と表示されているしお手上げ。
と思ったら。原因がわかりました。
ノード証明書が異なるとエラー:Failed が発生
クラスタ環境を構築したあとにノード側でProxmoxを再インストールした場合に発生するようです。具体的には、Proxmoxの再インストールを行った際に同じホスト名(=ノード名)とした場合、マスタクラスタ側で管理しているSSH証明書に齟齬が発生するためのようです。
実際、エラーの詳細を見ると下記が出力されていました。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:rVnjjR/mueG9rysSaASRyFJOqmleVSlC5zPVtqxPD9c.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /etc/ssh/ssh_known_hosts:9
remove with:
ssh-keygen -f "/etc/ssh/ssh_known_hosts" -R "sea-bird4"
Host key for sea-bird4 has changed and you have requested strict checking.
Host key verification failed.
TASK ERROR: Failed to run vncproxy.
どうしたらいいのか!
今回だめになっているノードは sea-bird4
(192.168.0.8) なのでマスタクラスタ側で以下のコマンドを実行する。
# /usr/bin/ssh -e none -o 'HostKeyAlias=sea-bird4' root@192.168.0.8 /bin/true
The authenticity of host 'sea-bird4 (192.168.0.8)' can't be established.
ED25519 key fingerprint is SHA256:UXWuGBsGgHhVfQQvwGSg7v33hXiMv/DB/hPoMRFQ.
This host key is known by the following other names/addresses:
~/.ssh/known_hosts:1: [hashed name]
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'sea-bird4' (ED25519) to the list of known hosts.
参考にさせて頂いたサイト様