{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/5144","labels_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5144/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5144/comments","events_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5144/events","html_url":"https://github.com/mitchellh/vagrant/issues/5144","id":53801285,"number":5144,"title":"Vagrant lost all of my VMs","user":{"login":"hopeseekr","id":1125541,"avatar_url":"https://avatars.githubusercontent.com/u/1125541?v=3","gravatar_id":"","url":"https://api.github.com/users/hopeseekr","html_url":"https://github.com/hopeseekr","followers_url":"https://api.github.com/users/hopeseekr/followers","following_url":"https://api.github.com/users/hopeseekr/following{/other_user}","gists_url":"https://api.github.com/users/hopeseekr/gists{/gist_id}","starred_url":"https://api.github.com/users/hopeseekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hopeseekr/subscriptions","organizations_url":"https://api.github.com/users/hopeseekr/orgs","repos_url":"https://api.github.com/users/hopeseekr/repos","events_url":"https://api.github.com/users/hopeseekr/events{/privacy}","received_events_url":"https://api.github.com/users/hopeseekr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T21:08:34Z","updated_at":"2015-01-08T21:45:41Z","closed_at":null,"body":"OK,\r\n\r\nHost: Windows 7 Ultimate x64\r\nGuest: Ubuntu 12.04\r\n\r\nTwenty mintues ago, I had 4 different VMs managed by Vagrant listed in VirtualBox. On one of them, I rebooted it via SSH, ran ```$ vagrant halt``` [in Git-Bash]. Then in VirtualBox, I powered off all of the other VMs and then exited VirtualBox manually [File -> Exit]. \r\n\r\nI then ran $ vagrant up on the VM I just halted. It proceeded to immediately try to setup and provision a new VM, but I cancelled it. \r\n\r\nI opened up VirtualBox and **all** of the VMs were gone, except the new one being provisioned by Vagrant. ```$ VBoxManage list vms``` shows nothing but the new, erroneously provisioned one. ```$ vagrant status``` shows:\r\n\r\n```\r\nCurrent machine states:\r\n\r\ndefault                   poweroff (virtualbox)\r\n\r\nThe VM is powered off. To restart the VM, simply run `vagrant up`\r\n```\r\nIn the other vagrant projects, it says:\r\n```\r\nCurrent machine states:\r\n\r\ndefault                   not created (virtualbox)\r\n```\r\n\r\nI found every single one of the virtual machines in ```C:\\Users\\username\\VirtualBox VMs```, so it's not like they've been deleted.\r\n\r\nI have a highly-configured guest. I can't just run $ vagrant up and create a new one. I **need** to get the old one up."},"comment":{"url":"https://api.github.com/repos/mitchellh/vagrant/issues/comments/69255100","html_url":"https://github.com/mitchellh/vagrant/issues/5144#issuecomment-69255100","issue_url":"https://api.github.com/repos/mitchellh/vagrant/issues/5144","id":69255100,"user":{"login":"hopeseekr","id":1125541,"avatar_url":"https://avatars.githubusercontent.com/u/1125541?v=3","gravatar_id":"","url":"https://api.github.com/users/hopeseekr","html_url":"https://github.com/hopeseekr","followers_url":"https://api.github.com/users/hopeseekr/followers","following_url":"https://api.github.com/users/hopeseekr/following{/other_user}","gists_url":"https://api.github.com/users/hopeseekr/gists{/gist_id}","starred_url":"https://api.github.com/users/hopeseekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hopeseekr/subscriptions","organizations_url":"https://api.github.com/users/hopeseekr/orgs","repos_url":"https://api.github.com/users/hopeseekr/repos","events_url":"https://api.github.com/users/hopeseekr/events{/privacy}","received_events_url":"https://api.github.com/users/hopeseekr/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T21:45:41Z","updated_at":"2015-01-08T21:45:41Z","body":"I figured out my own workaround:\r\n\r\n1. Go to C:\\Users\\<username>\\VirtualBox VMs\r\n2. Open up the .vbox for the good VM. \r\n3. Start the VM inside VirtualBox, and then shut it down.\r\n4. It should now be listed via \"VBoxManage list vms\". Copy the UUID inside the {}s.\r\n5. In the project directory, run this command:\r\necho -n <uuid> > .vagrant/machines/default/virtualbox/id\r\n\r\ne.g., \r\necho -n b5e14d9a-f416-4f2f-a989-aa4698b3613b > .vagrant/machines/default/virtualbox/id\r\n\r\nNow \"vagrant up\" should work as normal.\r\n"}}