john alexander sanabria ordonez
2014-03-04 13:44:01 UTC
Hi,
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.
John,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140304/7934ad70/attachment.html
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.
John,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140304/7934ad70/attachment.html