commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Get out of jail for VMs that won't reboot. Warning: I have no idea why this works or what the implications of the 'destroy_domain' command are but this is how I'm recovering my hung VMs:
Locate the UUID of broken VM by name.
Locate ID of broken VM by UUID.
destroy_domain -domid <ID>
Destroy the domain.
xe vm-reboot uuid=<UUID> --force
Force a reboot of the VM.
Imports a backed up or exported virtual machine into XenServer
Citrix XenServer 5.6, can be piped to grep for more interesting output