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
Laravel homestead stuck on VM login
提问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.5
and VirtualBox 4.3.16
.
我有Vagrant 1.6.5
和VirtualBox 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:
要尝试的几件事:
First, make sure your virtual machine is completely shut down, and relaunch Virtual Box.
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.
When
vagrant up
gets stuck atWarning: Connection refused. Retrying...
, try enteringvagrant
as both the username and password in the GUI and see if it will continue the loading process.See related StackOverflow questions Vagrant stuck connection timeout retryingand Vagrant up timeout.
首先,确保您的虚拟机完全关闭,然后重新启动 Virtual Box。
确保启用“PAE/NX”,您可以在 Virtual Box GUI 的处理器选项卡中执行此操作。关于如何做到这一点的描述在这里。
当
vagrant up
卡在 时Warning: Connection refused. Retrying...
,尝试vagrant
在 GUI 中输入用户名和密码,看看它是否会继续加载过程。请参阅相关的 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 ssh
on 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 会话