vagrant virtualbox VM inaccessible解决办法

vagrant virtualbox VM inaccessible解决办法

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.


今天一到公司,发现vagrant不能启动了,提示如下:

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.

本来打算重装的,然后百度搜索了一下,抱着试试的态度,居然成功了,解决办法:

仔细看了看vagrant无法访问的提示:

Please open VirtualBox and clear out your inaccessible virtual machines or find a way to fix them.

看到这句话,于是打开virtualbox界面,virtualbox也提示该虚拟机无法启动,是因为

C:\Users\Administrator\VirtualBox VMs\homestead\homestead.vbox 不存在

于是进入该文件的目录,发现并没有后缀为.vbox文件,而是多了一个.vbox-tmp的文件。

简单地将该文件后缀中的-tmp去掉,出现原因应该是电脑关闭的时候不正常关闭虚拟机 所以保存了一个临时状态 需要手动去处理

在执行vagrant up命令,成功了。问题得到解决。

你可能感兴趣的:(vagrant virtualbox VM inaccessible解决办法)