checkpoint-restore / criu

Checkpoint/Restore tool
criu.org
Other
2.9k stars 583 forks source link

Can not pass images_dir_fd option when using pycriu #2419

Open prenit-wankhede opened 3 months ago

prenit-wankhede commented 3 months ago

When trying to use pycriu to dump a python process, it is throwing error

import os from pycriu.criu import criu

c=criu() f = os.open("dummy", os.O_DIRECTORY) c.opts.images_dir_fd = f c.use_binary("/home/ec2-user/criu/criu/criu/criu") c.dump()

python does not allow getting file descriptors for directories and then write files in that directory.

Has anyone use pycriu library and successfully dumped the process?

Please help.

adrianreber commented 3 months ago

Please do not add the same question to multiple tickets.

Take a look at p.haul which uses pycriu: https://github.com/checkpoint-restore/p.haul/

github-actions[bot] commented 2 months ago

A friendly reminder that this issue had no activity for 30 days.