[vbox-dev] programatically deleting snapshots

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


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.


More information about the vbox-dev mailing list