之前写过一篇关于此问题的解决方法

http://virtuallife.blog.51cto.com/152152/713538

其实还有另外一种方法,前面步骤都一样:

1. 先找到此虚拟机对应的Vbd list
xe vbd-list vm-uuid=8017032a-7fee-5f77-b1e1-19e82422f924
2. 上图中我们看到此虚拟机对应的VDI的
UUID=b23b87f3-f6d1-402e-bc19- 1b0f13d7a2e5
3. Detach此VDI
xe vdi-forget uuid=b23b87f3-f6d1-402e-bc19-1b0f13d7a2e5
4. 在重新scan此VDI所在的存储
xe sr-scan uuid= 04868730-71ab-551f-3fe6-8178a97acb23

5. 此时通过命令去查看vdiname-label可能为空,我们通过命令行添加name-label,这样在xencenter中就能够识别到此vdi

xe vdi-list uuid=<UUID of the VDI>.

#xe vdi-param-set uuid=<UUID of the VDI> name-label=<New name label>”. Name-description=<New name description>

6.登陆xencenter,在对应虚拟机的storage标签中,“attach”之前命名的vdi

 

此时应该可以正常启动虚拟机

本文出自 “虚拟人生” 博客,请务必保留此出处http://virtuallife.blog.51cto.com/152152/829567