如何解决Vagrant 无法在配置的“config.vm.boot_timeout”值时间段内与来宾机器通信
PS C:\fabric-devenv-master> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/bionic64' version '20210402.0.0' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 3000 (guest) => 3000 (host) (adapter 1)
default: 4200 (guest) => 4200 (host) (adapter 1)
default: 8080 (guest) => 8080 (host) (adapter 1)
default: 7050 (guest) => 7050 (host) (adapter 1)
default: 7051 (guest) => 7051 (host) (adapter 1)
default: 7052 (guest) => 7052 (host) (adapter 1)
default: 7054 (guest) => 7054 (host) (adapter 1)
default: 7055 (guest) => 7055 (host) (adapter 1)
default: 7056 (guest) => 7056 (host) (adapter 1)
default: 9051 (guest) => 9051 (host) (adapter 1)
default: 9052 (guest) => 9052 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: 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.
PS C:\fabric-devenv-master>
#######################
我们应该如何解决上述问题?有人可以帮我吗?我被它困了好几个小时!
我应该如何在 Vagrantfile 中添加或编辑“config.vm.boot_timeout”行?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。