CT Console (& Shell) Output Lost When Switching VMs

nife

New Member
Dec 24, 2024
2
0
1
If I am looking at a CT console or the PVE shell in the web interface, switch to another page, and then back again, the console is cleared and a new prompt appears. It would be nice if the console contents were preserved. It's not a problem with VMs.
 
I believe this is to be expected. Its like you enter a shell in SSH & then close that page/application, the session ends. With VMs you are actually looking at a console/monitor (so to speak), so if "you look back at it" it is still there.

With Proxmox (in a browser) you should not be going "to another page", rather use another tab.
 
the console is cleared and a new prompt appears. It would be nice if the console contents were preserved.
Yeah, that's inconvenient ;-)

There are two recommendations from my side:
  1. use ssh instead of the WebGui - this eliminates that problem. Though the ssh-session will terminate when you close the terminal window - so this in itself is half a solution.
  2. use tmux (https://github.com/tmux/tmux/wiki) to establish persistent terminal-sessions. The session will live until the system it runs on is shutting down. (Except you terminate it manually, of course.)
 
  • Like
Reactions: Kingneutron
tmux is an option, personally I prefer GNU screen

Also, there is a novnc console button for LXC that will open in a separate window - that would be persistent when you're switching around in the GUI
 
Last edited: