I don't know why but after doing vagrant halt then up, all my file in the VM are lost. There is only an empty data file. And when I SSH into it , putty tell me that the key has changed. I have saved a package.box that maybe can help to restore my VM.
I really don't know what to do.
Thanks very much
In some occasions, vagrant seems to recreate a new VM while there is existing ones. If you need to re-associate an existing VM to your current vagrant project directory, you can run the following steps:
find out what are the VM registered in VirtualBox:
VBoxManage list vms
You will get a list of all the VMs currently registered in virtual box with their associated UUID
id
file:The file will be located in the following folder
<project>/.vagrant/machines/default/virtualbox/id
. Just copy the value you have found from step1From my example, if I wanted to associated VM
java_default_1460033990347_57680
I will copy the valueff197c01-2f63-4e46-b8b6-98757a6f5084
vagrant up
and vagrant will operate the correct VM.