目录

Vagrant报错

Your VM has become “inaccessible.”

使用vagrant up时启动虚拟机报错,虚拟机不可访问,具体报错信息如下

Your VM has become “inaccessible.” Unfortunately, this is a critical error with VirtualBox that Vagrant can not cleanly recover from. Please open VirtualBox and clear out your inaccessible virtual machines or find a way to fix them.

虚拟机没正常关机或电脑异常关机导致虚拟机文件丢失,打开virtualbox软件,找到对应虚拟机,可以看到相应错误提示

https://cdn.jsdelivr.net/gh/cooldev-cn/cdn@latest/img/image-20210914103425961.png

进入对应目录可以看到box文件变成了temp和prev文件

https://cdn.jsdelivr.net/gh/cooldev-cn/cdn@latest/img/image-20210914103621145.png

可以将bcmall_vm.vbox-tmp文件修改为bcmall_vm.vbox即可恢复,重新使用vagrant up启动虚拟机 C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20210914103724410.png