Closed lexusean closed 1 year ago
@sprotheroe Any chance we can get this merged? I tested and changes work as expected. Without this, VirtualBox complains that the old .vmdk file is not accessible.
Many thanks for this. I accepted a PR with a very similar but slightly different approach that was more in line with the conventions used elsewhere in the code. Can you confirm this fixes the issues you were seeing?
Steps to reproduce:
resize disk
if Vagrant.has_plugin?("vagrant-disksize") config.disksize.size = '40GB' end
This is caused by not closing out the older disk in vboxmanage (closemedium) before deleting.
Created fork and PR to address issue.