2015-01-04 4 views
3

Windows 8.1 x64에서 Laravel Homestead를 설정하려고하는데 아래 오류가 전달 된 것 같습니다. Laravel Homestead가 작동하지 않고 시간 제한을 계속 유지합니다.

$ vagrant up 
Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Importing base box 'laravel/homestead'... 
==> default: Matching MAC address for NAT networking... 
==> default: Checking if box 'laravel/homestead' is up to date... 
==> default: Setting the name of the VM: casensitive_default_1420409560257_10693 
==> default: Clearing any previously set network interfaces... 
==> default: Preparing network interfaces based on configuration... 
    default: Adapter 1: nat 
==> default: Forwarding ports... 
    default: 22 => 2222 (adapter 1) 
==> default: Booting VM... 
==> default: Waiting for machine to boot. This may take a few minutes... 
    default: SSH address: 127.0.0.1:2222 
    default: SSH username: vagrant 
    default: SSH auth method: private key 
    default: Warning: Connection timeout. Retrying... 
    default: Warning: Connection timeout. Retrying... 
    default: Warning: Connection timeout. Retrying... 
    default: Warning: Connection timeout. Retrying... 

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. 

은 농가와 매우 인기있는 오류이고, I는 다음과 같은 유래에 몇 유사한 게시물을 발견했습니다 : onetwo을. 하지만 Vagrantfile에서 boot_mode를 설정해도 문제가 해결되지 않았습니다.

Vagrant.configure("1") do |config| 
    config.vm.boot_mode = :gui 
end 

내가 VT-X를 가지고 있는지 확인하려면 I downloaded 내가 인텔의 도구 : I7 코어; BIOS에서 가상화가 활성화되어 있는지 확인했습니다. Vagrantfile에서

내가 기본값을 사용하고 (그것의 대부분이 주석 것으로 나타납니다)와 I가 config.vm.box를 설정 한

:

"laravel/homestead" 

내 Homestead.yaml로 설정 (이미 id_ras.pub했고 id_rsa_gsg_keypair를)

--- 
ip: "192.168.10.10" 
memory: 2048 
cpus: 1 

authorize: ~/.ssh/id_rsa.pub 

keys: 
    - ~/.ssh/id_rsa 

folders: 
    - map: ~/d/projects 
     to: /home/vagrant/projects 

sites: 
    - map: roopla.app 
     to: /home/vagrant/projects/test_app/public 

databases: 
    - homestead 

variables: 
    - key: APP_ENV 
     value: local 

이 지금까지 내 정상 작곡가에서 예쁜, PHP는, GruntJS, BowerJS는 일 AngularJS와, 나는 처음에, 내가 정말 뭘하는지 모르겠어요 나는 단지 Laravel 4/5를 배우는 중이었습니다. 그리고 Homestead가 유용하고 kewl 해 보였기 때문에 옆으로 뛰어 들었습니다. 그래서 저는 단지 맹목적으로 따라합니다. 지식을 나누어 줄 수있는 정보를 알려 주시면 감사하겠습니다.

+0

http://puphpet.com. 항상 나를 위해 일합니다 – Ortix92

+0

@ Ortix92, puphet.com에서 Laravel 's Homestead를 구현하는 방법에 대한 전체 예제를 제공해주십시오. 귀하의 의견에 연결을 찾을 수 없습니다. 감사합니다 – FedeKrum

+0

@ mtpultz, 나는 OSX에 동일한 문제가 있고 나는 그것을 일하게 할 수 없다. 이 일에 대한 해결 방법이 있습니까? 감사합니다 – FedeKrum

답변

0

먼저 Hyper-V을 사용 설정하지 않았는지 확인하십시오.

둘째, 아마도 ssh 키에 문제가있는 것 같습니다. 가장 간단한 해결책은 SSH 키를 사용하지 않고 사용자 이름과 암호를 변경하고 로그인과 암호를 변경하는 것입니다. 난 당신과 같은 문제를했기 때문에

config.ssh.username = "vagrant" 
    config.ssh.password = "vagrant" 

현재 농가는 아무 문제없이 나를 위해 작동 : 내 vagrantfile에서

봐는 :

require 'json' 
require 'yaml' 

VAGRANTFILE_API_VERSION = "2" 

homesteadYamlPath = File.expand_path("Homestead.yaml") 
afterScriptPath = File.expand_path("after.sh") 
aliasesPath = File.expand_path("aliases") 

require_relative 'scripts/homestead.rb' 

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 
    if File.exists? aliasesPath then 
     config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases" 
    end 

    config.ssh.username = "vagrant" 
    config.ssh.password = "vagrant" 

    Homestead.configure(config, YAML::load(File.read(homesteadYamlPath)))  

    if File.exists? afterScriptPath then 
     config.vm.provision "shell", path: afterScriptPath 
    end 

    config.vm.network "forwarded_port", guest: 11300, host: 11301 
end 

내가 여기에이 개 라인을 추가했습니다.

+1

OSX 이상 나를 위해 작동하지 않았다. – FedeKrum