Hi,
I had the same issue after having changed the .vdi virtual disk's uuid (using vboxmanage internalcommands sethduuid). Consequently then I had to update the .vbox config file.
The message "Medium Cannot be Closed" was caused by me pasting the same uuid for both hard disks in the configuration. So when loading the hard drives, vbox tried to open the same .vdi file twice, thus causing the error.
My configuration looked like this:
Code: Select all
<AttachedDevice type="HardDisk" hotpluggable="true" port="1" device="0">
<Image uuid="{5ff480fe-f34d-4f10-b438-94b7e7683305}"/>
</AttachedDevice>
<AttachedDevice type="HardDisk" hotpluggable="true" port="0" device="0">
<Image uuid="{5ff480fe-f34d-4f10-b438-94b7e7683305}"/>
</AttachedDevice>
..instead of having the two (different) vdi uuids referenced.
Hope that helps to someone else too, who got carried away with find and replace
Cheers,
Georgi