vnc does not work in cluster

it does seem to fix the issue if I comment out the stuff I had in there - why would that affect novnc connectivity?
 
yes, actually I did add the following to each hosts .bashrc file at the bottom:

clear
neofetch

- Its just to show basic stats for each host when I ssh in - could this be causing the issue? I'll comment out and retry!
Adding on this, I have neofetch added to bashrc as well.
 
I just want to follow up here so that it's not abandoned - I assumed it worked for both of you. I suspect (well this part I am sure) that as the cross-node comms use SSH as a transport it's pretty unhappy with tools dumping raw data to stdout (must have been neofetch).

It's documented to a point (and if you add the snippet suggested there it will allow you to have whatver in your bashrc as it won't get executed in case of tunneling i.e. non-interactive shell) going on:

https://pve.proxmox.com/pve-docs-6/pvecm.1.html (see Role of SSH in Proxmox VE Clusters)

If this resolved the OP's problem, please marked as solved.

Note: I would suggest to anyone using root as regular login to actually stop doing so (it's how PVE ships, but it's more of an appliance) - the best thing to do is create a fresh ordinary user right after install and put him into sudoers, then only sudo issue commands (or sudo su or su - if lazy). That way your root's rc files could remain clean.

Now of course it would be great if there was another option besides root's console in the GUI.
 
Last edited:
  • Like
Reactions: renvirtual
Hello all,

I've noticed the same issue with accessing a guest console for any VM's (novnc) from within the GUI - this only works if I am logged in to the respective host' UI console ( I can then view the vnc console for the guest on that host) otherwise for any other hosts in the cluster I get the same error, failed to connect to server.

Digging a bit further in both chrome and firefox, I opened the browsers console (control + shift + i) and then in the proxmox web gui trying to access any of the vm's novnc consoles, I did notice in both browsers, their is an error indicating "failed when connecting: invalid server version - see screenshot) all host are updated to proxmox 8.

Happy to provide any additional info that may assist with further troubleshooting.

Ren
Hello. This sounds exactly like the issue I had. The fix that worked for me is posted here: https://www.williammax.com/blog/proxmox-novnc-issues/.

In short, my cluster got "confused" on the backend with multiple ssh keys for each host. Cleaning up the keys and re-adding host keys to known_hosts file fixed things for me.
 
Hello. This sounds exactly like the issue I had. The fix that worked for me is posted here: https://www.williammax.com/blog/proxmox-novnc-issues/.

In short, my cluster got "confused" on the backend with multiple ssh keys for each host. Cleaning up the keys and re-adding host keys to known_hosts file fixed things for me.

This was not that case here, but we originally had thought so as well. I left a comment on your other post yesterday. It's not multiple ssh keys, it's missing ssh keys (with the stale ones still present) that should not have gone missing that are causing THOSE problems. I wished everyone in your situation would +1 themselves on the Bugzilla post https://bugzilla.proxmox.com/show_bug.cgi?id=4886#c28 to have the patch in sooner rather than later.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!