Making sense of Xen commands for stopping and starting user domains

What’s the difference between the “pause”, “suspend”, and “save” commands in the Xen management software? I only had the vaguest notion. And while I don’t consider myself an expert I decided to put together a bit of a cheat sheet to keep it all straight, including what the commands did and what their proper matchings are.

pause / unpause

pause - Pause execution of a domain.
unpause - Unpause a paused domain.

Pause and unpause apparently simply remove the domain from the Xen scheduler. No other changes are made.

save / restore

save - Save a domain state to restore later.
restore - Restore a domain from a saved state.

Save writes the contents of memory and other state information to a file that can be read by the restore command. This can be used to perfectly preserve the domain at a point in time.

suspend / resume (Xend managed domains only)

suspend - Suspend a Xend managed domain
resume - Resume a Xend managed domain

It seems as though suspend and resume work much the same way as save and restore only the state information is saved to a specific place by xend.

create / reboot / shutdown / destroy

create - Create a domain based on .
reboot - Reboot a domain.
shutdown - Shutdown a domain.
destroy - Terminate a domain immediately.

Create reads a configuration file and start a user domain. Reboot sends the domain a reboot command and shutdown sends a shutdown command. Destroy ends the user domain immediately which is the equivalent to suddenly losing power on a physical computer.

new / delete / start (Xend managed domains only)

new - Adds a domain to Xend domain management
delete - Remove a domain from Xend domain management.
start - Start a Xend managed domain

New and start are the equivalent of create but create a domain managed by xend. Delete removed a domain from management that has been added by new. I have no idea what happens if you run delete on a running domain. I also believe that reboot, shutdown, and destroy can be used to stop xend managed domains.

Creative Commons License Except where otherwise noted, content on this site is licensed under a Creative Commons by-nc-sa 3.0 License