Board logo

標題: Restart a hanged virtual machine [打印本頁]

作者: chun    時間: 2016-3-25 20:35     標題: Restart a hanged virtual machine

http://www.xenlens.com/restart-a-hanged-virtual-machine/

Restart a hanged virtual machine

Sometimes it may happen that your vm has hanged and XenCenter controls(Reboot and Force Reboot) do not work.

You may see an error when you try to force a reboot (The operation could not be performed because a domain still exists for the specified VM.).

This is a process to reboot the hanged vm from the XenServer host console.

To get the uuid of the VM that is hung:

xe vm-list

Get the vm domain id by uuid:

list_domains

Then destroy the domain of the vm:

/opt/xensource/debug/destroy_domain -domid <domid>

Now you can force a reboot on your vm:

xe vm-reboot uuid=<uuid> --force

If it has no effect you can also try:

xe vm-reset-powerstate uuid=<uuid> --force

Note that it may take up to 3 minutes to complete.







歡迎光臨 百利工頭 (http://bb.pc104.tw/) Powered by Discuz! 6.0.0