The destination host doesn't have the same permissions as the source. Make sure they are the same and its usually good practice to build your VM hosts using a single preconfigured image. You can save yourself a lot of headaches that way.<div>
<br></div><div>Shank<br><br><div class="gmail_quote">On Thu, Jul 5, 2012 at 2:32 AM, Jhon Masschelein <span dir="ltr"><<a href="mailto:jhon.masschelein@sara.nl" target="_blank">jhon.masschelein@sara.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    Sounds like libvirt/qemu have a problem restarting the VM. Are the
    config files for those daemons under /etc/libvirt set up identically
    on all your hosts? Did you make sure that the user that starts the
    kvm process is able to read en write to the files? (In my install I
    added the user "qemu" to the "oneadmin" group to make that work.)<br>
    <br>
    You should have a log file for this particular VM in
    /var/log/libvirt/qemu/one-[vm-id].log. What does it say?<br>
    <br>
    You say it happens occasionally, so not always? Does it always fail
    when you migrate tot this particular host, or also occasionally? If
    occasionally, you have to look for things that change from time to
    time. Do you have config files maintained by chef/puppet/cfengine?
    Do you have user accounts maintained by ldap/nis? If this host
    always fails, it must be bad config of this host; compare it to the
    other hosts that do work.<br>
    <br>
    Where does the "unable to read from monitor" come from. Is it
    opennebula? That is kind of normal: it tries to read the status for
    the VM but since it is not up, it fails. But actually, that should
    not give you a "connection reset"... <br>
    <br>
    <br>
    What you can do to test your setup when it fails:<br>
    <br>
    Go to the directory with the files and before you change anything,
    so a "virsh create deployment.X" where X is the highest number you
    can find in that dir. )In your example, it would be 2). (You will
    need to be root for this or you will not be able to use the "system"
    libvirt space.)<br>
    <br>
    If that "just works" then you have a real strange problem. If it
    gives you errors, try to solve them. :)<br>
    (If you do not know "virsh", you should read up a bit on it.)<br>
    <br>
    Hope this is a bit helpful.<br>
    <br>
    Jhon<div><div class="h5"><br>
    <br>
    <div>On 07/04/2012 12:59 PM, David wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      
      <div style="text-align:left"><font face="Verdana, Arial,
          Helvetica, sans-serif"><span style="line-height:normal"><br>
          </span></font></div>
      <div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Hi, All</span></div>
      <div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">     I used
          OpenNebula3.2.1 version.</span></div>
      <div><span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">     When I execute VM
          migrate operation,</span><span title="点击获取释义">Occasionally</span> the
        VM appears <span title="点击获取释义">a</span> <span title="点击获取释义">migration</span> <span title="点击获取释义">failure</span><span title="点击获取释义">,</span></div>
      <div><span title="点击获取释义">     following</span> <span title="点击获取释义">log:</span></div>
      <div style="text-align:left"><span style="background-color:rgb(232,232,232);font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal">Thu Jun 28 15:16:24 2012
          [LCM][I]: New VM state is RUNNING</span></div>
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:17:09 2012 [LCM][I]: New VM
        state is SAVE_MIGRATE</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:17:42 2012 [VMM][I]: save:
        Executed "virsh --connect </span><a style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">qemu:///system</a><span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)"> [</span><a style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">^</a><span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">] save one-383
        /one_images/383/images/checkpoint".</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:17:42 2012 [VMM][I]:
        ExitCode: 0</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:17:42 2012 [VMM][I]:
        Successfully execute virtualization driver operation: save.</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:17:43 2012 [VMM][I]:
        ExitCode: 0</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:17:43 2012 [VMM][I]:
        Successfully execute network driver operation: clean.</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:17:43 2012 [LCM][I]: New VM
        state is PROLOG_MIGRATE</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:03 2012 [TM][I]:
        tm_mv.sh: Moving /one_images/383/images</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:03 2012 [TM][I]:
        tm_mv.sh: Executed "ssh compute-56-5.local mkdir -p
        /one_images/383".</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:03 2012 [TM][I]:
        tm_mv.sh: Executed "scp -r
        compute-56-4.local:/one_images/383/images
        compute-56-5.local:/one_images/383/images".</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:03 2012 [TM][I]:
        tm_mv.sh: Executed "ssh compute-56-4.local rm -rf
        /one_images/383/images".</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:03 2012 [TM][I]:
        ExitCode: 0</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:03 2012 [LCM][I]: New VM
        state is BOOT</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:05 2012 [VMM][I]:
        ExitCode: 0</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:05 2012 [VMM][I]:
        Successfully execute network driver operation: pre.</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][I]: Command
        execution fail: /var/tmp/one/vmm/kvm/restore
        /one_images/383/images/checkpoint compute-56-5.local 383
        compute-56-5.local</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][E]:
        restore: Command "virsh --connect </span><a style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">qemu:///system</a><span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)"> [</span><a style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">^</a><span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">] restore
        /one_images/383/images/checkpoint" failed.</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][E]:
        restore: error: Failed to restore domain from
        /one_images/383/images/checkpoint</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][I]: error:
        internal error process exited while connecting to monitor:
        qemu-kvm: -drive
        file=/one_images/383/images/disk.0,if=none,id=drive-virtio-disk0,format=raw:
        could not open disk image /one_images/383/images/disk.0:
        Permission denied</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][E]: Could
        not restore from /one_images/383/images/checkpoint</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][I]:
        ExitCode: 1</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][I]: Failed
        to execute virtualization driver operation: restore.</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [VMM][E]: Error
        restoring VM: Could not restore from
        /one_images/383/images/checkpoint</span><br style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">
      <span style="font-family:Verdana,Arial,Helvetica,sans-serif;line-height:normal;text-align:left;background-color:rgb(232,232,232)">Thu Jun 28 15:56:06 2012 [DiM][I]: New VM
        state is FAILED</span>
      <div><br>
      </div>
      <div><img src="cid:part5.05080803.03040201@sara.nl"></div>
      <div>execute command : chmod +x *</div>
      <div>but ,r<span title="点击获取释义">eceive</span> the <span title="点击获取释义">following</span> <span title="点击获取释义">error</span> <span title="点击获取释义">message:</span></div>
      <div><span title="点击获取释义">
          <div><font color="#008000"><span style="font-size:14px">error: Unable to read from monitor: Connection
                reset by peer</span></font></div>
          <br>
        </span></div>
      <div><span title="点击获取释义">
          <div>
            <div>This is what causes problems ?</div>
          </div>
          <div>Thanks! Hope after</div>
        </span></div>
      <div><br>
      </div>
      <div>Regards!</div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Jhon Masschelein
Senior Systeemprogrammeur
SARA - HPCV

Science Park 140
1098 XG Amsterdam
T <a href="tel:%2B31%20%280%2920%20592%208099" value="+31205928099" target="_blank">+31 (0)20 592 8099</a>
F <a href="tel:%2B31%20%280%2920%20668%203167" value="+31206683167" target="_blank">+31 (0)20 668 3167</a>
M <a href="tel:%2B31%20%280%296%204748%209328" value="+31647489328" target="_blank">+31 (0)6 4748 9328</a>
E <a href="mailto:jhon.masschelein@sara.nl" target="_blank">jhon.masschelein@sara.nl</a>
<a href="http://www.sara.nl" target="_blank">http://www.sara.nl</a> </pre>
    <br>
    <br>
  </font></span></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>