Skip to content
memfd edited this page Nov 20, 2026 · 2 revisions

How arch-m2m migrates a terminal session

Русский

Imagine detaching from tmux with a half-typed command in one pane and an unsaved nano buffer in another. The visible screen belongs to tmux, the editable command line belongs to Bash and Readline, and the unsaved text belongs to nano. The kernel records which process may read input from each pane's terminal. Resuming work requires all four pieces to agree.

Start here What the page explains
Process identity and namespaces How the same shell can keep its PID inside the restored session while acquiring a new host PID.
Taking a consistent snapshot How the controller identifies the source, freezes its applications and checks where execution can resume.
Panes, terminals and foreground jobs How a key reaches nano and why Bash can take the terminal back when the editor exits.
Semantic and native restore What each snapshot contains, what must already exist on the target and what makes a restore successful.

The semantic profile covers managed trees of tmux 3.8, Bash 5.3.20 with Readline 8.3.6, and nano 9.3 on x86-64. Source and target need the registered executable and library builds. A primary Bash prompt and a supported foreground nano edit are examples of states this profile can capture. An active SSH connection or a partly executed shell script falls outside it.

Two commands answer different questions about a semantic snapshot. arch-m2m inspect BUNDLE verifies it and lists its application profiles. arch-m2m restore reconstructs the tree and checks that the resulting applications can also undergo a native checkpoint and restore. The corresponding machine-image operations are under arch-m2m native. See man 8 arch-m2m and man 8 arch-m2m-native for invocation and host requirements.

Clone this wiki locally