<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>Thanks for the fast reply.&nbsp; I will reinstall Ubuntu 14.04, LXC tools and criu-1.3 as before.&nbsp; I will let you know what I had to do along the way when I encounter problems.&nbsp; Maybe at the end you will be able to post this somewhere on your website for somebody like me who is not a Linux expert. :-)</span></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;"><span><br></span></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;"><span>Speaking of not being a Linux expert, I'm not sure if I understand the point about the rootfs mounts.&nbsp; I do recall that one of the error messages on restore was something about same rootfs can't be used so I can see how it makes sense what you said about different rootfs there.&nbsp; But I don't understand how&nbsp;the configuration on the website can work when lxc-create is executed.</span></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;"><span><br></span></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;"><span>Krystof</span></div><div><br></div>  <div
 style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <div class="hr" style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); border-image: none; height: 0px; line-height: 0; font-size: 0px;" contenteditable="false" readonly="true"></div>  <font face="Arial" size="2"> <b><span style="font-weight: bold;">From:</span></b> Andrey Wagin &lt;avagin@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Krystof Zmudzinski &lt;krystof_zmudzinski@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "criu@openvz.org" &lt;criu@openvz.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, September 10, 2014 11:59 PM<br> <b><span style="font-weight:
 bold;">Subject:</span></b> Re: system configuration for dumping/restoring LXC<br> </font> </div> <div class="y_msg_container"><br><div id="yiv2857386714"><div><div dir="ltr"><br clear="none"><div class="yiv2857386714gmail_extra">Hi Krystof,</div><div class="yiv2857386714gmail_extra"><br clear="none"></div><div class="yiv2857386714gmail_extra">I added <a href="mailto:criu@openvz.org" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:criu@openvz.org">criu@openvz.org</a> in CC</div><div class="yiv2857386714gmail_extra"><br clear="none"><div class="yiv2857386714gmail_quote">2014-09-11 5:03 GMT+04:00 Krystof Zmudzinski <span dir="ltr">&lt;<a href="mailto:krystof_zmudzinski@yahoo.com" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:krystof_zmudzinski@yahoo.com">krystof_zmudzinski@yahoo.com</a>&gt;</span>:<br clear="none"><blockquote class="yiv2857386714gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color:
 rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><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 clear="none"></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.&nbsp; I started by reading instructions on this page <a href="http://criu.org/LXC" target="_blank" rel="nofollow" shape="rect">LXC</a>&nbsp;but the information seems buggy.&nbsp; For example, test-lxc.conf has these 2 seemingly incompatible lines in it:</div><div>lxc.mount = /root/test-lxc/etc/fstab<br clear="none">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 clear="none"></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&gt;</div></div></div></blockquote><div><br clear="none"></div><div>It can't be buggy, because I have copied this config from my test node. I think you can use&nbsp;&nbsp;/root/test-lxc and don't bind-mount&nbsp;/root/test-lxc to&nbsp;/root/test-lxc-root, but you will need to do this bind-mount to restore the CT.</div><div>&nbsp;</div><blockquote class="yiv2857386714gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><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 clear="none"></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.&nbsp; When I changed rootfs to /root/test-lxc everywhere, it worked.&nbsp; I was even able to dump the container using the criu-1.3 but restore never worked.&nbsp; That was on
 Ubuntu 14.04.&nbsp; When I switched to Fedora 20, even dump didn't work.</div></div></div></blockquote><div><br clear="none"></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 class="qtdSeparateBR"><br><br></div><div class="yiv2857386714yqt9461009572" id="yiv2857386714yqtfd95211"><div>&nbsp;</div><blockquote class="yiv2857386714gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><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 clear="none"></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.&nbsp; 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 clear="none"></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 clear="none"></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 clear="none"></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 clear="none"></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 clear="none"></div><div><br clear="none"><br clear="none"></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);" rowspan="1" colspan="7"><div style="line-height: 0px; font-size: 1px; min-height: 1px; background-color: rgb(229, 229, 229);">&nbsp;</div></td></tr><tr><td style="width: 1px; font-size: 1pt; border-collapse: collapse; background-color: rgb(229, 229, 229);" rowspan="5" colspan="1"><div style="width: 1px; font-size: 1pt; background-color: rgb(229, 229, 229);">&nbsp;</div></td><td style="width: 14px; font-size: 0pt; border-collapse: collapse; background-color: rgb(255,
 255, 255);" rowspan="5" colspan="1"><div style="width: 14px; font-size: 14pt; background-color: rgb(255, 255, 255);">&nbsp;</div></td><td style="height: 6px; font-size: 0pt; border-collapse: collapse; background-color: rgb(255, 255, 255);" rowspan="1" colspan="2"><div style="font-size: 6pt; min-height: 6px; background-color: rgb(255, 255, 255);">&nbsp;</div></td><td style="width: 20px; font-size: 0pt; border-collapse: collapse; background-color: rgb(255, 255, 255);" rowspan="5" colspan="1"><div style="width: 20px; font-size: 20pt; background-color: rgb(255, 255, 255);">&nbsp;</div></td><td width="1" style="width: 1px; font-size: 1pt; border-collapse: collapse; background-color: rgb(229, 229, 229);" rowspan="5" colspan="1"><div style="width: 1px; font-size: 1pt; background-color: rgb(229, 229, 229);">&nbsp;</div></td></tr><tr><td style='width: 100%; font-family: Georgia, Times, "Times New Roman", serif; vertical-align: middle;' rowspan="1"
 colspan="2"><div style="width: 414px; line-height: 16.5px; background-color: rgb(255, 255, 255);"><div><span></span><span></span><a style="color: rgb(0, 0, 0) !important; line-height: 100%; font-size: 18px; text-decoration: none !important; display: block;" href="http://criu.org/LXC" target="_blank" rel="nofollow" shape="rect"><span style="margin: 0px 0px 3px; color: rgb(0, 0, 0); line-height: 21px; overflow: hidden !important; font-size: 18px; font-weight: normal; display: inline-block; max-height: 43px;">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);" rowspan="1" colspan="2"><div style="font-size: 6pt;
 min-height: 6px; background-color: rgb(255, 255, 255);"></div></td></tr><tr><td style='font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; vertical-align: middle;' rowspan="1" colspan="1"><div style="font-size: 0pt;"><a style="color: black; text-decoration: none !important;" href="http://criu.org/LXC" target="_blank" rel="nofollow" shape="rect"><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;' rowspan="1" colspan="1"><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);" rowspan="1" colspan="2"><div style="font-size: 9pt; min-height: 9px; 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);" rowspan="1" colspan="7"><div style="line-height: 0px; font-size: 1px; min-height: 1px; background-color: rgb(229, 229, 229);">&nbsp;</div></td></tr></tbody></table></div><div> &nbsp;</div></div></div></blockquote></div></div><div class="yiv2857386714yqt9461009572" id="yiv2857386714yqtfd53628"><br clear="none"></div></div></div></div></div><br><br></div> </div> </div>  </div></body></html>