<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body 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<br>
<br>
<div class="moz-cite-prefix">On 07/04/2012 12:59 PM, David wrote:<br>
</div>
<blockquote cite="mid:tencent_3DECBE72580CC8A62E07F83B@qq.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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 class="89-1-1" title="点击获取释义">Occasionally</span> the
VM appears <span class="89-2-1" title="点击获取释义">a</span> <span
class="89-4-1" title="点击获取释义">migration</span> <span
class="89-3-1" title="点击获取释义">failure</span><span
class="89-5-1" title="点击获取释义">,</span></div>
<div><span class="89-7-1" title="点击获取释义"> following</span> <span
class="89-6-1" 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 moz-do-not-send="true"
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 moz-do-not-send="true"
target="_blank" 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
moz-do-not-send="true" 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 moz-do-not-send="true"
target="_blank" 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 class="59-1-1" title="点击获取释义">eceive</span> the <span
class="59-3-1" title="点击获取释义">following</span> <span
class="59-4-1" title="点击获取释义">error</span> <span
class="59-2-1" title="点击获取释义">message:</span></div>
<div><span class="59-2-1" title="点击获取释义">
<div style="font-family: 微软雅黑; font-size: 16px; line-height:
normal; "><font color="#008000"><span style="font-size:
14px; ">error: Unable to read from monitor: Connection
reset by peer</span></font></div>
<br class="Apple-interchange-newline">
</span></div>
<div><span class="59-2-1" 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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jhon Masschelein
Senior Systeemprogrammeur
SARA - HPCV
Science Park 140
1098 XG Amsterdam
T +31 (0)20 592 8099
F +31 (0)20 668 3167
M +31 (0)6 4748 9328
E <a class="moz-txt-link-abbreviated" href="mailto:jhon.masschelein@sara.nl">jhon.masschelein@sara.nl</a>
<a class="moz-txt-link-freetext" href="http://www.sara.nl">http://www.sara.nl</a> </pre>
<br>
<br>
</body>
</html>