I can't destroy the box after deleting the content of a (test) project including Vagrantfile. vagrant global-status
reports the box as running:
$ vagrant global-status id name provider state directory ------------------------------------------------------------------------ 3898812 default virtualbox running /home/viz/test
but vagrant destroy
has no effect:
$ vagrant destroy 3898812 ==> default: VM not created. Moving on...
I've tried using VBoxManage
to poweroff and unregister the VM as suggested in http://stackoverflow.com/a/15410190/471164, but vagrant still reports it as running.
I'm using Vagrant 1.6.3.dev.
This is working as intended. As the docs say (or they should, if not, I need to add), global-status
shows a _cached_ view of the world, and global control allows remote control of _Vagrant environments_. If the Vagrantfile doesn't exist anymore, the Vagrant environment is a zombie as its always been and you must clean it up manually.
Thanks for clarification, the docs indeed say that and I should have read more carefully. Running vagrant global-status --prune
removed the zombie box. Sorry for the noise.
Thanks, that was helpful. I realized I had a box on the global-status list that no longer existed, but couldn't figure out how to remove it.
Mh.. Why exactly is global-status showing a cached view?
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Thanks for clarification, the docs indeed say that and I should have read more carefully. Running
vagrant global-status --prune
removed the zombie box. Sorry for the noise.