Now I do not want to do that anymore. So here I have a machine (a snapshot clone). Current State. I take a snapshot, I do some stuff. I kill the machine (some stuff in it is hung anyhow) and I am in a hurry so I do other stuff on windows. I get some popup error when closing VM - somthing about not being able to set a GUI key.
Next start of VirtualBox I am told a disk is missing. Sure enough, it is one of the snapshots of the machine I closed in such a hurry, and it is the lowest section of the snapshot chain (I presume but do know) that it contains the disk changes done after the snap shot was takensnapshot is the older fileset). Well, I want to drop the snapshot so surley it doesnt matter the file is gone. I restore to the snapshot - that works fine,
But then dropping the snapshot fails. Whet is the "drop snapshot FORCE (ie ignore a missing file, that is to be deleted anyhow)
I tried in the GUI and the CLI - the latter gives the full error message
Code: Select all
Progress state: E_FAIL
VBoxManage.exe: error: Snapshot operation failed
VBoxManage.exe: error: Cannot lock hard disk 'C:\VirtualBox\Ora 12 SE DGD\Snapshots\{cfae24c7-c3e3-4517-afa3-03596709f602}.vdi' when deleting a snapshot
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachine, interface IMachine
VBoxManage.exe: error: --------
VBoxManage.exe: error: Could not open the medium 'C:\VirtualBox\Ora 12 SE DGD\Snapshots\{fcf0a267-7197-440f-8283-4b7c8b8fae97}.vdi'.
VBoxManage.exe: error: VD: error VERR_FILE_NOT_FOUND opening image file 'C:\VirtualBox\Ora 12 SE DGD\Snapshots\{fcf0a267-7197-440f-8283-4b7c8b8fae97}.vdi' (VERR_FILE_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleSnapshot(struct HandlerArg *)" at line 533 of file VBoxManageSnapshot.cpp