我的Windows 8.1刚刚崩溃了。现在我的dist上有一些损坏的文件。这包括我的流浪机器索引(如果命名正确,则不是舒尔,但我知道它就是这个文件-> C:\Users\USERNAME.vagrant.d/data/machine-index/index).
所以里面有很多二进制或十六进制的东西(同样不是舒尔,因为我通常不处理这些东西,所以如果我错了,请纠正我!)如果我尝试在启动后启动所有东西,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/Username/.vagrant.d/data/machine-index/index发布于 2014-08-10 18:24:54
同样的事情也发生在我身上。因此,我只是从机器索引文件夹中删除了索引文件和.lock文件,以便让Vagrant再次工作。
发布于 2021-11-04 09:41:14
在Windows10中使用Vagrant 2.2.5时,我必须导航到/Users/{yourname}/.vagrant.d/data/machine-index并删除index和index.lock,因此先删除rm index,然后删除rm index.lock。
最后,我导航回Homestead文件夹并运行vagrant up。
发布于 2021-11-15 09:49:42
当我的笔记本电脑意外崩溃时,我第一次尝试运行流浪时也遇到了同样的流浪问题(索引)。
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/{user}/.vagrant.d/data/machine-index/index不幸的是,我的问题并不是通过删除索引和index.lock文件来解决的,因为大多数人都是这样回答的。我使用virtualbox GUI (用作虚拟机提供程序)重新启动了我的虚拟机,并显示了以下消息。
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.我意识到崩溃会在VM的FS上产生错误。因此,在搜索和调查之后,我通过执行下面的命令克服了这个问题。
xfs_repair -v -L /dev/dm-0环境信息: OS windows10、virtual-box 6.1、vagrant 2.2.7和vm-os centos7
https://stackoverflow.com/questions/24911021
复制相似问题