I am trying to resolve (or at least understand) a very strange behaviour.
I was running VirtualBox 6.0.22 on Linux Mint 19.3 Tricia (GNU/Linux kernel: 5.3.0-53-generic) and had a couple CentOS VMs for development. I have been using these VMs for several months and have upgraded VirtualBox several times (but only minor releases in the 6.0 release path). I have rebooted my Host (and VMs) several times.
I upgraded to VirtualBox 6.1.10 (same Host) on 2020-06-11, rebooted the Host, started my VMs and some of my files/directories were missing. These files/directories were created in late 2019. Furthermore, if I run "history" I can see that a lot of commands that I have used are missing.
It looks/feels like the VM reverted to a state that was running a couple of months ago. However, an "ls -lt" shows that system files have recent dates. And the latest dnf update (in the Guest) was on "2020-06-03".
I am not using Snapshots and I have not restored the VDIs/VMs from a backup. I am using the latest Extension Pack for VirtualBox. The VDIs are of type "Normal" and "Dynamically Allocated Storage".
I start my VMs from the Host using the following command:
Code: Select all
$ VBoxManage startvm "slurm_controlller" --type headlessCode: Select all
$ sudo shutdown -h now(when it is running)
Code: Select all
$ VBoxManage showvminfo slurm_controlller | grep State
State: running (since 2020-06-18T19:15:48.538000000)
Code: Select all
$ VBoxManage showvminfo slurm_controlller | grep State
State: powered off (since 2020-06-18T19:21:55.763000000)
However, I am not happy with my "explanation".
I consider the files/directories lost and I will try to re-create them (next time I must keep copies in a repository).
I was wondering if any VirtualBox users/experts/gurus have experienced something similar? Also, in order to avoid this from happening again in the future, is my process of Starting/Stopping VMs "correct"? Should I be doing something else to force VirtualBox to persist/merge all data to the VDI file? "VBoxManage controlvm <vm> savestate" doesn't sound like the right thing to do; since, I want to shutdown my VMs.
If by any chance you have a better explanation; please let me know. I would love to understand why and how this happened. I have been using VirtualBox for more than 10 years and this is the first time of a catastrophic failure (hence my first post).
Better yet, if you know of a way to get hold of my missing data; please let me know.
I can provide VirtualBox logs for the affected VMs and/or any other debug information that you need.
Love this forum, it has helped me countless of times.
Kind regards,
Iakovos