[vbox-dev] programatically deleting snapshots
klaus.espenlaub at oracle.com
Tue Jun 14 10:38:40 PDT 2011
On 11.06.2011 23:41, wac wrote:
> I am trying to handle snapshots for a virtual machine using the java API and I found that it creates them properly but when I try to delete them virtualbox ends up ignoring the command without even throwing an exception. I am doing this with the webserver interface for 64 bits virtualbox. I tried with both the VM turned on and off. Turned on can't create snapshots. Turned off does crate new ones but doesn't deletes them.
> This is the code snippet I am using:
> IProgress p;
> ISnapshot snap = m.findSnapshot("update snapshot");
> p = console.deleteSnapshot(snap.getId());
> Any help or guide will be appreciated.
The "turned on/off" comment above sounds to me like you're not using the
right console objects.
More information about the vbox-dev