Laravel Homestead 卡在 VM 登录上

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25981735/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 16:44:43  来源:igfitidea点击:

Laravel homestead stuck on VM login

laravelvagrant

提问by guidsen

Ill try to use laravel homestead vagrant box. When I do vagrant up it stucks on default: Warning: Connection refused. Retrying...

我会尝试使用 laravel homestead vagrant box。当我无业游民时,它会卡住 default: Warning: Connection refused. Retrying...

My intel virtualization technology is enabled. I've enabled the GUI and it shows:

我的英特尔虚拟化技术已启用。我启用了 GUI,它显示:

I've got Vagrant 1.6.5and VirtualBox 4.3.16.

我有Vagrant 1.6.5VirtualBox 4.3.16

Anybody has encountered this problem as well...?

有没有人也遇到过这个问题...?

回答by Sojtin

Default login and password is just vagrant.

默认登录名和密码只是vagrant.

回答by damiani

A few things to try:

要尝试的几件事:

  1. First, make sure your virtual machine is completely shut down, and relaunch Virtual Box.

  2. Make sure "PAE/NX" is enabled, which you can do in the processor tab of the Virtual Box GUI. A description of how to do that is here.

  3. When vagrant upgets stuck at Warning: Connection refused. Retrying..., try entering vagrantas both the username and password in the GUI and see if it will continue the loading process.

  4. See related StackOverflow questions Vagrant stuck connection timeout retryingand Vagrant up timeout.

  1. 首先,确保您的虚拟机完全关闭,然后重新启动 Virtual Box。

  2. 确保启用“PAE/NX”,您可以在 Virtual Box GUI 的处理器选项卡中执行此操作。关于如何做到这一点的描述在这里。

  3. vagrant up卡在 时Warning: Connection refused. Retrying...,尝试vagrant在 GUI 中输入用户名和密码,看看它是否会继续加载过程。

  4. 请参阅相关的 StackOverflow 问题Vagrant 卡住连接超时重试Vagrant up timeout

回答by Spir

Also just in case check if the network adapter #1 is cable connected. That fixed the issue for me (ie: on VirtualBox > box settings > Network > Adapter 1 > Advanced > tick "Cable Connected). Or better, add this to your vagrant file:

也以防万一检查网络适配器#1 是否已连接电缆。这为我解决了这个问题(即:在 VirtualBox > box settings > Network > Adapter 1 > Advanced > 勾选“Cable Connected”。或者更好的是,将它添加到你的流浪文件中:

config.vm.provider 'virtualbox' do |vb|
  vb.customize ['modifyvm', :id, '--cableconnected1', 'on']
end

回答by magikMaker

You can simply type vagrant sshon the command line / terminal of the host machine (Assuming you've already fired up the machine with vagrant up). To quote the vagrantup.comwebsite:

您可以简单地vagrant ssh在主机的命令行/终端上输入(假设您已经用 启动了机器vagrant up)。引用vagrantup.com网站:

This command will drop you into a full-fledged SSH session

这个命令会让你进入一个成熟的 SSH 会话