Difference between revisions of "External resources"
Jump to navigation
Jump to search
m (→See also) |
Anuj.kumar (talk | contribs) m |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | A resource is called "external", if it can't be dumped and restored without some help from the caller. Usually this means that a part of its state is out of a dumped container. | |
− | == | + | == Dump == |
− | Typically external resources are just told to be such on dump. The respective option looks like <code>--external TYPE[ID] | + | Typically external resources are just told to be such on dump. The respective option looks like <code>--external ''TYPE''[''ID'']:''VAL''</code> option, where <code>''TYPE''</code> is resource type, <code>''ID''</code> is resource ID and <code>''VAL''</code> is optional argument. |
== Restore == | == Restore == | ||
Line 9: | Line 9: | ||
Restoring external resources heavily depends on its type. Some resources can be restored by CRIU itself with the help of <code>--external</code> option, some cannot. See below for further details. | Restoring external resources heavily depends on its type. Some resources can be restored by CRIU itself with the help of <code>--external</code> option, some cannot. See below for further details. | ||
− | == | + | == Resource types == |
+ | |||
+ | The following external resources can be checkpointed and restored: | ||
* [[External bind mounts]] | * [[External bind mounts]] | ||
Line 16: | Line 18: | ||
* [[External UNIX socket]] | * [[External UNIX socket]] | ||
* [[VETH device]] | * [[VETH device]] | ||
+ | * [[Mac-Vlan]] | ||
+ | * [[External net namespaces]] | ||
== See also == | == See also == |
Latest revision as of 11:34, 17 March 2020
A resource is called "external", if it can't be dumped and restored without some help from the caller. Usually this means that a part of its state is out of a dumped container.
Dump[edit]
Typically external resources are just told to be such on dump. The respective option looks like --external TYPE[ID]:VAL
option, where TYPE
is resource type, ID
is resource ID and VAL
is optional argument.
Restore[edit]
Restoring external resources heavily depends on its type. Some resources can be restored by CRIU itself with the help of --external
option, some cannot. See below for further details.
Resource types[edit]
The following external resources can be checkpointed and restored:
- External bind mounts
- External mount devices
- External files
- External UNIX socket
- VETH device
- Mac-Vlan
- External net namespaces