Skip to content

runsc: support checkpoint/restore with --no-root-container - #15551

Merged
copybara-service[bot] merged 1 commit into
gvisor:masterfrom
milantracy:noroot-checkpoint
Oct 16, 2026
Merged

copybara-service[bot] merged 1 commit into
gvisor:masterfrom
milantracy:noroot-checkpoint

Conversation

@milantracy

Copy link
Copy Markdown
Member

A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

runsc restore --no-root-container --image-path=
runsc restore --image-path= # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

Comment thread runsc/boot/loader.go Resolved
Comment thread runsc/boot/loader.go Resolved
Comment thread runsc/boot/loader.go Resolved
Comment thread runsc/boot/restore.go Resolved
@jingyugao

Copy link
Copy Markdown

Hi, I’m building a sandbox for AI agents using gVisor. With checkpoint/restore support for --no-root-container, could we allow the sandbox to start preparing for restore before checkpoint files are available, and provide those files later when restoring the application container?
This would let kubelet create the application container ahead of time, reducing restore latency. For example, we could prefetch checkpoint files into the host page cache in parallel with sandbox preparation.

@milantracy milantracy added the ready to pull Causes the PR to be imported into Google. Will be removed soon. label Oct 14, 2026
@EtiennePerot

Copy link
Copy Markdown
Member

Hi, I’m building a sandbox for AI agents using gVisor. With checkpoint/restore support for --no-root-container, could we allow the sandbox to start preparing for restore before checkpoint files are available, and provide those files later when restoring the application container? This would let kubelet create the application container ahead of time, reducing restore latency. For example, we could prefetch checkpoint files into the host page cache in parallel with sandbox preparation.

@jingyugao Yes, that is the point of this feature.

@milantracy milantracy added ready to pull Causes the PR to be imported into Google. Will be removed soon. and removed ready to pull Causes the PR to be imported into Google. Will be removed soon. labels Oct 15, 2026
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 15, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
A sandbox now checkpoints like any other and restores like
a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given
the sandbox's ID, because the program runs alongside an existing process
and the sandbox has none. Give a container's ID instead.

Updates gvisor#13948

Signed-off-by: Jing Chen <[email protected]>
copybara-service Bot pushed a commit that referenced this pull request Oct 16, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 16, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 16, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 16, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 16, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 3284113
PiperOrigin-RevId: 999581836
@milantracy milantracy added ready to pull Causes the PR to be imported into Google. Will be removed soon. and removed ready to pull Causes the PR to be imported into Google. Will be removed soon. labels Oct 16, 2026
copybara-service Bot pushed a commit that referenced this pull request Oct 16, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 26f4302
PiperOrigin-RevId: 999581836
copybara-service Bot pushed a commit that referenced this pull request Oct 16, 2026
A sandbox now checkpoints like any other and restores like a pod, with the sandbox ID taking the root container's place:

  runsc restore --no-root-container --image-path=<img> <sandbox>
  runsc restore --image-path=<img> <container>   # once per container

Also fix restoring containers without a name, in any sandbox.

Limitation: runsc checkpoint --save-restore-exec-argv fails when given the sandbox's ID, because the program runs alongside an existing process and the sandbox has none. Give a container's ID instead.

Updates #13948

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15551 from milantracy:noroot-checkpoint 26f4302
PiperOrigin-RevId: 999581836
@copybara-service
copybara-service Bot merged commit a0c9c34 into gvisor:master Oct 16, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull Causes the PR to be imported into Google. Will be removed soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants