Categories
DevOps

How to Fix the Vagrant Error: The guest machine entered an invalid state while waiting for it to boot.

The Vagrant Error

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. The primary issue for this error is that the provider you're using is not properly configured. This is very rarely a Vagrant issue.

The Cause

This is usually an error after running:


vagrant up

It indicates a problem with virtual box itself, you can open virrtualbox and try to run the VM but it will not work.
This is usually the case with a 64-bit pc.

The Solution

Firstly, reboot, enter BIOS and change the virtualization setting (vt) to enabled.

Secondly, go into the virtualbox settings for the (64 bit) vm and update the version of linux it is using.

That is:


right click -> settings -> general -> version -> Choose Linux 2.6 / 3.x / 4.x (64-bit)

That should have sorted the issue.

vagrant-virtualbox-ubuntu-post-title