This question already has an answer here:
I have a Windows 10 virtual machine in VirtualBox on Ubuntu host.
I have accidentally deleted some files on virtual machine, and I need to recover them.
I have used ntfsundelete before but I think I can't use that now because my Windows partition is in .vdi file, not on a device.
So is there a way I recover those files?