Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Steve N. Peralta R.
Steve N. Peralta R.
31,097 Points

Laravel/homestead installation issues.... help me please :(

Im tryin and tryin, search a lot to solve this issue but nothing!.... when I do "vagrant up" this is the log:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualb
ox/driver/version_4_3.rb:174:in `import': undefined method `[]' for nil:NilClass
 (NoMethodError)
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/provi
ders/virtualbox/action/import.rb:15:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/provi
ders/virtualbox/action/customize.rb:40:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/provi
ders/virtualbox/action/check_accessible.rb:18:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:95:in `block in finalize_action'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/builder.rb:116:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/runner.rb:66:in `block in run'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/u
til/busy.rb:19:in `busy'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/runner.rb:66:in `run'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/builtin/call.rb:53:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/builtin/config_validate.rb:25:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:95:in `block in finalize_action'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/builtin/handle_box.rb:56:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:95:in `block in finalize_action'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/builder.rb:116:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/runner.rb:66:in `block in run'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/u
til/busy.rb:19:in `busy'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/runner.rb:66:in `run'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/builtin/call.rb:53:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/provi
ders/virtualbox/action/check_virtualbox.rb:17:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/warden.rb:34:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/builder.rb:116:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/runner.rb:66:in `block in run'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/u
til/busy.rb:19:in `busy'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/a
ction/runner.rb:66:in `run'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/m
achine.rb:196:in `action_raw'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/m
achine.rb:173:in `block in action'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/e
nvironment.rb:434:in `lock'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/m
achine.rb:161:in `call'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/m
achine.rb:161:in `action'
        from c:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/b
atch_action.rb:82:in `block (2 levels) in run'

The .yaml file is this:

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

authorize: C:/Users/ATILEON/.ssh/id_rsa.pub

keys:
    - C:/Users/ATILEON/.ssh/id_rsa

folders:
    - map: C:/Users/ATILEON/Desktop/Code
      to: /home/vagrant/Code

sites:
    - map: homestead.app
      to: /home/vagrant/Code/Laravel/public

variables:
    - key: APP_ENV
      value: local

EDIT:

I've Tried:

  • Uninstall and re-install vagrant and virtualbox
  • delete and update ".vagrant.d" folder and laravel/homestead box
  • Virtualization on my BIOS is enabled.
  • generate at every installation the SSH keys

But.... nothing.... and this is borin me

2 Answers

geoffrey
geoffrey
28,736 Points

I run into problems as well when I had to install Laravel using Homestead and Vagrant, so don't worry, I'm pretty sure you'll find a solution. On my case It was because of Vtx support disabled in the BIOS, but really well hidden in the overclocking settings.

What I could recommand is :

  • First of all, be sure your computer has Vtx Support, if not you might look at this post :

https://teamtreehouse.com/forum/laravel-for-windows-with-no-vtx-cpu-support-solved

  • Be sure to have vagrant installed correctly, test the equivalent of vragant -v but for windows. I think that's something like vagrant.exe -v (not sure, not on windows now can't test here, I'm running on linux).

  • Enable GUI for the virtualbox, because maybe there are dialog boxes being displayed with useful information that could help you to solve your issue.

This is the lines you should add to enable gui:

config.vm.provider "virtualbox" do |v| v.gui = true end

My complete vagrant file with this configuration added looks like that:

VAGRANTFILE_API_VERSION = "2"

path = "#{File.dirname(FILE)}"

require 'yaml' require path + '/scripts/homestead.rb'

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Homestead.configure(config, YAML::load(File.read(path + '/Homestead.yaml'))) config.vm.provider "virtualbox" do |v| v.gui = true end end

Steve N. Peralta R.
Steve N. Peralta R.
31,097 Points

I've added this to the vagrant file and the log says that there's an syntax error, I've tried copy paste too but nothing, same syntax error. Im sick of this :P

geoffrey
geoffrey
28,736 Points

Ok sorry, my fault, It's not correctly indented, here is a link to my VagrantFile, this includes the activation of the GUI. It's a copy/past, so that must works.

http://geoffreyorban.be/Vagrantfile