public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [RFC pve-container/pve-lxc-console v2 0/2] add container console scrollback buffer
@ 2026-11-05 14:49 Filip Schauer
  2026-11-05 14:49 ` [RFC pve-lxc-console v2 1/2] initial commit Filip Schauer
  2026-11-05 14:49 ` [RFC container v2 2/2] add container console scrollback buffer Filip Schauer
  0 siblings, 2 replies; 3+ messages in thread
From: Filip Schauer @ 2026-11-05 14:49 UTC (permalink / raw)
  To: pve-devel

Replace dtach and lxc-console for container consoles with a new
pve-lxc-console binary, which keeps a scrollback buffer and replays it
to clients on attach.

No console output is lost before the first client attaches, whatever
the cmode:

* console: we additionally enable the LXC console ring buffer, which
  records the console output since the container started.
  pve-lxc-console reads its data from there, so users who open the
  console too late still see what the container printed earlier, even
  if no console was open at that time.
* tty: the kernel buffers the output of the tty internally until it is
  read, so nothing is lost before pve-lxc-console picks it up.
* shell: the shell is only started when the console is opened for the
  first time, so there is no earlier output that could be missed.

This also allows us to remove dtach as a dependency from pve-manager.


pve-lxc-console:

Filip Schauer (1):
  initial commit

 .cargo/config.toml   |   5 +
 .gitignore           |  12 ++
 Cargo.toml           |  14 ++
 Makefile             |  77 +++++++++
 build.rs             |  49 ++++++
 debian/changelog     |   5 +
 debian/control       |  31 ++++
 debian/copyright     |  16 ++
 debian/rules         |  29 ++++
 debian/source/format |   1 +
 src/client.rs        |  97 +++++++++++
 src/lxc.rs           |  85 +++++++++
 src/main.rs          |  91 ++++++++++
 src/master.rs        | 402 +++++++++++++++++++++++++++++++++++++++++++
 src/packet.rs        |  85 +++++++++
 15 files changed, 999 insertions(+)
 create mode 100644 .cargo/config.toml
 create mode 100644 .gitignore
 create mode 100644 Cargo.toml
 create mode 100644 Makefile
 create mode 100644 build.rs
 create mode 100644 debian/changelog
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/rules
 create mode 100644 debian/source/format
 create mode 100644 src/client.rs
 create mode 100644 src/lxc.rs
 create mode 100644 src/main.rs
 create mode 100644 src/master.rs
 create mode 100644 src/packet.rs


pve-container:

Filip Schauer (1):
  add container console scrollback buffer

 debian/control      |  1 +
 src/PVE/API2/LXC.pm | 36 +++---------------------------------
 src/PVE/LXC.pm      | 11 +++++++++++
 3 files changed, 15 insertions(+), 33 deletions(-)


Summary over all repositories:
  18 files changed, 1014 insertions(+), 33 deletions(-)

-- 
Generated by murpp 0.12.1




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-05 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05 14:49 [RFC pve-container/pve-lxc-console v2 0/2] add container console scrollback buffer Filip Schauer
2026-11-05 14:49 ` [RFC pve-lxc-console v2 1/2] initial commit Filip Schauer
2026-11-05 14:49 ` [RFC container v2 2/2] add container console scrollback buffer Filip Schauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal