vagrant up启动虚拟机出现Time out的

阅读: 评论:0

vagrant up启动虚拟机出现Time out的

vagrant up启动虚拟机出现Time out的

问题:使用vagrant up指令启动linux,流程走到SSH auth method :private key时走不动,出现以下报错。
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.

找了好久,没有找到解决问题的档案,最后从官方github找了解决方案。我安装的是centos系统,这个系统是从科大镜像下载的,就是这个系统存在的问题,应该是这个系统和vagrant不适配,需要从

附上我Vagrantfile

host_list = [{:name => "host1",:box => "centos7",:ip => "192.168.56.10"},{:name => "host2",:box => "centos7",:ip => "192.168.56.20"},{:name => "host3",:box => "centos7",:ip => "192.168.56.30"}
]figure("2") do |config|host_list.each do |iteam|config.vm.define iteam[:name] do |host|host.vm.box = iteam[:box]host.vmwork "private_network", ip: iteam[:ip]endend
end

本文发布于:2024-01-31 16:14:20,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170668886229786.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:虚拟机   vagrant   Time
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23