<div dir="ltr"><div><div><div><div><div>Hi,<br></div>Thanks for response and sharing script.<br><br></div>Can i use this script with devstack based cloud platform.?<br><br></div>Actually Live Migration is available between inter-cluster. so that why i was talking about the suspend/pause the VM before migration.<br>
<br><br><br><br></div><div>Regards<br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 8:45 PM, Diego Parrilla Santamaría <span dir="ltr"><<a href="mailto:diego.parrilla.santamaria@gmail.com" target="_blank">diego.parrilla.santamaria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Naveed,<div><br></div><div>I don't think it's a good idea to suspend/pause. If you want to keep the state of the VM then have a look at the live migration capabilities of KVM. Our script is very simple and works for any VM without attached block storage. </div>


<div><br></div><div>Here goes the little script. Keep in mind it's something very simple. </div><div><br></div><div><a href="https://gist.github.com/diegoparrilla/6288e1521bffe741f71a" target="_blank">https://gist.github.com/diegoparrilla/6288e1521bffe741f71a</a></div>


<div><br></div><div>Regards</div><div>Diego <br><br><br></div><img src="https://mailtrack.io/trace/mail/5e5ef539deff23e7d0e2d265722815780da9fa7a.png" height="1" width="1"></div><div class="gmail_extra"><div class="">

<br clear="all"><div><div dir="ltr"> -- <br><span style="border-collapse:separate;font-family:Times"><span style="border-collapse:collapse;font-family:arial,sans-serif"><div style="font-size:13px" align="left"><div><font><span style="font-family:Arial" lang="ES">Diego Parrilla<br>


<a href="http://www.stackops.com/" title="file:///C:/Documents%20and%20Settings/carolina.capsir.per1/Application%20Data/Microsoft/Signatures/www.garrigues.com
www.garrigues.com" style="color:rgb(7,77,143)" target="_blank"><span title="file:///C:/Documents%20and%20Settings/carolina.capsir.per1/Application%20Data/Microsoft/Signatures/www.garrigues.com"></span></a></span></font><font style="font-family:arial,helvetica,sans-serif" face="Arial"><b>CEO</b><font size="1"><br>


</font></font><span style="border-collapse:separate;font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"></span></span><b><font style="font-family:arial,helvetica,sans-serif" face="Arial"><a href="http://www.stackops.com/" target="_blank"><b>www.stackops.com</b></a> | </font></b><font style="font-family:arial,helvetica,sans-serif" face="Arial"><font size="1"> <a href="mailto:diego.parrilla@stackops.com" target="_blank">diego.parrilla@stackops.com</a></font></font><span style="border-collapse:separate;font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font color="#004438" face="Arial"><b><b><span style="font-size:10pt" lang="EN-GB"></span></b></b></font></span></span><font style="font-family:arial,helvetica,sans-serif" face="Arial"><font size="1"> | </font></font><span style="font-family:arial,helvetica,sans-serif;font-size:x-small"><a href="tel:%2B34%2091%20005-2164" value="+34910052164" target="_blank">+34 91 005-2164</a> | </span><a style="font-size:x-small;font-family:arial,helvetica,sans-serif">skype:diegoparrilla</a></div>


</div><div style="font-size:13px"><font color="#004438" face="Arial"><b><p><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="border-collapse:separate;font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font color="#004438" face="Arial"><b><b><span style="font-size:10pt" lang="EN-GB"><img src="http://stackops.s3-external-3.amazonaws.com/STACKOPSLOGO-ICON.png"></span></b></b></font></span></span></span></span></p>


</b></font></div></span></span><div><br></div></div></div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Thu, May 22, 2014 at 8:36 AM, Naveed Ahmad <span dir="ltr"><<a href="mailto:12msccsnahmad@seecs.edu.pk" target="_blank">12msccsnahmad@seecs.edu.pk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div><br></div>Hi<font><span style="font-family:Arial" lang="ES"> Diego ,<br><br></span></font></div><font><span style="font-family:Arial" lang="ES">Thanks for sharing steps for VM migration from customer end to your cloud. Well! i am not going to propose new idea for VM migration. I am using VM migration  for POC of my research idea.<br>



<br></span></font></div><div><font><span style="font-family:Arial" lang="ES">I have few question for you!<br><br><br></span></font></div><div><font><span style="font-family:Arial" lang="ES">1. Can we use suspend/pause feature instead of snapshot for saving VM states. ?<br>



</span></font></div><div><font><span style="font-family:Arial" lang="ES">2. How you are managing VM metadata (such as instance detail from nova,cinder database) <br><br><br></span></font></div><div><font><span style="font-family:Arial" lang="ES"><br>



</span></font></div><div><font><span style="font-family:Arial" lang="ES">Is it possible for you to share script? I need this VM migration feature in Openstack for POC only.<br></span></font></div><div><font><span style="font-family:Arial" lang="ES">Thanks again for your reply.<br>



<br></span></font></div><div><font><span style="font-family:Arial" lang="ES"> <br></span></font></div><div><font><span style="font-family:Arial" lang="ES">Regards<span><font color="#888888"><br></font></span></span></font></div>


<span><font color="#888888"><div><font><span style="font-family:Arial" lang="ES">Naveed<br>
</span></font></div><div><font><span style="font-family:Arial" lang="ES"><br><br></span></font></div><font><span style="font-family:Arial" lang="ES"></span></font><div><div><div><span style="border-collapse:separate;font-family:Times"><span style="border-collapse:collapse;font-family:arial,sans-serif"></span></span></div>



