XenServer下虚拟机遇到死机或其它意外情况时通过XenCenter操作重启或关机时会遇到虚拟机挂起的状况,表现为XenCenter中虚拟机名字显示黄色状态,右键菜单只有属性可选,VM不能再进行其它操作,为此总结了一些解决方法。
首先尽量避免此类情况的发生,当虚拟机处于死机状态时尽量使用硬关机、硬重启:
1
|
xe vm-reboot force= true name-label=Centos5.7 |
当进行正常关机、重启时挂起可取消之前的任务操作,再进行硬操作:
1
2
3
4
|
xe task-list #查看当前任务列表和uuid xe task-cancel uuid=<uuid> #取消当前任务 |
如果以上不能解决可尝试以下:
销毁VM对应的domain id,VM会重启。
1
2
3
4
5
6
7
8
|
xe vm-list params=uuid name-label=<vm-name> #或 xe vm-list name-label=<vm-name> --minimal #获取指定VM的uuid list_domains | grep <vm-uuid> #获取VM对应的domain id /opt/xensource/debug/destroy_domain -domid <domain- id > #销毁VM对应的domain id |
使VM崩溃:
1
2
3
4
5
6
7
8
|
xe vm-list params=actions-after-crash name-label=<vm-name> #查看VM崩溃后的操作,默认为重启 xe vm-list params=uuid name-label=<vm-name> #获取指定VM的uuid list_domains | grep <vm-uuid> #获取VM对应的domain id /usr/lib/xen/bin/crash_guest <domain- id > #触发VM崩溃 |
如果VM处于脱机状态,而VM在数据库中被标记为运行,可重置VM电源状态为关机:
1
|
xe vm-reset-powerstate force= true vm=<vm name> |
其它可尝试重启xe工具,不要遇到xapi不能启动就好。。。
1
|
xe-toolstack-restart |
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(3)
I adore your way of writing. Thanks for sharing your interesting and insightful ideas.
I’m grateful for the pragmatic advice you’ve shared based on your personal experiences.
383 The same diuretic regimen maintained after the peripheral edema has cleared, however, or given to nonedematous patients, reduces plasma volume by as much as 24 and raises the risks of hyponatremia, alkalosis, and azotemia where can i buy priligy in usa com 20 E2 AD 90 20Welcher 20Arzt 20Darf 20Viagra 20Verschreiben 20 20Shilajit 20Gold 20Vs 20Viagra shilajit gold vs viagra Until then, Bautista said, it was practical and pragmatic to allow a U