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.
今天一到公司,發(fā)現(xiàn)vagrant不能啟動(dòng)了,提示如下:
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.
本來(lái)打算重裝的,然后百度搜索了一下,抱著試試的態(tài)度,居然成功了,解決辦法:
仔細(xì)看了看vagrant無(wú)法訪問的提示:
Please open VirtualBox and clear out your inaccessible virtual machines or find a way to fix them.
看到這句話,于是打開virtualbox界面,virtualbox也提示該虛擬機(jī)無(wú)法啟動(dòng),是因?yàn)?/p>
C:\Users\Administrator\VirtualBox VMs\homestead\homestead.vbox 不存在
于是進(jìn)入該文件的目錄,發(fā)現(xiàn)并沒有后綴為.vbox文件,而是多了一個(gè).vbox-tmp的文件。
簡(jiǎn)單地將該文件后綴中的-tmp去掉,出現(xiàn)原因應(yīng)該是電腦關(guān)閉的時(shí)候不正常關(guān)閉虛擬機(jī) 所以保存了一個(gè)臨時(shí)狀態(tài) 需要手動(dòng)去處理
在執(zhí)行vagrant up命令,成功了。問題得到解決。