The problem
I accidentally deleted the snapshot file located at <virtualbox-folder>/vms/<vm-name>/Snapshots
. When I try to start the VM (which the .vdi file is intact), the following error appears:
C:\Users\Administrator>"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" -st
artvm vmname
Oracle VM VirtualBox Headless Interface 4.3.24
(C) 2008-2015 Oracle Corporation
All rights reserved.
Error: failed to start machine. Error message: Could not open the medium 'C:\Pro
gram Files\Oracle\VirtualBox\vms\vmname\Snapshots/{5605a6c5-c4c2-45ef-b70e-62ccb
b104991}.vdi'.
VD: error VERR_PATH_NOT_FOUND opening image file 'C:\Program Files\Oracle\Virtua
lBox\vms\vmname\Snapshots/{5605a6c5-c4c2-45ef-b70e-62ccbb104991}.vdi' (VERR_PATH
_NOT_FOUND)
Can I recover from this error?
What I've tried
Deleting the snapshot info in the .vbox
file
The .vbox
file, which is a xml, has metadata about the VM. I've removed the snapshot in this xml, but the error somehow persists.
Clone with no snapshots
When I try to clone via UI right click > Clone... > Full clone > Current state
the same error appears.
Creating a new VM using the same .vdi
This attempt didn't show any erros, but the VM just didn't load. Right after the grub screen, a black screen appeared (the VM seemed frozen).
Additional info
- Host OS: Windows Server 2012 R2 Datacenter
- Guest OS: Ubuntu Server 12.04 LTS (32 bit)
- Virtualbox version 4.3.24 r98716