Vagrant报错情况怎样判断原因及处理
Admin 2022-07-26 群英技术资讯 557 次浏览
vagrant报错,提示Warning: Authentication failure. Retrying...,重试多次后失败, 并且运行完毕后没有共享文件夹
提示信息如下:
default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2200 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... 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.
通过上面的错误信息,我们发现并不是config.vm.boot_timeout的问题, 因为我们已经可以连接虚拟机了。 Authentication failure说明认证失败, 猜测可能是ssh默认登陆问题, 简单的处理方法:
在Vagrantfile配置文件中添加了两行代码,使用明文用户名密码
注意: 如果你改过vagrant的密码,那么请填写改后的正确密码。
config.ssh.username = "vagrant" config.ssh.password = "vagrant"
保存
vagrant reload
发现问题解决啦!证明我的猜测是对的
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
在linux中,ls命令显示的蓝色表示“目录”。ls命令会根据文件的具体类型给文件名配色:1、白色表示普通文件;2、亮绿色表示可执行文件;3、亮红色表示压缩文件;4、蓝色表示目录;5、亮蓝色表示链接文件;6、亮黄色表示设备文件。
解决方法:1、root用户登录到mysql命令行,并利用“vi /etc/mysql/mysql.conf.d/mysqld.cnf”命令将“bind-address”字段内容修改为“0.0.0.0”;2、利用“grant all on *.* to 账户@'%' identified by '密码' with grant option”给指定ip地址授权并重启mysql即可。
不少朋友都想学习下使用Linux系统统计文本数据的步骤,今天小编就来给大家说说看关于文本的行数、单词和字符数量统计详细内容,感兴趣的朋友可以一起来了解下。
vim中的保存退出命令是wq。具体方法:首先按i键进入插入模式;然后编辑文件;接着按esc键进入命令行模式;最后输入【:wq】即可保存文件并退出。
在linux中,静态路由是路由项由手动设置的一种路由方式;即使网络状态已经改变或重新被组态,静态路由也是固定不变的,静态路由由网络管理员逐项加入路由表,可用“route add -net 增加到某个网段的路由”语句在linux中增加路由。
成为群英会员,开启智能安全云计算之旅
立即注册Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008