Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BartHuis's avatar

vagrant reload --provision is good, suspend and up stays in "default: Warning: Remote connection disconnect. Retrying..."

Hi,

I have a homestead / vagrant / laravel setup.

my main question:

Does anyone knows how to suspend and up vagrant as fast as when i do the reload provision, without errors?

Let's explain the errors:

When i run:

vagrant reload --provision

everything is going well:

Bart@DESKTOP-09G9K6I MINGW64 ~/Homestead (master)
$ vagrant reload --provision
==> default: Attempting graceful shutdown of VM...
    default: Guest communication could not be established! This is usually because
    default: SSH is not running, the authentication information was changed,
    default: or some other networking issue. Vagrant will force halt, if
    default: capable.
==> default: Forcing shutdown of VM...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: A newer version of the box 'laravel/homestead' is available! You currently
==> default: have version '0.4.4'. The latest is version '0.5.0'. Run
==> default: `vagrant box update` to update.
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 80 => 8000. Now on port 2200.
==> 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) => 2200 (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: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => C:/Users/Bart/Homestead
    default: /home/vagrant/Code => C:/xampp/htdocs
==> default: Running provisioner: file...
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: Running provisioner: shell...
    default: Running: C:/Users/Bart/AppData/Local/Temp/vagrant-shell20160708-4540-txcquk.sh
==> default: Running provisioner: shell...
    default: Running: script: Creating Site: keukenloods.dev
==> default: Running provisioner: shell...
    default: Running: script: Restarting Nginx
==> default: nginx stop/waiting
==> default: nginx start/running, process 1992
==> default: php7.0-fpm stop/waiting
==> default: php7.0-fpm start/running, process 2011
==> default: Running provisioner: shell...
    default: Running: script: Creating MySQL Database
==> default: Running provisioner: shell...
    default: Running: script: Creating Postgres Database
==> default: Running provisioner: shell...
    default: Running: script: Clear Variables
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
==> default: You are already using composer version 1.1.3 (stable channel).
==> default: Running provisioner: shell...
    default: Running: C:/Users/Bart/AppData/Local/Temp/vagrant-shell20160708-4540-14gfkad.sh

when i then do:

Bart@DESKTOP-09G9K6I MINGW64 ~/Homestead (master)
$ vagrant suspend
==> default: Saving VM state and suspending execution...

and then:

$ vagrant up

i get:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: A newer version of the box 'laravel/homestead' is available! You currently
==> default: have version '0.4.4'. The latest is version '0.5.0'. Run
==> default: `vagrant box update` to update.
==> default: Resuming suspended VM...
==> 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: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. 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.

After 3/4 warnings, my local website is running and i can visit it by the browser, but can't enter it by ssh:

$ vagrant ssh
ssh_exchange_identification: read: Software caused connection abort

The only way to run it properly is to run vagrant reload --provision everytime again when i want to start up

even after updating from 0.4.4 to 0.5.0 is going wrong:

Bart@DESKTOP-09G9K6I MINGW64 ~/Homestead (master)
$ vagrant box update
==> default: Checking for updates to 'laravel/homestead'
    default: Latest installed version: 0.4.4
    default: Version constraints: >= 0.4.0
    default: Provider: virtualbox
==> default: Updating 'laravel/homestead' with provider 'virtualbox' from version
==> default: '0.4.4' to '0.5.0'...
==> default: Loading metadata for box 'https://atlas.hashicorp.com/laravel/homestead'
==> default: Adding box 'laravel/homestead' (v0.5.0) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
    default:
==> default: Successfully added box 'laravel/homestead' (v0.5.0) for 'virtualbox'!

Bart@DESKTOP-09G9K6I MINGW64 ~/Homestead (master)
$ vagrant reload --provision
==> default: Attempting graceful shutdown of VM...
    default: Guest communication could not be established! This is usually because
    default: SSH is not running, the authentication information was changed,
    default: or some other networking issue. Vagrant will force halt, if
    default: capable.
==> default: Forcing shutdown of VM...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> 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)
- tekst uit het oorspronkelijke bericht weergeven -
    default: Running: C:/Users/Bart/AppData/Local/Temp/vagrant-shell20160708-3120-lkdxai.sh
==> default: Running provisioner: shell...
    default: Running: script: Creating Site: keukenloods.dev
==> default: Running provisioner: shell...
    default: Running: script: Restarting Nginx
==> default: nginx stop/waiting
==> default: nginx start/running, process 1992
==> default: php7.0-fpm stop/waiting
==> default: php7.0-fpm start/running, process 2011
==> default: Running provisioner: shell...
    default: Running: script: Creating MySQL Database
==> default: Running provisioner: shell...
    default: Running: script: Creating Postgres Database
==> default: Running provisioner: shell...
    default: Running: script: Clear Variables
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
==> default: You are already using composer version 1.1.3 (stable channel).
==> default: Running provisioner: shell...
    default: Running: C:/Users/Bart/AppData/Local/Temp/vagrant-shell20160708-3120-1fydorq.sh

Bart@DESKTOP-09G9K6I MINGW64 ~/Homestead (master)
$ vagrant ssh
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.19.0-25-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Fri Jul  8 09:01:19 2016 from 10.0.2.2
vagrant@homestead:~$ exit
logout
Connection to 127.0.0.1 closed.

Bart@DESKTOP-09G9K6I MINGW64 ~/Homestead (master)
$ vagrant suspend
==> default: Saving VM state and suspending execution...

Bart@DESKTOP-09G9K6I MINGW64 ~/Homestead (master)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
- tekst uit het oorspronkelijke bericht verbergen -
==> default: Resuming suspended VM...
==> 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: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. 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.

So, does anyone knows how to suspend and up vagrant as fast as when i do the reload provision, without these errors?

Bart

0 likes
2 replies
BartHuis's avatar

on laravel.io there were a few questions, but no solution yet:

Q: hmm. open virtualbox gui and see where it has halted

A: he's just starting really quick. virtualbox is saying that also. as i mentioned, my localhost website is accesible as soon as the first few errors appears, after that the errors keep going, but my website is running well. but i cant ssh into it and getting the errors as above.

Q: strange. try updating your vagrant scripts. take a git pull from homestead repo, and also consider updating the box

A: homestead: v3.0.2 = up to date

$ vagrant version

Installed Version: 1.8.4

Latest Version: 1.8.4

the last code of my post was allready the

vagrant box update

command

i think everything is up to date?

Please or to participate in this conversation.