Restoring an accidentally deleted Vagrant directory
If you accidentally deleted your Vagrant directory, and you have an orphaned VM sitting in VirtualBox, you can re-associate it with a new VagrantFile. Here's how.
When new VM is first created for a given VagrantFile, Vagrant creates a .vagrant file in the same directory. It contains a JSON array, which stores the Unique ID:
{"active":{"default":"ec426377-dbe6-4be7-4751-766956e44958"}}
You need to re-create this file.
1) Determine the Unique ID for the VM.