<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>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.<br>
<br></div>My unregistervm methods looks similar to this<br></div><br>def mediums = machine.unregister(CleanupMode.DetachAllReturnHardDisksOnly)<br></div>def iprogress = machine.deleteConfig(mediums)<br></div>while (iprogress.percent < 100) {<br>
</div>  out << "."<br><div>}<br><br></div><div>and it never ends because the iprogress.percent never reaches 100.<br><br></div><div>What I am doing wrong? Thanks for your help.<br><br></div><div>John,<br></div>
</div>