I'm using VirtualBox. My host and guest machines are both running Ubuntu. Every time I restart the host computer, one of my virtual machines becomes corrupted (the guest .vdi gets released).
I've found that opening the Virtual Media Manager and dragging the .vdi file for the corrupted machine into it makes everything go back to normal. However, this is a nuisance, and having to do it every time isn't ideal.
I get the same result whether I shut down or save the state of the guest. I always shut down or save the guest before I shut down, suspend or hibernate the host.
How can I make the .vdi stop this behavior and stay connected to the virtual machine?