【发布时间】:2023-08-28 20:39:01
【问题描述】:
当我尝试在我的 MacBook Pro (OS X 10.12.3) 上启动 Laravel Homestead 时,它卡住了:
homestead-7: SSH address: 127.0.0.1:2222
homestead-7: SSH username: vagrant
homestead-7: 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.
这是我的 vagrant box 显示的内容:
我的 Homestead.yaml:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
我正在运行 Vagrant 1.9.1 和 VirtualBox 5.1.14。
有人知道问题可能是什么吗?
【问题讨论】:
-
你最近升级了你的vagrant box吗?我遇到了同样的问题..我必须完全核对我的 Mac 并重新开始....
-
不,这是我第一次安装 Homestead。
-
你是用osx还是windows?
-
我在 Osx 10.12.3
-
这可能是您的公钥文件的权限问题吗?如果我没记错的话,它与不安全的密钥有关..但我不记得修复了。