因为手贱,下载了个最新版的docker,安装后影响了vagrant,启动时报错。
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.
网上找了一堆资料都解决不了,最后突然看到这个方法:
在Vagrantfile配置文件中添加了两行代码,使用明文用户名密码
注意: 如果你改过vagrant的密码,那么请填写改后的正确密码。
config.ssh.username = "vagrant" config.ssh.password = "vagrant"
保存后,敲命令
vagrant reload
虚拟机真的好了。。。