-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRIU Fails to Restore Ubuntu Container in Minikube #2534
Comments
Why do you grep for The tutorial you are following was written by myself but that was a couple of years ago. To know which mountpoint is causing the problems I think following command could help. Do a What exactly does minikube do? Are you running the runc container in a Kubernetes container? |
Thank you so much for the reply.
Latest restore log:
I then ran crit show mountpoints-13.img and found the following info related to ID 762:
|
Try to use the Kubernetes API endpoints for it. The tutorial you found is only about runc, not in combination with Kubernetes. I am still very confused what you are trying to do. Have you seen this: https://kubernetes.io/blog/2022/12/05/forensic-container-checkpointing-alpha/ ? That should have all steps described which you need to do to checkpoint and restore a container with Kubernetes. |
Yes, I did saw that article and I was able to restore the container using thank you. |
I am using the following image: quay.io/adrianreber/counter Try that one. That is known to work. Which one are you using? I can try it with your image to see if it would work for me. |
thanks |
Ah, maybe we never tested a container with a command specified in the yaml file. Maybe the console handling also does not work. |
It works, we did similar experiments with @viktoriaas.
The restore part was recently fixed in CRI-O with cri-o/cri-o#8290 |
Description
I'm encountering an issue while attempting to restore a container running in local minikube setup. I am trying to implement this tutorial but I am not interested in migration.
Steps to reproduce the issue:
minikube ssh
mkdir cat-rootfs
cd cat-rootfs
debootstrap --arch amd64 focal /containers/cat-rootfs http://archive.ubuntu.com/ubuntu/
cd /home/cat
config.json
usingoci-runtime-tool
jq '.linux.namespaces |= map(select(.type != "network"))' config.json > temp.json && mv temp.json config.json
jq '.root.path = "/containers/cat-rootfs"' /home/cat/config.json > /home/cat/config.json.tmp && mv /home/cat/config.json.tmp /home/cat/config.json
runc checkpoint <>
runc restore <>
Describe the results you received:
Describe the results you expected:
Restored container
Additional information you deem important (e.g. issue happens only occasionally):
1.
CRIU logs and information:
CRIU full dump/restore logs:
Output of `criu --version`:
Output of `criu check --all`:
Additional environment details:
1.
minikube start --driver=docker --network=host --container-runtime=cri-o --extra-config=kubelet.feature-gates=ContainerCheckpoint=true
The text was updated successfully, but these errors were encountered: