Hi Alvaro,
I'm using the laravel/homestead box.
Operating system: Windows Vista
VirtualBox 5.0.16
Vagrant 1.8.1
Git 2.8.1.windows.1
Here the output and vagrantfile:
OUTPUT
------
$ 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: test
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 (guest) => 8000 (host) (adapter 1)
default: 443 (guest) => 44300 (host) (adapter 1)
default: 3306 (guest) => 33060 (host) (adapter 1)
default: 5432 (guest) => 54320 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:60:in
`connect_nonblock': Invalid argument - connect(2) for
127.0.0.1:2222
(Errno::EINVAL)
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:60:in `rescue in
connect_internal'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:53:in
`connect_internal'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:140:in `connect'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:338:in `block in tcp'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:232:in `each'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:232:in `foreach'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/socket.rb:328:in `tcp'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-3.0.1/lib/net/ssh
/transport/session.rb:70:in
`initialize'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-3.0.1/lib
/net/ssh.rb:222:in
`new'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/net-ssh-3.0.1/lib
/net/ssh.rb:222:in
`start'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins
/communicators/ssh/communicator.rb:389:in
`block (2 levels) in connect'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:88:in `block in
timeout'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `block in
catch'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `catch'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `catch'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:103:in `timeout'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins
/communicators/ssh/communicator.rb:368:in
`block in connect'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant
/util/retryable.rb:17:in
`retryable'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins
/communicators/ssh/communicator.rb:367:in
`connect'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins
/communicators/ssh/communicator.rb:64:in
`block in wait_for_ready'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:88:in `block in
timeout'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `block in
catch'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `catch'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:32:in `catch'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/timeout.rb:103:in `timeout'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/plugins
/communicators/ssh/communicator.rb:42:in
`wait_for_ready'
from C:/Program Files
(x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/action
/builtin/wait_for_communicator.rb:16:in
`block in call'
-------------------------------------------------------------------------
VAGRANTFILE
-----------
require 'json'
require 'yaml'
VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path("vendor/laravel/homestead",
File.dirname(__FILE__))
homesteadYamlPath = "Homestead.yaml"
homesteadJsonPath = "Homestead.json"
afterScriptPath = "after.sh"
aliasesPath = "aliases"
require File.expand_path(confDir + '/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
if File.exists? homesteadYamlPath then
Homestead.configure(config, YAML::load(File.read(homesteadYamlPath)))
elsif File.exists? homesteadJsonPath then
Homestead.configure(config, JSON.parse(File.read(homesteadJsonPath)))
end
if File.exists? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath
end
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "1024"
end
config.vm.boot_timeout = 1000
end
-------------------------------------------------------------------------
Let me know if you need more info.
Thanks in advance,
Jan