使用 VirtualBox 的 vagrant 未正常关闭电脑就关机,然后启动异常的解决方案

其实该问题很好解决,都是未执行 vagrant halt 命令,然后直接关闭了电脑导致的。

然后再次执行 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 的界面,出现以下错误提示。

Runtime error opening 'C:\Users\Administrator\VirtualBox VMs\www_default_1549586607915_77235\www_default_1549586607915_77235.vbox' for reading: -102(File not found.).
F:\tinderbox\win-5.0\src\VBox\Main\src-server\MachineImpl.cpp[740] (long __cdecl Machine::i_registeredInit(void)).
返回 代码:
E_FAIL (0x80004005)
组件:
MachineWrap
界面:
IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd}

解决方案如下,进入如图提示 C:\Users\Administrator\VirtualBox VMs\www_default_1549586607915_77235\ 目录下

将 www_default_1549586607915_77235.vbox-tmp 的 -tmp 去掉,保存。

然后执行 vagrant up 启动,一切正常。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值