I have a three XenServer 6.1 servers in a pool. HA is normally used, but is currently turned off for this operation.
Recently, I had to force a shutdown of a VM by destroying the domain via these instructions: http://support.citrix.com/article/CTX131421
With the exception that my command line didn't seem to have the destroy_domain command. A different article pointed me to the full path at /opt/xensource/debug/xenops destroy_domain -domid x (http://gimpland.org/now/2013/01/citrix-xenserver-how-to-force-shutdown-virtual-machines/)
It worked, and I was able to start up the VM without issue. I have found though that attempting to migrate the VM to any other server in the pool though. Attempting to migrate the VM to another host in the pool via XenCenter produces the following error after about 30-40 seconds:
Migrating VM 'Cleanup 7' from XenBlade5 to XenBlade 6: Error: Internal error: file "xapi_xenops.ml", line 1740, characters 3-9: Assertion Failed.
The VM is now paused. Attempting to resume it (still on the original server, since it couldn't move) produces the following error in the server event log: There were no servers available to complete the specified operation.
In addition, XenCenter pops up a dialog saying "Error starting VM", with an error for each server in the pool saying "Object has been deleted.VDI:OpaqueRef:NULL. The server will not resume.
If I force shut-down the VM, I may then re-start it. Unfortunately, the VM can still not be migrated and produces the same errors above.
I discovered this issue on one of our production VM servers, but these tests are being performed on a throw-away Windows 7 Enterprise VM. The production VM is CentOS, so I don't think I'm experiencing anything operating system specific. It looks like an issue with the destroy_domain command I issued above.
Other VMs that were not shutdown with destroy_domain may move freely to and from this server.
I'm not a XenServer veteran, so any help, correction, or request for clarification is greatly appreciated. A huge thank you in advance for any help!