How can I configure the current snapshot using VIX?

Hi all

I'm looking for a way to programmatically set the current snapshot of a virtual machine. I need it to be able to create snapshots programmatically to arbitrary locations in the snapshot tree. All I could find was the GetCurrentSnapshot function, but miss me something like SetCurrentSnapshot. Is it possible to somehow?

Thanks in advance!

RevertToSnapshot is the only way to put the current snapshot.

Please think in terms of disks of the difference. The virtual machine starts with no snapshots and a set of disks. When you create a snapshot, freeze you the existing disks and create a set of disks of difference to save the changes to the file system. If you create a new snapshot, this difference drives are frozen, a new set is created for the virtual machine. The current snapshot is what is asociated with the last series of discs "frozen."

You "set up the current snapshot" to throw the latest together drives of the difference, and affecting the VM disks to point to the disks associated with the snapshot provided. This is done by calling RevertToSnapshot.

Tags: VMware

Similar Questions

Maybe you are looking for