You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 87e8441
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: g3doc/user_guide/checkpoint_restore.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Checkpoint/Restore
2
2
3
+
For anonymous disk-backed filestores saved with `--skip-filestore-pages` and `--filestore-snapshot-dir`, older kernels may reject FICLONE between different mount-namespace copies of the same filesystem with `EXDEV`. Start the source with `--filestore-parent-mountns=true` to open its anonymous backing files in the runsc launcher's mount namespace, matching checkpoint destinations opened there. This option is disabled by default and does not change self-backed overlays. It retains a reference to the backing mount until the sandbox exits; drain all users before unmounting that filesystem. Restore with `--filestore-adopt-dir` and clone-on-adopt keeps artifacts reusable and already opens each private clone in the launcher namespace.
4
+
3
5
[TOC]
4
6
5
7
gVisor has the ability to checkpoint a process, save its current state in a
flagSet.String(flagFilestoreAdoptDir, "", "directory containing host filestore files to adopt as the sandbox's writable-layer backing files, instead of creating new anonymous ones. Files are named 'filestore-<n>' in mount order (root first). Requires restoring a state checkpoint saved with --skip-filestore-pages (experimental)")
148
148
flagSet.Bool(flagFilestoreCloneOnAdopt, true, "when adopting filestore artifacts (--filestore-adopt-dir), reflink-clone (FICLONE) a private copy of each artifact instead of consuming the artifact itself, keeping it a reusable read-only template. Requires a reflink-capable filesystem (e.g. XFS); false performs a consuming restore that mutates the artifacts in place (experimental)")
149
+
flagSet.Bool("filestore-parent-mountns", false, "create anonymous filestores in the runsc launcher's mount namespace for same-mount FICLONE checkpoints on older kernels. The backing mount remains pinned until the sandbox exits; drain before unmounting it (experimental)")
149
150
flagSet.Var(hostFifoPtr(HostFifoNone), "host-fifo", "controls permission to access host FIFOs (or named pipes). Values: none|open, default: none")
150
151
flagSet.Bool("gvisor-marker-file", false, "enable the presence of the /proc/gvisor/kernel_is_gvisor file that can be used by applications to detect that gVisor is in use")
151
152
flagSet.String("override-procs", "", "comma-separated list of proc files to override with stubs (e.g. kallsyms)")
0 commit comments