why vagrant ssh failed?

12 views
Skip to first unread message

mnz hz

unread,
May 8, 2015, 4:15:58 PM5/8/15
to vagra...@googlegroups.com


vagcode_default_1431105053763_80484 is just the vm, why i should create a new one?


details log information here

Alvaro Miranda Aguilera

unread,
May 8, 2015, 6:44:02 PM5/8/15
to vagra...@googlegroups.com
Hello

Vagrant up create a box if required

then vagrant up will start the VM if stopped

in the logs you started the box manually, so probably was stopped

vagrant up will use the previous box if still exist.

Alvaro.
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

mnz hz

unread,
May 8, 2015, 9:29:32 PM5/8/15
to vagra...@googlegroups.com
seems some file in .vagrant directory is lost, vagrant in that directory cannot find the vm now, how to regenerate .vagrant files for my vm? i just don't want to create new one, since i should configure from scratch, which is really time consuming:(

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/bF4zlBYQ98U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.

Alvaro Miranda Aguilera

unread,
May 8, 2015, 10:21:00 PM5/8/15
to vagra...@googlegroups.com
Hello,


Do not share the project folder between people,.. if you put it in a
shared folder or dropbox, the 2nd person who does vagrant start will
create a new .vagrant folder

you can try this

VBoxManage list vms

Get the name of the box you are using, you are after the id

like:

alvaros-Mac-mini:precise64 alvarom$ VBoxManage list vms

"precise64_default_1431137908961_48289" {cbac9163-bd29-45bf-80bf-b5cace1ccce1}

Then, put that id on the following file:

cat .vagrant/machines/default/virtualbox/id

cbac9163-bd29-45bf-80bf-b5cace1ccce1

and test with a vagrant halt and then vagrant up


other option:


vagrant package -h

Usage: vagrant package [options] [name]


Options:


--base NAME Name of a VM in virtualbox to
package as a base box

--output NAME Name of the file to output

--include FILE... Additional files to package with the box

--vagrantfile FILE Vagrantfile to package with the box

-h, --help Print this help

vagrant package --base <name_as_in_virtualbox> --output my_awesome_box.box

That will create a box from that Virtualbox machine
Reply all
Reply to author
Forward
0 new messages