mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 13:53:28 +01:00
Checkpoint / Restore Functionality with CRIU #200
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @christosnc on GitHub (Jun 11, 2021).
Hello,
I would like to say this is a great project. I managed to install macOS on Ubuntu 20.04. As others pointed out, booting is very slow (especially for CI / CD) and I would like to have a suspend functionality, in order to start right into the booted system.
I found docker's checkpoint experimental feature. To set it up, do the following:
Then I should be able to boot into macOS, and create a checkpoint with:
(I tried starting the container with and without -ai)
But the checkpoint command always fails with:
Am I missing something, or is it impossible to create checkpoints for this project?
(And is there any other solution that I am missing? I couldn't find anything else that suits my needs.)
Thanks!
@christosnc commented on GitHub (Jun 11, 2021):
PS:
I also tried with and without --leave-running=true, with and without sudo, and with the short and full container Id.
Also
sudo criu check --allreturns "Looks good."Looking at the criu logs the following errors are at the bottom:
@christosnc commented on GitHub (Jun 13, 2021):
Update
I also tried creating a snapshot directly in qemu with the savevm command, but this also fails with:
@sickcodes commented on GitHub (Jun 16, 2021):
Hey this is very interesting and I would also like to save the state of the machine. I'll take a look at this during the week
@christosnc commented on GitHub (Jun 19, 2021):
That's awesome! I hope we can get something working
@KernelDash commented on GitHub (Jan 11, 2024):
I also get a similar error when dumping processes that use gpu acceleration/gpu.. Here are the logs:
(00.019628) Error (criu/proc_parse.c:467): Unknown shit 600 (anon_inode:i915.gem) (00.019645) Error (criu/proc_parse.c:694): Can't open 74009's mapfile link 7f2e13200000: No such device or address (00.019655) Error (criu/cr-dump.c:1558): Collect mappings (pid: 74009) failed with -1 (00.019768) net: Unlock network (00.019776) Unfreezing tasks into 1 (00.019779) Unseizing 74009 into 1 (00.020261) Error (criu/cr-dump.c:2093): Dumping FAILED.edit: I think its because of the gpu because it says "anon_inode:i915.gem" and i915 is a gpu driver
@silenceli commented on GitHub (Oct 28, 2025):
meet the same issue:
when I dump a vllm process with T4 GPU