Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant up error in headless Ubuntu: The guest machine entered an invalid state while waiting for it to boot

I need to install vagrant in headless ubuntu (Ubuntu 12.04.2 LTS-64 Bit). Vagrant ver-v1.3.0 and Virtual box- 4.2.18. After adding the vagrant package box, when I am giving "vagrant up" command, am getting the following error:

Bringing machine 'default' up with 'virtualbox' provider... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [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. 

When I searched this error message, I found the need to modify your BIOS to enable VT-x features. But I don't know, how to do it as it is a headless ubuntu remote server. Also am not sure whether enabling VT-x will fix the problem.

Can someone help me with this?

like image 608
user2846870 Avatar asked Oct 17 '13 06:10

user2846870


1 Answers

According to mitchellh

Can you start the machine manually (from the GUI)? This error message is usually indicative of VirtualBox issues.

my solution

I use vagrant under windows though, I solved this problem by simply kill all the VirtualBox process, and restart VirtualBox GUI, start the VM, then normally power off it.

maybe useful links

These two issues may help.

https://github.com/mitchellh/vagrant/issues/2157

https://github.com/mitchellh/vagrant/issues/2187 may also be helpful.

like image 51
Jeffrey Avatar answered Oct 20 '22 19:10

Jeffrey