Demo: the session launcher -- one throwaway QEMU per visitor #112

Open
opened 2026-11-06 19:21:56 +00:00 by rajames · 1 comment
Owner

What

start-session.sh: one QEMU amd64 per visitor, its serial console on stdin/stdout, gone when the visitor leaves.

Why

Captain Bob, 2026-11-06: a terminal with QEMU amd64 up for people to play with.

Done when

  • Every session starts from the same pristine state; nothing a visitor does survives the session
  • The guest has no network (-nic none); QEMU's seccomp sandbox on (-sandbox on); runs as an unprivileged user
  • Memory, CPU and wall-clock time are capped; an idle or over-time session ends
  • Typing 3 4 + . at the prompt answers 7 ok, through the launcher, in a scripted test
## What `start-session.sh`: one QEMU amd64 per visitor, its serial console on stdin/stdout, gone when the visitor leaves. ## Why Captain Bob, 2026-11-06: a terminal with QEMU amd64 up for people to play with. ## Done when - [ ] Every session starts from the same pristine state; nothing a visitor does survives the session - [ ] The guest has no network (`-nic none`); QEMU's seccomp sandbox on (`-sandbox on`); runs as an unprivileged user - [ ] Memory, CPU and wall-clock time are capped; an idle or over-time session ends - [ ] Typing `3 4 + .` at the prompt answers `7 ok`, through the launcher, in a scripted test
rajames added this to the Public demo terminal milestone 2026-11-06 19:21:56 +00:00
rajames added the
kind
feature
board/pc
priority
should
status
in-progress
labels 2026-11-06 19:21:56 +00:00
Author
Owner

Built and tested in 9e711563, on StarForth-v4.0.0; reaches master by PR, through acceptance. See demo/README.md, Tested: ready 0.2 s after a session starts (a cold boot is 87 s); 3 4 + . -> 7 ok through ttyd's websocket; QEMU gone at once on hang-up, close and time-out.

**Built and tested** in `9e711563`, on `StarForth-v4.0.0`; reaches `master` by PR, through acceptance. See `demo/README.md`, *Tested*: ready 0.2 s after a session starts (a cold boot is 87 s); `3 4 + .` -> `7 ok` through ttyd's websocket; QEMU gone at once on hang-up, close and time-out.
rajames added
status
needs-acceptance
and removed
status
in-progress
labels 2026-11-06 19:41:42 +00:00
Sign in to join this conversation.