Vagrant guest machine entered an invalid state

bachr picture bachr · Jan 27, 2015 · Viewed 8.7k times · Source

I'm trying to setup bosh-lite (to then install cloudfoundry locally) on a ubuntu server machine (vagrant v1.6.3, Virtualbox 4.3.20r96996). The setup fail when vagrant tries to boot the created machine with the following error:

$ cd bosh-lite
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'cloudfoundry/bosh-lite' 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: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...

The guest machine entered an invalid state while waiting for it to boot.
Valid states are 'starting, running'. The machine is in the 'poweroff' state.  
Please verify everything is configured properly and try again.

If the provider you're using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the VirtualBox GUI is open.

Answer

Aton Bridges picture Aton Bridges · Apr 29, 2015

I got this error after using vagrant up on the cmd after an unplanned hard shutdown of my system running several virtual box instances, including headless Vagrant (Specifically VVV) for my Wordpress development.

Solved it with the vagrant reload command.

Several WordPress dev sites now back up and running.