Vagrant启动失败解决

2018-03-15 11:28:57

启动Vagrant

vagrant up

错误信息如下:

The machine index which stores all required information about
running Vagrant environments has become corrupt. This is usually
caused by external tampering of the Vagrant data folder.

Vagrant cannot manage any Vagrant environments if the index is
corrupt. Please attempt to manually correct it. If you are unable
to manually correct it, then remove the data file at the path below.
This will leave all existing Vagrant environments "orphaned" and
they'll have to be destroyed manually.

Path: C:/Users/xxx/.vagrant.d/data/machine-index/index

解决方案:

进入目录 C:/Users/xxx/.vagrant.d/data/machine-index/
删除 index 和 index.lock
重新运行vagrant up