Vagrant报错情况怎样判断原因及处理
Admin 2022-07-26 群英技术资讯 1256 次浏览
这篇文章给大家介绍了“Vagrant报错情况怎样判断原因及处理”的相关知识,讲解详细,步骤过程清晰,有一定的借鉴学习价值,因此分享给大家做个参考,感兴趣的朋友接下来一起跟随小编看看吧。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进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
进程,顾名思义,运行中的程序,进程作为操作系统的基本运作单位,每一个进程都有唯一的进程号ID,而我们管理进程就是通过这个ID。
linux复制文件的命令是:“cp”命令,英文全称“copy file”,可用于将一个或多个源文件或者目录复制到指定的目的文件或目录;它可以将单个源文件复制成一个指定文件名的具体的文件或一个已经存在的目录下。
使用linux的原因:1、开源,通过开源方式,开发者可以轻松查看用于创建Linux内核的代码,也可以对代码进行修改和再创作,以满足使用要求。2、稳定性好,可以连续运行多年而不发生任何重大问题。3、安全, Linux服务器相较Windows而言不会经常受到攻击,并且被发现的任何漏洞都会在第一时间由大批Linux开发人员修复。4、对硬件的需求则很低,也不需要频繁对硬件进行升级更新。
概念先说一说基本的概念,这包括什么是Unicode,什么是UTF-8,什么是UTF-16。Unicode,UTF-8,UTF-16完整的说明请参考Wiki(Unicode,UTF-8
说几点linux服务器系统的优点
成为群英会员,开启智能安全云计算之旅
立即注册关注或联系群英网络
7x24小时售前:400-678-4567
7x24小时售后:0668-2555666
24小时QQ客服
群英微信公众号
CNNIC域名投诉举报处理平台
服务电话:010-58813000
服务邮箱:service@cnnic.cn
投诉与建议:0668-2555555
Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 ICP核准(ICP备案)粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008