ubuntu Vagrant删除/project/.vagrant后“等待机器 Boot 时超时”

bxpogfeg  于 2023-01-16  发布在  其他
关注(0)|答案(1)|浏览(167)

问题

我正在使用bento/centos7.2 box。我做了一个vagrant up,当它启动时,我注意到box有一个更新,我本能地取消了操作(我建议永远不要这样做!)。所以我继续做了vagrant destroyrm -rf .vagrant,只是为了确定一下(同样,我建议不要做,永远不要!)。我通过vagrant box remove bento/centos7.2删除了我的盒子,并做了vagrant up,最后得到了这个:

Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

环境

  1. Ubuntu 16.04
    1.流浪汉1.81
  2. Centos 7.2 Package 盒

我尝试过的事情

以下是我尝试过的线程:

  1. vagrant + virtualbox Timed out while waiting for the machine to boot
  2. Timed out while waiting for the machine to boot when vagrant up
  3. Vagrant "Timed out while waiting for the machine to boot."
    当我启用GUI时,我意识到机器正在正确启动;它只是停留在登录屏幕上(ssh框中存在bug?)。屏幕截图:

任何帮助都将不胜感激。

ulydmbyx

ulydmbyx1#

导致此问题的可能性有多种:
1.尝试运行:
游离再装药
这将重新安装机箱上的访客添加项。
1.尝试打开Virtualbox(GUI界面),然后打开Virtualbox(控制台)。
i)如果未干净地关闭,则等待fsck(文件系统检查
ii)通过使用默认用户名/密码(通常为vagrant/vagrant)在Virtualbox GUI上登录到盒子,并弄清楚ssh服务器是否在盒子上运行。
1.跑
迁移ssh配置
并查看它正在尝试使用哪个端口以及使用哪个SSH密钥。请手动使用它们,例如:

ssh -i <identity_key_location> vagrant@localhost -p 2222

相关问题