[vbox-dev] programatically deleting snapshots

wac waldoalvarez00 at yahoo.com
Sat Jun 11 21:41:50 GMT 2011


Hi:

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());
p.waitForCompletion(-1);
p.releaseRemote();
snap.releaseRemote();

Any help or guide will be appreciated.

Regards
Waldo




More information about the vbox-dev mailing list