osmates vm stop
Shut a virtual machine down.
osmates vm stop <machine> [--force] [--discard]Returns at once. The guest agent shuts Windows and macOS down. Linux, and a guest whose agent doesn't answer, get a press of the power button.
A guest still running 30 seconds later is turned off, and osmates vm events says so. During a snapshot, the 30 seconds start when it ends. Windows that installs updates gets up to 2 hours while it makes progress, and osmates vm info shows how far it is.
A machine you paused resumes first, and one paused while the Mac sleeps shuts down when the Mac wakes. An ephemeral machine with a workspace takes its diff while it stops.
Start, stop and suspend: https://osmates.com/docs/power
Examples
osmates vm stop dev
osmates vm stop dev --forceArguments
<machine>RequiredThe machine's identifier or name.
--forceTurn the machine off at once, as a power cut.
While Windows installs updates, this can leave it unable to start. An ephemeral machine forced off keeps its workspace until
osmates workspace difftakes the diff.--discardStop a suspended machine by discarding its saved memory.
What it hadn't written to disk is lost. A machine that isn't suspended stops as without it.