问题
我正在使用bento/centos7.2虚拟机,执行vagrant up
启动虚拟机时,发现有更新提示,于是本能地取消了操作(我建议永远不要这样做!)。然后我执行了vagrant destroy
和rm -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.
环境
- Ubuntu 16.04
- Vagrant 1.81
- Centos 7.2 Box
尝试过的方法
下面是我尝试过的线程:
当我启用GUI时,我发现虚拟机正确启动;只是卡在登录界面(由于SSH中的错误?)。屏幕截图:
bento/centos-7.2
盒子中的一个错误。我已经添加了config.vm.box_version = "2.2.9"
以回滚到旧版本的盒子,它可以正常工作。 - PseudoAj