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.
There are 4 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.