Comments (13)
I have started with the implementation. Will let you know if I need support or if we can divide it up.
from youki.
Hey @duduainankai I could use your help. What I have done so far:
- I have generated the code for the criu protobuf messages
- I can start criu in swrk mode
- I can send a message to criu to dump a simple process
- The message is processed and the process successfully dumped according to the criu logs. The image files are written to the output folder.
- I am waiting to receive a response from criu to tell me everything went well
... and nothing happens, I am never receiving a response
I am following the steps outlined here and in runc. Maybe you have an idea?
from youki.
I started the discussion about a CRIU rust interface here checkpoint-restore/criu#1722
from youki.
I only implemented the checkpoint part. I did not find the time yet to implement the restore part of the code. Once restore is implemented this can be closed.
from youki.
Is there any thing I can help ?
from youki.
@Furisto Have you started implementing this yet?
from youki.
Hey @duduainankai I could use your help. What I have done so far:
- I have generated the code for the criu protobuf messages
- I can start criu in swrk mode
- I can send a message to criu to dump a simple process
- The message is processed and the process successfully dumped according to the criu logs. The image files are written to the output folder.
- I am waiting to receive a response from criu to tell me everything went well
... and nothing happens, I am never receiving a responseI am following the steps outlined here and in runc. Maybe you have an idea?
Got. I will check on what you have listed and see what I can do. @Furisto
from youki.
@adrianreber Thanks! Will take a look.
from youki.
I tried to checkpoint a container and it almost works. The main problem currently is that -d
--detach
is missing which does a setsid()
. Are there any plans to implement --detach
soon? With --detach
checkpointing should be possible pretty easily.
from youki.
Checkpointing works now, if I do setsid()
after starting the container with stdin, stdout, stderr redirected to /dev/null.
It is also important that the youki re-opens /dev/null
inside the container like I did it for crun
: containers/crun@bbb1fa9
This is also needed: #623
from youki.
@adrianreber
Awesome!
Oh, I forgot about it 😭 Can I ask you to create an issue?
Are there any plans to implement --detach soon?
from youki.
from youki.
Sorry to ping the issue subscribers here, but is this still relevant? Two of the thing mentioned in above have been merged/closed, and the first issue has a related PR which has been merged. If I recall correctly, there are also some integration tests regarding the checkpoint-restore functionality. If this support is done, can we close this issue? If not, what else might be needed for it to work?
from youki.
Related Issues (20)
- README.md of integration test is not up-to-date HOT 2
- Vagrantfile does not work HOT 2
- Convert unwraps to `?` and improve logging HOT 3
- App using WasmEdge networking freezes when used with youki HOT 9
- Implement a crate like opencontainers/selinux HOT 11
- Update nix to 0.28.0 HOT 5
- Getting away from libseccomp HOT 5
- default debug level HOT 1
- On some systems, mounting cgroup v1 by `setup_emulated_subsystem` may missing some subsystems HOT 9
- Creating container without network namespace leads to mount error HOT 3
- Wrong directory when using a tenant container and w/ a mount namespace HOT 1
- `runc` differences given the same `config.json` HOT 2
- Packaging youki for openSUSE: How to disable the tests that need dbus? HOT 8
- Unexpected `chdir` invoked on container `init` and `start` HOT 9
- add build_with_spec(spec) HOT 8
- Add CPU affinity to executed processes HOT 2
- Associated type defaults are not stable, broken since 0.3.2 HOT 1
- Move youki_version macro define in use before
- change `mount.rs` find_parent_mount from pub to private HOT 3
- Options to pass env vars from OCI Spec to WASI Context HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youki.