“vagrant up” it stops at SSH auth method: private key

微笑、不失礼 提交于 2020-01-04 01:49:30

问题


I'm trying to install laravel on my computer with homestead environment. I followed all steps on the official documentation. And when I execute my "vagrant up" my console displays the following error.

.

Stops at SSH auth method. Previously I configured the ssh-keygen with "ssh-keygen -t rsa -b 4096 -C "me@email.com"

I added the host piece at .rb file:

Even .yaml file. I think I edited properly

At hosts file I added: "192.168.10.10 administracio.dev" at the bottom of the file.

And then when I let this error crash it shows the following error:

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.

Any suggestions?


回答1:


(Posted on behalf of the OP).

Solution: I activated the Hardware acceleration in the BIOS environment.




回答2:


I had the same issue today and I found that my VirtualBox Settings (Network | Advanced | Cable Connected) were set correctly (that is the checkbox was checked.) I started comparing this VM, which has been stable for months, with some of my other VMs and found the only difference was in the Network Adapters, as Adapter 2 was different than all the rest.

Adapter 1 was set to the following:

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

while Adapter 2 was set to the following...

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

I have not changed any of these network settings in VirtualBox, ever. Once I set Adapter 2 Adapter Type to the same settings as Adapter 1 as stated above, I then vagrant halt and vagrant up and back to normal.




回答3:


Solution works also for me : When setting in the Bios "Intel Virtualization Technology = Enabled", the "SSH auth method: private key " step is not frozen any more and VM starts normally. When setting back in the Bios "Intel Virtualization Technology = Disabled", the "SSH auth method: private key" step is frozen again.

Motherboard : Asus Z170 Pro Gaming (lga1151), Bios menu : Advanced\Cpu Configuration, Virtual Box : 5.1.22, Vagrant : 1.9.5, Windows 10



来源:https://stackoverflow.com/questions/43379459/vagrant-up-it-stops-at-ssh-auth-method-private-key

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!