Hello
I am not sure I understand the solution very well.
when Vagrant create a vm, lets say:
Template -> Guest1
and you add a new VDI disk to Guest1
it will be exactly the same as putting the mysql db in /var/something/something
because if you do vagrant destroy, vagrant will delete the VM and the VM will cascade the deletion to include the disk that is attached.
So I am missing something in your persistent story?
In the other hand, if you use vagrant triggers, before destroy you could detach the disk and in this way won't be deleted with a vagrant destroy.
Now.
whats the real issue with having developers to delete a local development db ?
There are tools that can track schema and data change that can be incorportated into the code and then other tools can be used to deploy schema/data changes into a new DB if needed.
Ie, FLYWAY.
If you could explain a bit more, I am sure someone here could help better.
Thanks
Alvaro.