Can't Delete VDI
opticyclic opened this issue · 3 comments
opticyclic commented
Is there an option to delete the vdi on vagrant destroy?
If I do vagrant destroy
, delete the vdi on the host, then do vagrant up
I get the following error:
==> default: ** Creating persistent storage **
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["createhd", "--filename", "secondDisk.vdi", "--size", "5000"]
Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Progress state: E_INVALIDARG
VBoxManage.exe: error: Failed to create medium
VBoxManage.exe: error: Cannot register the hard disk 'C:\Projects\GitHub\test\secondDisk.vdi' {8166ff94-8866-44c9-93d8-18023f14d47b} because a hard disk 'C:\Projects\GitHub\test\secondDisk.vdi' with UUID {2e06f6f0-e768-4e07-a5f1-de1412fdb409} already exists
VBoxManage.exe: error: Details: code E_INVALIDARG (0x80070057), component VirtualBoxWrap, interface IVirtualBox
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreateMedium(struct HandlerArg *)" at line 450 of file VBoxManageDisk.cpp
How do I destroy the vdi?
kusnier commented
Please test this with the latest version
AlexeyKosov commented
The same issue, v. 0.0.24
kusnier commented
@AlexeyKosov Which box are you used? Then i can reproduce this on my local machine.