Orphaned Virtual Machine

61 views
Skip to first unread message

Edward Cheadle

unread,
Jul 19, 2015, 9:54:51 PM7/19/15
to vagra...@googlegroups.com
I downloaded Ansible Tower and using Vagrant I created a Centos 7.1 VM running tower on VirtualBox 5.0.  Virtualbox is a bit unstable and the system crashed while the ansible tower vm was powered on.

After the crash I tried to restart the vm.  It seemed to lose the information on the current running version of Tower. I did a vagrant up from the original folder and it created a new VM.

I can still run the first Tower VM if I start if from Virtualbox.  I was wondering since I now have two instances of Tower, one with the license, the other without if there was a way to attach a vagrant file to the old one and use it.  I will be looking into it, I think I should be able to recover, but I am not sure were all of the information is kept, so if someone has already solved this issue, and can post the steps, it would save me some time.

Alvaro Miranda Aguilera

unread,
Jul 19, 2015, 10:26:33 PM7/19/15
to vagra...@googlegroups.com
hello

you can tell vagrant to use the other box, delete the box you don't want to keep

then run:
VBoxManage list vms

and get the id of the box you want to keep

go to the folder where you have the Vagrantfile

there is a folder called .vargant

you should be able to update this id on a file similar to :

.vagrant/machines/default/virtualbox/id

after that, test with vagrant status and vagrant reload

Hope this helps

Alvaro
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/27160755-d6d0-4f32-b2b9-2eeca5798210%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Edward Cheadle

unread,
Jul 20, 2015, 12:15:26 AM7/20/15
to vagra...@googlegroups.com
It worked.   I had an idea about how to fix it, but your post saved me a lot of time. 
Reply all
Reply to author
Forward
0 new messages