</div></div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 21, 2014 at 10:47 PM, Diego Parrilla Santamaría <span dir="ltr"><<a href="mailto:diego.parrilla.santamaria@gmail.com" target="_blank">diego.parrilla.santamaria@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hi Naveed,</div><div class="gmail_extra"><br></div><div class="gmail_extra">we have customers running VMs in their own Private Cloud that are migrating to our new Public Cloud offering. To be honest I would love to have a better way to do it, but this is how we do. We have developed a tiny script that basically performs the following actions:</div>





<div class="gmail_extra"><br></div><div class="gmail_extra">1) Take a snapshot of the VM from the source Private Cloud</div><div class="gmail_extra">2) Halts the source VM (optional, but good for state consistency)</div>




<div class="gmail_extra">
3) Download the snapshot from source Private Cloud</div><div class="gmail_extra">4) Upload the snapshot to target Public Cloud</div><div class="gmail_extra">5) Start a new VM using the uploaded image in the target public cloud</div>





<div class="gmail_extra">6) Allocate a floating IP and attach it to the VM</div><div class="gmail_extra">7) Change DNS to point to the new floating IP</div><div class="gmail_extra">8) Perform some cleanup processes (delete source VM, deallocate its floating IP, delete snapshot from source...)</div>





<div class="gmail_extra"><br></div><div class="gmail_extra">A bit rudimentary, but it works if your VM does not have attached volumes right away.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Still, I would love to hear some sexy and direct way to do it.</div>





<div class="gmail_extra"><br></div><div class="gmail_extra">Regards</div><div class="gmail_extra">Diego</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div><div dir="ltr"> -- <br><span style="border-collapse:separate;font-family:Times"><span style="border-collapse:collapse;font-family:arial,sans-serif"><div style="font-size:13px" align="left">





<div><font><span style="font-family:Arial" lang="ES">Diego Parrilla<br><a href="https://mailtrack.io/trace/link/660f588f5b8ce60a3da368dfbfeda30eb0548109" title="file:///C:/Documents%20and%20Settings/carolina.capsir.per1/Application%20Data/Microsoft/Signatures/www.garrigues.com
www.garrigues.com" style="color:rgb(7,77,143)" target="_blank"><span title="file:///C:/Documents%20and%20Settings/carolina.capsir.per1/Application%20Data/Microsoft/Signatures/www.garrigues.com"></span></a></span></font><font style="font-family:arial,helvetica,sans-serif" face="Arial"><b>CEO</b><font size="1"><br>





</font></font><span style="border-collapse:separate;font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"></span></span><b><font style="font-family:arial,helvetica,sans-serif" face="Arial"><a href="https://mailtrack.io/trace/link/660f588f5b8ce60a3da368dfbfeda30eb0548109" target="_blank"><b>www.stackops.com</b></a> | </font></b><font style="font-family:arial,helvetica,sans-serif" face="Arial"><font size="1"> <a href="mailto:diego.parrilla@stackops.com" target="_blank">diego.parrilla@stackops.com</a></font></font><span style="border-collapse:separate;font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font color="#004438" face="Arial"><b><b><span style="font-size:10pt" lang="EN-GB"></span></b></b></font></span></span><font style="font-family:arial,helvetica,sans-serif" face="Arial"><font size="1"> | </font></font><span style="font-family:arial,helvetica,sans-serif;font-size:x-small"><a href="tel:%2B34%2091%20005-2164" value="+34910052164" target="_blank">+34 91 005-2164</a> | </span><a style="font-size:x-small;font-family:arial,helvetica,sans-serif">skype:diegoparrilla</a></div>





</div><div style="font-size:13px"><font color="#004438" face="Arial"><b><p><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="border-collapse:separate;font-family:Times;font-size:medium"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><font color="#004438" face="Arial"><b><b><span style="font-size:10pt" lang="EN-GB"><img src="http://stackops.s3-external-3.amazonaws.com/STACKOPSLOGO-ICON.png"></span></b></b></font></span></span></span></span></p>





</b></font></div></span></span><div><br></div></div></div>
<br><br><div class="gmail_quote"><div><div>On Wed, May 21, 2014 at 7:32 PM, Naveed Ahmad <span dir="ltr"><<a href="mailto:12msccsnahmad@seecs.edu.pk" target="_blank">12msccsnahmad@seecs.edu.pk</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

<div dir="ltr"><div><div><div><div><div><br></div>Hi community,<br><br></div>I need some help from you people. Openstack provides Hot (Live) and Cold (Offline) migration between clusters/compute. However i am interested to migrate Virtual Machine from one OpenStack Cloud to another.  is it possible ?  It is inter cloud VM migration not inter cluster or compute.<br>






<br></div>I need help and suggestion regarding VM migration. I tried to manually migrate VM from one OpenStack Cloud to another but no success yet.<br><br></div><div>Please guide me!<br></div><div><br></div>Regards<br></div>






<br></div>
<br></div></div><div>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="https://mailtrack.io/trace/link/86e76f2270da640047a3867c01c2cc077eb9a20c" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></div></blockquote></div><br></div><img src="https://mailtrack.io/trace/mail/f2d420f45b3d99aeb3f272aae6325f92da54c906.png" height="1" width="1"></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>