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
On Sat, May 9, 2015 at 1:29 PM, mnz hz <[email protected]> wrote:
> 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:(
>
> On Sat, May 9, 2015 at 6:43 AM, Alvaro Miranda Aguilera <[email protected]>
> wrote:
>>
>> 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.
>>
>>
>>
>> On Sat, May 9, 2015 at 8:15 AM, mnz hz <[email protected]> wrote:
>> >
>> >
>> > vagcode_default_1431105053763_80484 is just the vm, why i should create
>> > a
>> > new one?
>> >
>> >
>> > details log information here
>> > http://pastie.org/10178563#2,10,15
>> >
>> > --
>> > 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 [email protected].
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> 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
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.