<div dir="ltr"><div style="font-size:12.8px">Hi Guys,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I&#39;m a CRIU noob and attempting to migrate a docker container between two hosts. however, I get an error stating: </div><div style="font-size:12.8px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><br></div><div><font face="monospace, monospace">Error (criu/cgroup.c:1642): cg:     Can&#39;t mount controller dir .criu.cgyard.g3irYd/cpu,<wbr>cpuacct: Device or resource busy</font></div></blockquote></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Here are my specs:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b>Host 1:<br></b></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace">➜  ~ uname -a       </font></div><div><font face="monospace, monospace">Linux ip-172-31-16-41 4.4.0-77-generic #98-Ubuntu SMP Wed Apr 26 08:34:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</font></div><div><font face="monospace, monospace">➜  ~ </font></div><div><font face="monospace, monospace">➜  ~ docker -v      </font></div><div><font face="monospace, monospace">Docker version 17.03.1-ce, build c6d412e</font></div><div><font face="monospace, monospace">➜  ~ </font></div><div><font face="monospace, monospace">➜  ~ </font></div><div><font face="monospace, monospace">➜  ~ sudo criu check</font></div><div><font face="monospace, monospace">Warn  (criu/autofs.c:77): Failed to find pipe_ino option (old kernel?)</font></div><div><font face="monospace, monospace">Looks good.</font></div></blockquote><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b>Host 2:</b></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace">➜  ~ uname -a</font></div><div><font face="monospace, monospace">Linux mininet-vm 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</font></div><div><font face="monospace, monospace">➜  ~ </font></div><div><font face="monospace, monospace">➜  ~ docker -v</font></div><div><font face="monospace, monospace">Docker version 17.03.1-ce, build c6d412e</font></div><div><font face="monospace, monospace">➜  ~ </font></div><div><font face="monospace, monospace">➜  ~ sudo criu check</font></div><div><font face="monospace, monospace">Looks good.</font></div></blockquote><br style="font-size:12.8px"><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Here&#39;s how to reproduce it:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b>Host 1:</b></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace">➜  ~ docker run -d --name looper --security-opt seccomp:unconfined busybox \</font></div><div><font face="monospace, monospace">         /bin/sh -c &#39;i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done&#39;</font></div><div><font face="monospace, monospace">d830494e8bca353861c734a1285414<wbr>5fd9399b31f173a931e6cfdb529988<wbr>dd06</font></div><div><font face="monospace, monospace">➜  ~ docker checkpoint create --checkpoint-dir=/tmp looper cp1</font></div></blockquote><div style="font-size:12.8px"><div><br></div><div><br></div><div>Then I copy the /tmp/cp1 to the host 2.</div><div><br></div><div><br></div><div><b>Host 2:</b></div></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">➜  ~ docker create --name looper2 --security-opt seccomp:unconfined busybox \</font></div><div><font face="monospace, monospace">         /bin/sh -c &#39;i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done&#39;</font></div><div><font face="monospace, monospace">50d41c5580e4800b17b753c1ca8ecb<wbr>011c142842002e467eb79111c4324e<wbr>737e</font></div><div><font face="monospace, monospace">➜  ~ docker start --checkpoint-dir=/tmp --checkpoint=cp1 looper2               </font></div><div><font face="monospace, monospace">Error response from daemon: oci runtime error: criu failed: type RESTORE errno 0</font></div><div><font face="monospace, monospace">log file: /tmp/cp1/<a href="http://criu.work/restore-2017-05-26T13:15:21-07:00/restore.log" target="_blank">criu.work/restore-<wbr>2017-05-26T13:15:21-07:00/<wbr>restore.log</a></font></div><div><br></div><div><br></div></blockquote><div style="font-size:12.8px">Here&#39;s the<b> error log</b></div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">➜  ~ sudo tail /tmp/cp1/<a href="http://criu.work/restore-2017-05-26T13:15:21-07:00/restore.log" target="_blank">criu.work/restore-<wbr>2017-05-26T13:15:21-07:00/<wbr>restore.log</a></font></div><div><font face="monospace, monospace">(00.000427) cg: rewriting docker/<wbr>d830494e8bca353861c734a1285414<wbr>5fd9399b31f173a931e6cfdb529988<wbr>dd06 to /docker/<wbr>50d41c5580e4800b17b753c1ca8ecb<wbr>011c142842002e467eb79111c4324e<wbr>737e</font></div><div><font face="monospace, monospace">(00.000430) cg: rewriting docker/<wbr>d830494e8bca353861c734a1285414<wbr>5fd9399b31f173a931e6cfdb529988<wbr>dd06 to /docker/<wbr>50d41c5580e4800b17b753c1ca8ecb<wbr>011c142842002e467eb79111c4324e<wbr>737e</font></div><div><font face="monospace, monospace">(00.000433) cg: rewriting docker/<wbr>d830494e8bca353861c734a1285414<wbr>5fd9399b31f173a931e6cfdb529988<wbr>dd06 to /docker/<wbr>50d41c5580e4800b17b753c1ca8ecb<wbr>011c142842002e467eb79111c4324e<wbr>737e</font></div><div><font face="monospace, monospace">(00.000436) cg: rewriting docker/<wbr>d830494e8bca353861c734a1285414<wbr>5fd9399b31f173a931e6cfdb529988<wbr>dd06 to /docker/<wbr>50d41c5580e4800b17b753c1ca8ecb<wbr>011c142842002e467eb79111c4324e<wbr>737e</font></div><div><font face="monospace, monospace">(00.000438) cg: rewriting docker/<wbr>d830494e8bca353861c734a1285414<wbr>5fd9399b31f173a931e6cfdb529988<wbr>dd06 to /docker/<wbr>50d41c5580e4800b17b753c1ca8ecb<wbr>011c142842002e467eb79111c4324e<wbr>737e</font></div><div><font face="monospace, monospace">(00.000442) cg: rewriting docker/<wbr>d830494e8bca353861c734a1285414<wbr>5fd9399b31f173a931e6cfdb529988<wbr>dd06 to /docker/<wbr>50d41c5580e4800b17b753c1ca8ecb<wbr>011c142842002e467eb79111c4324e<wbr>737e</font></div><div><font face="monospace, monospace">(00.000446) cg: Preparing cgroups yard (cgroups restore mode 0x4)</font></div><div><font face="monospace, monospace">(00.000489) cg: Opening .criu.cgyard.g3irYd as cg yard</font></div><div><font face="monospace, monospace">(00.000517) cg: <span class="gmail-m_-7482905666840501078gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Making controller dir .criu.cgyard.g3irYd/cpu,<wbr>cpuacct (cpu,cpuacct)</font></div><div><font face="monospace, monospace">(00.000555) Error (criu/cgroup.c:1642): cg: <span class="gmail-m_-7482905666840501078gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>Can&#39;t mount controller dir .criu.cgyard.g3irYd/cpu,<wbr>cpuacct: Device or resource busy</font></div></blockquote><div style="font-size:12.8px"><div><br></div><div><br></div><div>TIA,</div><div>Krishna.</div></div></div>