<div dir="ltr"><br><div class="gmail_extra">Hi Krystof,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I added <a href="mailto:criu@openvz.org">criu@openvz.org</a> in CC</div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-11 5:03 GMT+04:00 Krystof Zmudzinski <span dir="ltr"><<a href="mailto:krystof_zmudzinski@yahoo.com" target="_blank">krystof_zmudzinski@yahoo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:10pt;background-color:rgb(255,255,255)"><div>Andrew,</div><div><br></div><div>I've spent some time trying to build a system, which would allow me to dump and restore a Linux container using criu. I started by reading instructions on this page <a href="http://criu.org/LXC" target="_blank">LXC</a> but the information seems buggy. For example, test-lxc.conf has these 2 seemingly incompatible lines in it:</div><div>lxc.mount = /root/test-lxc/etc/fstab<br>lxc.rootfs = /root/test-lxc-root/</div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent">So is the rootfs in /root/test-lxc or /root/test-lxc-root></div></div></div></blockquote><div><br></div><div>It can't be buggy, because I have copied this config from my test node. I think you can use /root/test-lxc and don't bind-mount /root/test-lxc to /root/test-lxc-root, but you will need to do this bind-mount to restore the CT.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:10pt;background-color:rgb(255,255,255)"><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent">When I tried executing lxc-create -n test-lxc -f test-lxc.conf with the configuration as presented on that page, lxc-create failed. When I changed rootfs to /root/test-lxc everywhere, it worked. I was even able to dump the container using the criu-1.3 but restore never worked. That was on
Ubuntu 14.04. When I switched to Fedora 20, even dump didn't work.</div></div></div></blockquote><div><br></div><div>If you are able to dump the CT, you must able to restore it. If you can't to do that, it's bug and we are ready to fix it. So could you show how you execute criu and logs from "criu dump" and "criu restore"?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:10pt;background-color:rgb(255,255,255)"><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent">I don't really care what system I have to use and how simple my container is. I can tell that there are other people on the net who talk about successfully dumping and restoring containers but I can't figure out what system/container configurations they use.</div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent">Could you provide me with a pointer to the host configuration and container configuration -- even if I have to go some older versions -- that allow for a successful dump/restore of a Linux container?</div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent">BTW, I have
been able to use criu-1.3 to dump/restore single processes.</div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent">Thanks in adavance,</div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13.33px;font-style:normal;background-color:transparent">Krystof<br></div><div><br><br></div><div style="width:450px;font-family:Georgia,Times,'Times New Roman',serif;margin-top:5px;margin-bottom:5px"><table style="width:450px;height:auto;display:block" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td style="height:1px;font-size:1px;border-collapse:collapse;background-color:rgb(229,229,229)" colspan="7"><div style="min-height:1px;line-height:0px;font-size:1px;background-color:rgb(229,229,229)"> </div></td></tr><tr><td style="width:1px;font-size:1pt;border-collapse:collapse;background-color:rgb(229,229,229)" rowspan="5"><div style="width:1px;font-size:1pt;background-color:rgb(229,229,229)"> </div></td><td style="width:14px;font-size:0pt;border-collapse:collapse;background-color:rgb(255,255,255)" rowspan="5"><div style="width:14px;font-size:14pt;background-color:rgb(255,255,255)"> </div></td><td style="height:6px;font-size:0pt;border-collapse:collapse;background-color:rgb(255,255,255)" colspan="2"><div style="min-height:6px;font-size:6pt;background-color:rgb(255,255,255)"> </div></td><td style="width:20px;font-size:0pt;border-collapse:collapse;background-color:rgb(255,255,255)" rowspan="5"><div style="width:20px;font-size:20pt;background-color:rgb(255,255,255)"> </div></td><td width="1" style="width:1px;font-size:1pt;border-collapse:collapse;background-color:rgb(229,229,229)" rowspan="5"><div style="width:1px;font-size:1pt;background-color:rgb(229,229,229)"> </div></td></tr><tr><td style="width:100%;font-family:Georgia,Times,'Times New Roman',serif;vertical-align:middle" colspan="2"><div style="width:414px;line-height:16.5px;background-color:rgb(255,255,255)"><div><span></span><span></span><a style="line-height:100%;font-size:18px;display:block;color:rgb(0,0,0)!important;text-decoration:none!important" href="http://criu.org/LXC" target="_blank"><span style="margin:0px 0px 3px;color:rgb(0,0,0);line-height:21px;font-size:18px;font-weight:normal;display:inline-block;max-height:43px;overflow:hidden!important">LXC</span></a><div style="color:rgb(153,153,153);line-height:20px;overflow:hidden;font-family:Georgia,Times,'Times New Roman',serif;font-size:13px;max-height:81px">This article describes how to perform checkpoint-restore for an LXC container.</div></div></div></td></tr><tr><td style="height:6px;font-size:0pt;border-collapse:collapse;background-color:rgb(255,255,255)" colspan="2"><div style="min-height:6px;font-size:6pt;background-color:rgb(255,255,255)"></div></td></tr><tr><td style="font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;vertical-align:middle"><div style="font-size:0pt"><a style="color:black;text-decoration:none!important" href="http://criu.org/LXC" target="_blank"><span style="line-height:11px;overflow:hidden;display:inline-block;max-height:13px;min-width:254px;max-width:314px"><span style="color:rgb(153,153,153);line-height:11px;font-size:9px;vertical-align:middle">View on <span style="font-weight:bold">criu.org</span></span></span></a></div></td><td style="width:100px;font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;vertical-align:middle"><div style="text-align:right;line-height:11px;overflow:hidden;font-size:0pt;max-height:13px;min-width:80px;max-width:100px"><span style="color:rgb(153,153,153);line-height:11px;font-size:9px;vertical-align:middle">Preview by Yahoo</span></div></td></tr><tr><td style="height:9px;font-size:0pt;border-collapse:collapse;background-color:rgb(255,255,255)" colspan="2"><div style="min-height:9px;font-size:9pt;background-color:rgb(255,255,255)"></div></td></tr><tr><td style="height:1px;font-size:1px;border-collapse:collapse;background-color:rgb(229,229,229)" colspan="7"><div style="min-height:1px;line-height:0px;font-size:1px;background-color:rgb(229,229,229)"> </div></td></tr></tbody></table></div><div> </div></div></div></blockquote></div><br></div></div>