Details
Description
When restoreVirtualMachine API is called against a running instance CloudStack issues a command to vCenter to shutdown the guest OS, which shuts the OS down gracefully.
Sometimes this graceful shutdown can take several minutes if there are processes that prevent/delay the OS shutting down gracefully.
Presumably, when I call the restoreVirtualMachine API I don't care about the current state of the instance and nor do I care if it shuts down gracefully.
Could the restoreVirtualMachine instead tell vCenter to Power Off the VM, which results in the VM immediately changing to a stopped state?