Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following diagram illustrates the operational states and state transitions of a virtual machine session.
Virtual Server will generate one or more state changed events through the IVMVirtualServerEvents::OnVMStateChange and IVMVirtualMachineEvents::OnStateChange methods every time a virtual machine session changes states. State changes of a virtual machine session are controlled by invoking methods of the IVMVirtualMachine interface.
The following table lists the state changed events generated by Virtual Server for virtual machine sessions.
IVMVirtualMachine method | State change events generated |
---|---|
StartUp (no previous state saved) | vmVMState_TurningOn vmVMState_Running |
Save | vmVMState_Saving vmVMState_TurningOff vmVMState_DeleteMachine vmVMState_TurnedOff |
Startup (restoring from a saved state) | vmVMState_TurningOn vmVMState_Restoring vmVMState_Running |
Reset | vmVMState_TurningOff vmVMState_DeleteMachine vmVMState_TurningOn vmVMState_Running |
Pause | vmVMState_Paused |
Resume | vmVMState_Running |
TurnOff | vmVMState_TurningOff vmVMState_DeleteMachine vmVMState_TurnedOff |