“ vagrant up”停止在SSH身份验证方法:私钥

问题描述 投票:4回答:4

我正在尝试在具有宅基地环境的计算机上安装laravel。我遵循了official documentation上的所有步骤。当我执行“无用功”时,控制台显示以下错误。

vagrant up error

停止SSH身份验证方法。以前,我将ssh-keygen配置为“ ssh-keygen -t rsa -b 4096 -C“ [email protected]

我在.rb文件中添加了主机部分:Hosts

甚至.yaml文件。我认为我编辑正确yaml file

在主机文件中,我在文件底部添加了:“ 192.168.10.10 administracio.dev”。

然后,当我让此错误崩溃时,它显示以下错误:

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.

有什么建议吗?

laravel ssh vagrant virtualbox homestead
4个回答
2
投票

(代表OP张贴)

解决方案:我在BIOS环境中激活了硬件加速。


1
投票

今天我遇到了同样的问题,我发现我的VirtualBox设置(网络|高级|已连接电缆)设置正确(即选中了复选框。)我开始比较这个稳定了几个月的虚拟机和一些虚拟机。我的其他VM,发现唯一的区别在于网络适配器,因为适配器2与其余所有适配器都不相同。

适配器1设置为以下:

Attached To:   NAT
Adapter Type:  Intel PRO/1000 MT Desktop ....

将适配器2设置为以下内容...

Attached To:   Host-only Adapter
Adapter Type:  PCnet-FAST III ...

我从未在VirtualBox中更改任何这些网络设置。如上所述,将“适配器2适配器类型”设置为与适配器1相同的设置后,我便无所事事地停止并无所事事并恢复正常。


0
投票

该解决方案也对我有用:在Bios中设置“ Intel Virtualization Technology = Enabled”时,“ SSH auth method:private key”步骤不再冻结,VM正常启动。当在Bios中重新设置“英特尔虚拟化技术=禁用”时,“ SSH身份验证方法:私钥”步骤将再次冻结。

[主板:华硕Z170 Pro游戏(lga1151),BIOS菜单:“高级\ CPU配置”,虚拟盒子:5.1.22,无业游民:1.9.5,Windows 10


0
投票

对我来说,运行Ubuntu 20.04 Focal Fossa(focal64)时的基本要求是

如果该框似乎正常启动,则可能需要增加超时(“ config.vm.boot_timeout”)值。

我更改了Vagrantfile并添加了以下行:

  config.vm.boot_timeout = 600 # wait max 10 minutes

因此,似乎系统上的默认值(300秒)不足以使其开始运行

© www.soinside.com 2019 - 2024. All rights reserved.