<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Thouraya,<br>
    <br>
    <div class="moz-cite-prefix">On 02/03/2015 01:06 PM, Thouraya TH
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALbnis1cNFyLq_+TkA=S2sGQvXTiBVddqOcehkxnL31DUiuxAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hello,<br>
          </div>
          <div>
            <pre><font><span style="font-family:arial,helvetica,sans-serif">$ cat &gt; test.sh &lt;&lt;-EOF
#!/bin/sh
while :; do
    sleep 1
    date
done
EOF
$ chmod +x <b>test.sh</b>

</span></font></pre>
            <pre><font><span style="font-family:arial,helvetica,sans-serif">I'd like to migrate and  restart this process on a new machine.
</span></font></pre>
            <pre><font><span style="font-family:arial,helvetica,sans-serif"><b>Fist of all</b>, i have done the <b>dumping process</b>:

root@g-71:/home# criu dump -vvvv -o dump.log -D imgDir -R -t 1249 --shell-job &amp;&amp; echo OK
</span></font></pre>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Here you are using "--shell-job" ...<br>
    <br>
    <blockquote
cite="mid:CALbnis1cNFyLq_+TkA=S2sGQvXTiBVddqOcehkxnL31DUiuxAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <pre><font><span style="font-family:arial,helvetica,sans-serif">OK
root@g-71:/home# cd imgDir/
root@g-71:/home/imgDir# ls
cgroup.img      creds-1849.img  ext-files.img  filelocks.img  ids-1849.img   mm-1249.img    packetsk.img      pages-2.img      sigacts-1249.img  stats-dump
core-1249.img   creds-1967.img  fanotify.img   fs-1249.img    ids-1967.img   mm-1849.img    pagemap-1249.img  pipes-data.img   sigacts-1849.img  timerfd.img
core-1849.img   creds-1995.img  fdinfo-2.img   fs-1849.img    ids-1995.img   mm-1967.img    pagemap-1849.img  pipes.img        sigacts-1967.img  tty.img
core-1967.img   dump.log        fdinfo-3.img   fs-1967.img    inetsk.img     mm-1995.img    pagemap-1967.img  pstree.img       sigacts-1995.img  tty-info.img
core-1995.img   eventfd.img     fifo-data.img  fs-1995.img    inotify.img    netlinksk.img  pagemap-1995.img  reg-files.img    signalfd.img      tunfile.img
creds-1249.img  eventpoll.img   fifo.img       ids-1249.img   inventory.img  ns-files.img   pages-1.img       remap-fpath.img  sk-queues.img     unixsk.img
</span></font></pre>
          </div>
          <div><b>Secondly</b>, i try to restart the process <b>on the
              same machine</b> but it didn't work:<br>
            <br>
             criu restore -d -vvv -o restore.log &amp;&amp; echo OK<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    so you should use it here too. Try adding --shell-job to restore
    command and you should be fine =).<br>
    <br>
    <blockquote
cite="mid:CALbnis1cNFyLq_+TkA=S2sGQvXTiBVddqOcehkxnL31DUiuxAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div> ps -C test.sh<br>
              PID TTY          TIME CMD<br>
            <br>
            restore.log<br>
            ............<br>
            ............<br>
            (00.013583)   1249: Collecting 48/29 (flags 0)<br>
            (00.013595)   1249: Collecting 49/31 (flags 2)<br>
            (00.013611)   1249: Collecting 50/32 (flags 2)<br>
            (00.013624)   1249: Collecting 71/33 (flags 2)<br>
            (00.013631)   1249: Collecting 51/34 (flags 2)<br>
            (00.013642)   1249: Collecting 72/35 (flags 2)<br>
            (00.013648)   1249: Collecting 45/37 (flags 2)<br>
            (00.013676)   1249: Collecting 44/36 (flags 2)<br>
            (00.013690)   1249: tty: Collected tty ID 0x1<br>
            (00.013696)   1249: Collecting 52/42 (flags 2)<br>
            (00.013712)   1249: Collecting 34/19 (flags 0)<br>
            (00.013723)   1249: Collecting 54/45 (flags 2)<br>
            (00.013734)   1249: Collecting 55/38 (flags 2)<br>
            (00.013761)   1249: Trying to read socket queues image<br>
            (00.013774)   1249: Error (tty.c:193): tty: Found slave peer
            index 1 without correspond master peer<br>
            (00.013791) Error (cr-restore.c:1838): Restoring FAILED.<br>
            (00.021267) Error (cr-restore.c:1185): 1249 exited, status=1<br>
            <br>
          </div>
          <div>Have you an idea please ?<br>
            <br>
          </div>
          Thanks a lot.<br>
        </div>
        Best Regards. <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
CRIU mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CRIU@openvz.org">CRIU@openvz.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openvz.org/mailman/listinfo/criu">https://lists.openvz.org/mailman/listinfo/criu</a>
</pre>
    </blockquote>
    Thanks,<br>
    Ruslan<br>
  </body>
</html>