Question

Install vagrant on ubuntu 12.04

  • Posted April 7, 2014

I just followed this vagrant guide from DO tutorial https://www.digitalocean.com/community/articles/how-to-install-vagrant-on-a-vps-running-ubuntu-12-04

however when I “vagrant up” the VM, it always give me this 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.

Anyone has this problem before

Subscribe
Share

Hi,

I face exactly the same problem in DO droplets, when trying to vagrant up a machine from a Vagrantfile. This file works fine for Virtualbox on MacOS.

Could you find a solution to your problem?

There are discussions about this, like at http://stackoverflow.com/questions/19419563/vagrant-up-error-in-headless-ubuntu-the-guest-machine-entered-an-invalid-state.

But I could not find a solution in the end. In the https://www.digitalocean.com/community/tutorials/how-to-install-virtualbox-on-ubuntu-12-10-x64 article, I even find a remark like:

Unfortunately we do not support nested virtualization so it is not possible :( Try disabling VT-x using Virtualbox, that should fix it I believe.

Damien.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Destroy Vagrant box that running on VirtualBox (you must run “the box” to destroy it!) using command: <br> <br>vagrant destroy <br> <br>* On your “Initial vagrant” folder. <br> <br>To see vagrant box list you add: <br> <br>vagrant box list <br> <br>The output for examp you add/download 2 box: <br>precise32 (virtualbox) <br>precise64 (virtualbox) <br> <br>And you want to remove the box that you don’t want to use: <br> <br>vagrant box remove precise64 virtualbox

Did you add box? Example using precise32. <br> <br>vagrant box add precise32 http://files.vagrantup.com/precise32.box <br> <br>Then make vagrant initial test dir : <br>’ <br>mkdir test_project <br> or you can make another dir, exam: <br>mkdir vagrant <br>’ <br> <br>Open Vagrant initial test dir : <br>’ <br>cd test_project <br> or open another initial vagrant dir : <br>cd vagrant <br> <br>then use command: vagrant init <br> <br>Edit that Vagrantfile using command: nano Vagrantfile <br> <br>Change: config.vm.box = “base” to your box (base that box you want to use) config.vm.box = “precise32” <br> <br>Run: “vagrant up” on your “vagrant init” folder <br>Examp: <br>cd test_project <br>vagrant up <br> <br>or on another vagrant folder <br>cd vagrant <br>vagrant up <br> <br>to stop vagrant, use this command: <br>vagrant halt