[Libvirt-cim] [PATCH 0 of 2] Make ComputerSystem.EnabledState aware of snapshot

Jim Fehlig jfehlig at novell.com
Thu Jul 31 14:56:42 UTC 2008


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




More information about the Libvirt-cim mailing list