Skip to content

Commit

Permalink
Fix initial timeout error
Browse files Browse the repository at this point in the history
On VirtualBox 5.0 the initial vagrant up would fail due to a timeout
error. This was because in the VM, the network adapter was not set to
cable, resulting in a exhaustive search for a DHCP server. This search
was longer than the timeout set in the Vagrantfile.

This commit fixes that issue, by setting the connection to cable. This
is also fixed by upgrading to VirtualBox 5.1 or above. For further
information take a look at [this thread on github](chef/bento#682).
  • Loading branch information
stefanheyder authored and Thomas Dietrich committed May 15, 2017
1 parent f29aa93 commit a46ed95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ phpunit.xml
/Homestead.yaml
/Homestead.json
/after.sh
/after.sh.bak
/aliases
/Code/Lara
/Code/Lara
9 changes: 9 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if defined? VagrantPlugins::HostsUpdater
config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] }
end

config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.vm.boot_timeout = 300

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

end

0 comments on commit a46ed95

Please sign in to comment.