<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello again!<br><br>Trying to suspend + resume a VM had the same result.<br><br>However, I managed to fix this meanwhile.<br><br>It seemed that my system datastore was shared. After changing it's TM_MAD to ssh from sunstone everything worked fine.<br><br>Hope it will help others too!<br><br><div><hr id="stopSpelling">From: cmartin@opennebula.org<br>Date: Mon, 13 Jan 2014 11:16:19 +0100<br>Subject: Re: [one-users] Opennebula migration error<br>To: vlad.mirel@outlook.com<br>CC: users@lists.opennebula.org<br><br><div dir="ltr">Hi,<div><br></div><div>On Fri, Jan 10, 2014 at 3:43 PM, Vlad Mirel <span dir="ltr"><<a href="mailto:vlad.mirel@outlook.com" target="_blank">vlad.mirel@outlook.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">

<div dir="ltr">Hello!<br><br>I have installed Latest Series 4 Stable of OpenNebula. <br>I have 2 worker nodes and 1 front-end. On both the worker nodes I can deploy virtual machines.<br>The problem occurs when I try to migrate one virtual machine from one of the worker nodes to the other one. I am trying to create a cold migration and I am not using a shared data storage, as I am counting on scp .<br>

<br>So, for example I try to do this operation: Migrate from host A to host B.<br><br>In my opinion, a POSSIBLE CAUSE might be the followin:<br>-the checkpoint is not copied to the host B => no such file or directory</div>

</blockquote></div><div class="ecxgmail_extra"><br></div><div class="ecxgmail_extra">Just to be sure, can you paste the output of onedatastore list? All the DS should have 'ssh' as the TM (transfer manager).</div><div class="ecxgmail_extra">

<br></div><div class="ecxgmail_extra">Do you have the same problem if you try to suspend + resume a VM?</div><div class="ecxgmail_extra"><br></div><div class="ecxgmail_extra">Regards</div><div class="ecxgmail_extra"><div><div dir="ltr">

--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176);" target="_blank"></a></span></div>

</div></div></div>
<br><br><div class="ecxgmail_quote">On Fri, Jan 10, 2014 at 3:43 PM, Vlad Mirel <span dir="ltr"><<a href="mailto:vlad.mirel@outlook.com" target="_blank">vlad.mirel@outlook.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">




<div><div dir="ltr">Hello!<br><br>I have installed Latest Series 4 Stable of OpenNebula. <br>I have 2 worker nodes and 1 front-end. On both the worker nodes I can deploy virtual machines.<br>The problem occurs when I try to migrate one virtual machine from one of the worker nodes to the other one. I am trying to create a cold migration and I am not using a shared data storage, as I am counting on scp .<br>

<br>So, for example I try to do this operation: Migrate from host A to host B.<br><br>Here are the logs containing the error:<br><br>Thu Jan  9 17:43:04 2014 [LCM][I]: New VM state is SAVE_MIGRATE<br>Thu Jan  9 17:43:10 2014 [VMM][I]: ExitCode: 0<br>

Thu Jan  9 17:43:10 2014 [VMM][I]: Successfully execute virtualization driver operation: save.<br>Thu Jan  9 17:43:10 2014 [VMM][I]: ExitCode: 0<br>Thu Jan  9 17:43:10 2014 [VMM][I]: Successfully execute network driver operation: clean.<br>

Thu Jan  9 17:43:11 2014 [LCM][I]: New VM state is PROLOG_MIGRATE<br>Thu Jan  9 17:43:11 2014 [LCM][I]: New VM state is BOOT<br>Thu Jan  9 17:43:12 2014 [VMM][I]: ExitCode: 0<br>Thu Jan  9 17:43:12 2014 [VMM][I]: Successfully execute network driver operation: pre.<br>

Thu
 Jan  9 17:43:12 2014 [VMM][I]: Command execution fail: 
/var/tmp/one/vmm/kvm/restore '/var/lib/one/datastores/0/230/checkpoint' 
'192.168.1.100' 230 192.168.1.100<br><span>Thu Jan 
 9 17:43:12 2014 [VMM][E]: restore: Command "virsh --connect 
qemu:///system restore /var/lib/one/datastores/0/230/checkpoint" failed:
 error: Failed to restore domain from 
/var/lib/one/datastores/0/230/checkpoint</span><br>Thu Jan  9 17:43:12 
2014 [VMM][I]: error: Failed to create file 
'/var/lib/one/datastores/0/230/checkpoint': No such file or directory<br><span>Thu Jan  9 17:43:12 2014 [VMM][E]: Could not restore from /var/lib/one/datastores/0/230/checkpoint</span><br>Thu Jan  9 17:43:12 2014 [VMM][I]: ExitCode: 1<br>

Thu Jan  9 17:43:12 2014 [VMM][I]: Failed to execute virtualization driver operation: restore.<br><span>Thu Jan  9 17:43:12 2014 [VMM][E]: Error restoring VM: Could not restore from /var/lib/one/datastores/0/230/checkpoint</span><br>

Thu Jan  9 17:43:12 2014 [DiM][I]: New VM state is FAILED<br><br>This instruction, if ran on host A, where the checkpoint exists gives the following output:<br><br>Last login: Thu Jan  9 15:51:59 2014 from utcn.local<br>
$ <br>
$ virsh --connect qemu:///system restore /var/lib/one/datastores/0/228/checkpoint<br>Domain restored from /var/lib/one/datastores/0/228/checkpoint<br><br>When ran on host B I get the following output:<br><br>Last login: Thu Jan  9 15:26:11 2014 from utcn.local<br>

$ virsh --connect qemu:///system restore /var/lib/one/datastores/0/228/checkpoint<br>error: Failed to restore domain from /var/lib/one/datastores/0/228/checkpoint<br>error: Failed to create file '/var/lib/one/datastores/0/228/checkpoint': No such file or directory<br>

<br>---------> this errors are identical with those from SUNSTONE<br><br>In my opinion, a POSSIBLE CAUSE might be the followin:<br>-the checkpoint is not copied to the host B => no such file or directory<br><br><br>

I would appreciate any help!<br>                                    </div></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></div></div>                                           </div></body>
</html>