I come across a production server stuck on shutdown process during resource allocation.

Follow this steps to fix the issue as it worked for me,

  1. “xe vm-list” to get the uuid of the VM that is hung
  2. “list_domains” to list the domain uuid’s so you can determine the domain # of the VM above by matching the uuids from this output with the uuid for your VM from the previous command.
  3. “/opt/xensource/debug/destroy_domain -domid X” where X – domain number from the previous command
  4. “xe vm-reboot uuid=Y –force” where Y – uuid from the first vm-list command for your VM. (name-label may work but I didn’t try)