[vbox-dev] deleteConfig in VirtualBox 4.3.x

john alexander sanabria ordonez john.sanabria at correounivalle.edu.co
Tue Mar 4 13:44:01 GMT 2014


I wrote a Groovy script to use the Java binding to manage virtual machines
through the VirtualBox web service interface. My script worked well in
VirtualBox 4.2.x but when I updated to version 4.3 I noted that my
unregistervm procedure does not work. First, the IMachine.delete method was
not available and it was changed by IMachine.deleteConfig which basically
works similarly to the delete method. I made the corresponding
modifications however it does not delete the mediums returned by the
IMachine.unregister method.

My unregistervm methods looks similar to this

def mediums = machine.unregister(CleanupMode.DetachAllReturnHardDisksOnly)
def iprogress = machine.deleteConfig(mediums)
while (iprogress.percent < 100) {
  out << "."

and it never ends because the iprogress.percent never reaches 100.

What I am doing wrong? Thanks for your help.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140304/7934ad70/attachment.html>

More information about the vbox-dev mailing list