Cam*_*ilo 9 ssh vagrant laravel homestead laravel-5.1
我正在关注在Homestead上运行Laravel 5.1的官方指南.
但是,当我尝试vagrant up它时,它会挂起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 the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
Run Code Online (Sandbox Code Playgroud)
我的SSH密钥是使用生成的ssh-keygen -t rsa -C "you@homestead".
无法访问机器vagrant ssh,它输出ssh_exchange_identification: read: Connection reset by peer.
尝试vagrant destroy并删除~/.homestead文件夹从头开始,但相同的结果.
使用Ubuntu 16.04 64位,Vagrant 1.8.4和VirtualBox 5.0.18.我的计算机启用了虚拟化,其他框启动没有问题.
Ham*_*rth 24
运行Win 10 Pro v 1607,VirtualBox 5.0.30,Vagrant 1.9.1和Homestead 1.0.1.
我有同样的问题.Vagrant up命令会干净利落地运行,但会挂起SSH username: private key消息.重新安装,检查.yaml文件,重新创建ssh密钥 - 尝试了所有常见的东西但没有成功.
最后在我更改虚拟框中的网络设置时工作.
vagrant haltvagrant up然后一切按预期工作.未被捕获的'电缆连接'和再次流浪汉被绞死.重置"连接电缆"并再次正确运行.
导入基本Laravel/Homestead框的默认设置使"电缆连接"设置保持未选中/关闭状态
如果您不想继续勾选有线连接盒,则永久性修复是:
在Vagrantfile文件Homestead夹中找到该文件(可能是其文件路径是~/Homestead/Vagrantfile),并在Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|块中添加以下修复问题:
config.vm.provider 'virtualbox' do |vb|
vb.customize ['modifyvm', :id, '--cableconnected1', 'on']
end
Run Code Online (Sandbox Code Playgroud)
随着Vagrantfile的这一变化vagrant up适用于新进口的laravel /宅基地箱
如果您使用的是 Windows,则可能需要启用硬件虚拟化 (VT-x)。它通常可以通过您的 BIOS 启用。如果您在 UEFI 系统上使用Hyper-V,您可能还需要禁用 Hyper-V 才能访问 VT-x。
我打开了虚拟化,但在 VirtualBox 中显示没有,我关闭了 Hyper-V 并且一切正常。

| 归档时间: |
|
| 查看次数: |
6532 次 |
| 最近记录: |