Home:ALL Converter>How to shutdown or reboot VM forcely in XEN?

How to shutdown or reboot VM forcely in XEN?

Ask Time:2013-04-02T22:35:18         Author:XuZhangning

Json Formatter

It happen to me to find a VM in XEN run out of memory, OS kill its shell tty so there is no way to input command in VM internally. The only way to fix is shutdown or reboot the VM.

"xm shutdown VM-name" and "xm reboot VM-name" have been tried, but not work. XEN is working fine, the rest VMs are all good, and xm command work for them too. only the ill VM out of control.

Is there any XEN command to shutdown or reboot its VM by force? e.g. some command with "--force" flag. "xm reboot" and "xm shutdown" are too grace in my case, I think.

The XEN version I used is xen-3.0-x86_64 (debian).

Author:XuZhangning,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/15766913/how-to-shutdown-or-reboot-vm-forcely-in-xen
Joachim Isaksson :

The xmoption you probably want (although it should really be a last resort) is xm destroy.\n\nxm destroy domain-id\nImmediately terminate the domain domain-id. This doesn't give the domain OS any chance to react, and it the equivalent of ripping the power cord out on a physical machine. In most cases you will want to use the shutdown command instead.\n",
2013-04-02T14:39:47
yy