I am trying to delete a vagrant host on an Oracle VM and running into following error
C:\chefmeds>vagrant destroy
Are you sure you want to destroy the 'default' VM? [y/N] y
[default] Destroying VM and associated drives...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["unregistervm", "c7c7aa43-5675-4a6b-91f9-6c98e47c3e8f", "--delete"]
Stderr: VBoxManage.exe: error: Cannot unregister the machine 'chefmeds_1388059363' while it is locked
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Machine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "Unregister(fDelete ? (CleanupMode_T)CleanupMode_DetachAllReturnHardDisksOnly : (CleanupMode_T)CleanupMode_DetachAllReturnNone, ComSafeArrayAsOutParam(aMedia))" at line 160 of file VBoxManageMisc.cpp
Has anyone seen this issue. Is there any other way to get the vagrant host removed?