[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Force shutdown VM


  • To: Alexandre Kouznetsov <alk@xxxxxxxxxx>, xen-api@xxxxxxxxxxxxx
  • From: Sébastien RICCIO <sr@xxxxxxxxxxxxxxx>
  • Date: Tue, 23 Apr 2013 18:20:42 +0200
  • Delivery-date: Tue, 23 Apr 2013 16:21:00 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

Hi,

I have such problem sometimes and usually i get the vm list with "xl list" and then destroy it with "xl destroy", then i restart the xapi service.

Sometimes it works well. Sometimes you then can't start the vm anymore because he says the vdi is attached. But after fighting with xe vdi-detach and such commands you can get it running again.

Cheers,
Sébastien



On 23.04.2013 17:14, Alexandre Kouznetsov wrote:
Hello.

I have a 4 nodes pool under XCP 1.6, it is running around 5 vm's each with Debian 6. One of the VM's (not hosted on the pool master) has stalled, I believe due to some internal reason, and does not respond to console or network. I'm trying to shutdown or reboot this VM, but unsuccessfully.

"xe vm-shutdown" made it show message "INIT: Switching to runlevel: 6" (it seems it was not completely freezed after all), but the VM did not actually shutdown.

After waiting a while, I tried "xe vm-shutdown force=1" with no visible result.
"xe vm-param-list" says "current-operations (SRO): clean_shutdown".

Under Xend I would do a "xm destroy", but it seems like a "destroy" is a different operation for XCP. "xe vm-destroy" complains about a inappropriate VM state:
expected: halted, suspended
actual: running

As the last resource I can reboot or power cycle the physical node, but I with there was a cleaner way.

Is there a equivalent to Xend's "xm destroy"  in XCP 1.6?

Thank you.



_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.