Bringing machine 'default' up with 'virtualbox' provider... Your VM has become "inaccessible." Unfortunately, this is a critical error with VirtualBox that Vagrant can not cleanly recover from.


启动虚拟机报错

vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
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.

解决方案

baidu了一下解决办法,有篇blog说直接删除vagrant目录下生成的.vagrant隐藏文件即可,该blog下的七八个comments都表示这个方法有效。不过这个方法并没有解决我的问题。

再仔细看了看vagrant无法访问的提示:Please open VirtualBox and clear out your inaccessible virtual machines or find a way to fix them.看到这句话,于是打开virtualbox界面,virtualbox也提示该虚拟机无法启动,是因为C:\Users\denglj\VirtualBox VMs\vagrant_default_1411538218356_15372\vagrant_default_1411538218356_15372.vbox文件不存在。于是进入该文件的目录,发现并没有后缀为.vbox文件,而是多了一个.vbox-tmp的文件。

抱着试试的想法,简单地将该文件后缀中的-tmp去掉,在执行vagrant up命令,成功了

 

参考:https://blog.csdn.net/u013419759/article/details/79130124


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM