I\'m not looking for this answer, because my question is different.
When I type vagrant global-status
I get a list of vms, but some of those directories and
You should use the following command to remove invalid entries from the global index:
vagrant global-status --prune
I had this issue as well. I was able to fix it by modifying the contents of ~/.vagrant.d/data/machine-index/index
. It's in JSON format so I just removed the data related to instances that no longer existed.
I only removed the data that pertained to instances that no longer exist. I wouldn't modify any data that relates to an instance that exists in the file system.
--prune
didn't work for me. I removed ~/.vagrant
, ~/.vagrant.d
and .vagrant
. And manually removed lingering VMs.
I migrated back gems
and boxes
from original ~/.vagrant.d
. Perhaps one can try only removing machine from .vagrant
but I didn't test that.
I used
vagrant global-status --prune
vagrant box remove -f [name]
Also I removed
~/.vagrant, ~/.vagrant.d and .vagrant.
And manually removed lingering VMs if exists.
Use vagrant box remove -f [name]
It works. Guaranteed!