解决vagrant up失败出现的Your VM has become "inaccessible."

r囧r小猫 2023-07-13 13:48 85阅读 0赞

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.
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目录后重新vagrant up,参考了https://www.cnblogs.com/wangkongming/p/4070782.html

后果:并不是修复原来的虚拟机,而是重新建一个,慎用!!!

  1. # cd /path/to/directory-of-Vagrantfile
  2. mv .vagrant .vagrant-bak
  3. vagrant up; vagrant ssh

** 方案二:修复它,参考https://stackoverflow.com/questions/30662746/vm-has-become-inaccessible-vagrant-no-longer-working#

  1. $ /d/Program\ Files/Oracle/VirtualBox/VBoxManage.exe list vms
    “ {03756230-0a7d-4b32-a380-66d87ee00776}

2.

  1. $ /d/Program\ Files/Oracle/VirtualBox/VBoxManage.exe unregistervm 03756230-0a7d-4b32-a380-66d87ee00776

3.

  1. $ /d/Program\ Files/Oracle/VirtualBox/VBoxManage.exe registervm ~/VirtualBox\ VMs/carstino_default_1572332828651_91297/carstino_default_1572332828651_91297.vbox

4.

  1. vagrant up

5.

  1. vagrant ssh

发表评论

表情:
评论列表 (有 0 条评论,85人围观)

还没有评论,来说两句吧...

相关阅读