Suddenly Virtual Box won't open it because allegedly it can't find it.
I can find it. The VDI is right where it's supposed to be.
The hard drive that contains it is mounted. I unmounted it and then remounted it, same problem.
I noticed that it's mounted into a file in/ mnts instead of /media, with a long string for a name, and maybe it doesn't have the same name it previously did?
Error is
In the Virtual Box manager it says SATA Port 0: Windows7HVM.vdi (Normal, Inaccessible)Failed to open a session for the virtual machine Windows7HVM.
Could not open the medium '/media/dora/Windows7VM/Windows7HVM.vdi'.
VD: error VERR_FILE_NOT_FOUND opening image file '/media/dora/Windows7VM/Windows7HVM.vdi' (VERR_FILE_NOT_FOUND).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MediumWrap
Interface: IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}
Allegedly didn't power off the machine can be a cause. The machine IS powered off.
I tried copying the vbox-prev folder to the vbox folder. It didn't help. I copied the backup copy I created to the vbox folder. Still doesn't work.
I notice that it thinks it's in Home/Dora/VirtualBox VMS and there is no such folder as Dora, it's in Home/VirtualBoxVMS. I created a folder /Dora in /Home and copied the VirtualBoxVMS folder with all of its contents into it, and Virtual Box still can't find the virtual machine.
I've seen various instructions to edit things IN the vbox file, and, allegedly in Windows one can use an ordinary text or Word editor to do that - but gedit won't open it. Just tries to run it in Virtual Box.