<div dir="ltr">I found the exact same solution, couldn't find any cleaner way for my migration problem. </div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/16 Samuel Winchenbach <span dir="ltr"><<a href="mailto:swinchen@gmail.com" target="_blank">swinchen@gmail.com</a>></span><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_default" style="font-family:'courier new',monospace">Hi All,</div><div class="gmail_default" style="font-family:'courier new',monospace">
<br></div><div class="gmail_default" style="font-family:'courier new',monospace">
I have tried everything I can think of to migrate a VM to a node running a newer processor.  I have tried setting "libvirt_cpu_mode=none" on both hosts, I have tried creating a custom CPU, etc.  This is what I found worked:  Stop the instance, change "host", "node" and "launched_on" to the new hostname in the instances table in the nova database, then hard reboot the instance.  Something like this:<br>

</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">~# nova stop <UUID></div><div class="gmail_default" style="font-family:'courier new',monospace">

~# mysql -u root -p</div><div class="gmail_default" style="font-family:'courier new',monospace">mysql> use nova;</div><div class="gmail_default" style="font-family:'courier new',monospace">mysql> update instances set host='<NEWHOST>', node='<NEWHOST>', launched_on='<NEWHOST>' where uuid='<UUID>';</div>

<div class="gmail_default" style="font-family:'courier new',monospace">mysql> exit</div><div class="gmail_default" style="font-family:'courier new',monospace">~# nova reboot --hard <UUID></div><div class="gmail_default" style="font-family:'courier new',monospace">

<br></div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">

So I have two questions about doing it this way:</div><div class="gmail_default" style="font-family:'courier new',monospace">1) Is there anything else in the database I need to change?</div><div class="gmail_default" style="font-family:'courier new',monospace">

2) Are there any files I need to delete from the old host other than the instance XML file in  /etc/libvirt/qemu?</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">

<br></div><div class="gmail_default" style="font-family:'courier new',monospace">Thanks!</div><div class="gmail_default" style="font-family:'courier new',monospace">Sam</div></div>
<br>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José</div>
</div>