Dan Smith wrote:
This makes the state of a guest appear to be suspended if there is a
snapshot
for the domain and the domain is offline. This also makes sure to prevent
the user from starting the domain when such a snapshot exists, to force them
to either apply or delete the snapshot.
+1
Just so I'm clear, CS.RequestStateChange(6==offline) will not suspend
(aka save) the vm. This appears to be the case after a quick look at
__state_change in Virt_ComputerSystem.c. In fact, RSC(6) would result
in CMPI_RC_ERR_NOT_SUPPORTED. I assume this is noted in the
capabilities :-).
In order to do the equivalent of e.g. "xm save" in xen, one would invoke
CreateSnapshot(). Following the operation, state would be suspended.
To "restore", invoke ApplySnapshot(). Is this correct?
Thanks,
Jim