php - vagrant + virtualbox Timed out while waiting for the machine to boot -


sorry i'm new vagrant running vagrant 1.4.3 , virtualbox 4.3.26. , host os ubuntu 14.04.2.

i php developer , i'm trying make development environment ready couple of projects.

and every box try vagrantbox.es same error when running vagrant command. , error :

timed out while waiting machine boot. means vagrant unable communicate guest machine within configured ("config.vm.boot_timeout" value) time period. can mean number of things.  if you're using custom box, make sure networking working , you're able connect machine. common problem networking isn't setup in these boxes. verify authentication configurations setup properly, well.  if box appears booting properly, may want increase timeout ("config.vm.boot_timeout") value. 

i've looked through same questions , tried

  config.vm.provider :virtualbox |vb|     vb.gui = true   end 

after adding these lines login page in box booting , can run commands in gui interface. surprisingly same error. thought myself maybe because guest os couldn't login , add these lines vagrant file

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

but error

there errors in configuration of machine. please fix following errors , try again:  ssh: * following settings shouldn't exist: insert_key, password 

and i'm screwed , don't know else should .

go in virtual box , stop run connection. click on start , wait login user , pass: vagrant. inside of write command:

sudo vim /etc/systemd/system/network-online.targets.wants/networking.service 

and changing following line @ end of file:

timeoutstartsec=5min 

to:

timeoutstartsec=30sec 

i have rebooted system , works fine.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -