Install vagrant on ubuntu 12.04

April 7, 2014 5.5k views
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
1 comment
2 Answers
Did you add box? Example using precise32.

vagrant box add precise32 http://files.vagrantup.com/precise32.box

Then make vagrant initial test dir :
'
mkdir test_project
or you can make another dir, exam:
mkdir vagrant
'

Open Vagrant initial test dir :
'
cd test_project
or open another initial vagrant dir :
cd vagrant

then use command: vagrant init

Edit that Vagrantfile using command: nano Vagrantfile

Change: config.vm.box = "base" to your box (base that box you want to use) config.vm.box = "precise32"

Run: "vagrant up" on your "vagrant init" folder
Examp:
cd test_project
vagrant up

or on another vagrant folder
cd vagrant
vagrant up

to stop vagrant, use this command:
vagrant halt
Destroy Vagrant box that running on VirtualBox (you must run "the box" to destroy it!) using command:

vagrant destroy

* On your "Initial vagrant" folder.

To see vagrant box list you add:

vagrant box list

The output for examp you add/download 2 box:
precise32 (virtualbox)
precise64 (virtualbox)

And you want to remove the box that you don't want to use:

vagrant box remove precise64 virtualbox
Have another answer? Share your knowledge.