在做openstack的vm迁移的时候出现ERROR。无法启动虚拟机,也没有迁移成功。
恢复ERROR状态到active的方法如下:
找出该VM的id。
查找数据库的该id状态。
use nova;
select * from instances where uuid=‘xxxxxx‘ \G;
update instances set vm_state=‘active‘ where uuid=‘xxxxx‘;
update instances set power_state=1 where uuid=‘xxxxxx‘;
硬重启该VM即可。
原文:http://ting2junshui.blog.51cto.com/975290/1744041