windows下vagrant报错,老是提示Warning: Authentication failure. Retrying...,并且运行完毕后没有共享文件夹,郁闷...
网上找资料,逛论坛,终于有了解决方法,最起码能运行了,贴出来分享一下。
不废话了,下面是报错代码和解决方案:
本地环境win7,vagrant版本1.8.5,virtualbox版本5.0.4
vagrant box add centos71 vagrant-centos-7.1.box
vagrant init centos71
报错代码:
1 f:\box>vagrant up 2 ==> default: Attempting graceful shutdown of VM... 3 default: Guest communication could not be established! This is 4 se 5 default: SSH is not running, the authentication information was 6 default: or some other networking issue. Vagrant will force hal 7 default: capable. 8 ==> default: Forcing shutdown of VM... 9 ==> default: Clearing any previously set forwarded ports... 10 ==> default: Fixed port collision for 22 => 2222. Now on port 2200. 11 ==> default: Clearing any previously set network interfaces... 12 ==> default: Preparing network interfaces based on configuration... 13 default: Adapter 1: nat 14 ==> default: Forwarding ports... 15 default: 22 (guest) => 2200 (host) (adapter 1) 16 ==> default: Booting VM... 17 ==> default: Waiting for machine to boot. This may take a few minut 18 default: SSH address: 127.0.0.1:2200 19 default: SSH username: vagrant 20 default: SSH auth method: private key 21 default: Warning: Authentication failure. Retrying... 22 default: Warning: Authentication failure. Retrying... 23

本文介绍了一种在Windows环境下解决Vagrant启动时出现警告并导致无法正常启动的问题的方法。通过调整Vagrantfile配置文件中的SSH认证方式,成功解决了启动失败的情况。
最低0.47元/天 解锁文章
9313

被折叠的 条评论
为什么被折叠?



