So you need to learn what that means, but happy to explain. By default, vagrant will run each provisioner only one time, when the guest is created.
So on the second time the message is not an error is telling you "this VM was already provisioned, if you want to provision again, provision manually" So in term of commands, 2 options. vagrant reload vagrant provision OR vagrant reload --provision BUT, lets say you want to run the provisioning script always, well vagrant can do that, just add , run: "always" You can read more here: https://www.vagrantup.com/docs/provisioning/basic_usage.html#run-once-or-always But!!!!! not every script should run always, specially if you are installing software or configuring db, if you run the same script twice, bad things can happen or you will get an error and vagrant will fail the provision If you got questions, please feel free to ask, very welcome! Alvaro. On Thu, Aug 24, 2017 at 5:01 PM, PoodleBytes <[email protected]> wrote: > Wow Alvaro - your knowledge is #Amazing!! > > I didn't see the environmental variables so went ahead and SET them - > thanks. > > I destroyed & up'd the VM and it shows in VBox! > > When you ran the VM the second time did you also get the 'provisioning' > error? Yes, I've been able to SSH despite this 'error' - is this just > telling me there's nothing else in Vagrantfile to process? > > Moving forward do anything to avoid this or just don't worry? > > Pls excuse my ignorance . > > On Thursday, August 24, 2017 at 9:34:25 AM UTC-4, Alvaro Miranda Aguilera > wrote: >> >> Also >> >> *==> default: Machine already provisioned. Run `vagrant provision` or use >> the `--provision`* >> >> *==> default: flag to force provisioning. Provisioners marked to run >> always will still run.* >> >> >> *That is not an error.* >> >> >> *If you get the prompt back the VM is up and running* >> >> >> *try to use the ports fwd or vagrant ssh to login to the VM* >> >> On Thu, Aug 24, 2017 at 3:33 PM, Alvaro Miranda Aguilera < >> [email protected]> wrote: >> >>> Was able to start and reload the vm no issues. >>> >>> Reading your email, I think you are having a different issue. >>> >>> If you are on windows, and you open a shell you may have more than one >>> HOME >>> >>> So lets step back a bit. >>> >>> say you have a windows laptop, your user is john, by default your home >>> will be: >>> >>> c:\Users\john >>> >>> From there, vagrant home will be c:\Users\john\.vagrant.d >>> Virtualbox home will be c:\Users\john\VirtualBox VMs >>> >>> now the funny part. >>> >>> If you are in a domain, and maybe when you login where the domain is >>> there or not, you may end with a different home >>> if you open cmd.exe vs msys vs cygwin you may end with a different home >>> >>> That can explain the boxes dissapearing. >>> >>> check the home in cmd.exe and mssysgit (or cygwin if you use that) >>> >>> you can set VBOX_USER_HOME to the directory you want to use. >>> >>> ie VBOX_USER_HOME=c:\Users\john\.VirtualBox >>> >>> In this directory should be a file called VirtualBox.xml >>> >>> So if you have multiple of thoses, then you got a HOME folder issue >>> between the environment. >>> >>> The "fix" or workaround is just set those variables for your shell >>> >>> export VBOX_USER_HOME=c:\Users\john\.VirtualBox (check proper path name >>> as may be needed /c/Users/. >>> export VAGRANT_HOME=c:\Users\john\.vagrant.d (check proper path name as >>> may be needed /c/Users/. >>> >>> Hope this helps. >>> >>> >>> On Thu, Aug 24, 2017 at 3:09 PM, John Robitaille <[email protected]> >>> wrote: >>> >>>> Hi Alvaro - *thanks* for your prompt response! >>>> >>>> Very strange - the plot thickens..... >>>> >>>> On my Laptop (LT) I did a destroy/up this AM and am currently logged >>>> into the VM BUT Oracle doesn't show the VM!!! I did a halt and re-opened >>>> VBox - nothing there!! >>>> >>>> My desktop (DT) it does show up and as running after the provisioning >>>> error - I guess the script doesn't finish. >>>> >>>> If it's any consolation it is right after the 'share' gets mounted - >>>> which has been a BIG issue (guest extensions) since day one. >>>> >>>> >>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> >>>> Virus-free. >>>> www.avast.com >>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> >>>> <#m_1314169737372750861_CAHqq0ezjrSvGXc+7rPv2w2SUiYFRmg2NULe99t6K93sxDG7Y1g@mail.gmail.com_m_4701520944362994072_m_1978912396832963034_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >>>> >>>> On Thu, Aug 24, 2017 at 8:53 AM, Alvaro Miranda Aguilera < >>>> [email protected]> wrote: >>>> >>>>> Hello >>>>> >>>>> The Vagrantfile and the scripts looks pretty good. >>>>> >>>>> can you open Virtualbox, poweroff/poweron the box and see the console >>>>> for any error? >>>>> >>>>> I am trying to provision your Vagrantfile, just taking long for the >>>>> box on slow connection where I am now. >>>>> >>>>> Alvaro. >>>>> >>>>> On Thu, Aug 24, 2017 at 2:08 PM, PoodleBytes <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi all - new to Vagrant and really like the idea but darn what a >>>>>> nightmare w/WinBlows 10. After several days of Googling I finally got >>>>>> the >>>>>> Vagrantfile (attached) to run through. MUCH of the problem was with >>>>>> Guest >>>>>> extensions not syncing but got that working (vbguest) >>>>>> >>>>>> The problem now is everytime I "vagrant up" I get the following error: >>>>>> >>>>>> ==> default: Checking for guest additions in VM... >>>>>> ==> default: Mounting shared folders... >>>>>> default: /vagrant => C:/Users/John/Documents/fullstack/vagrant >>>>>> ==> default: Machine already provisioned. Run `vagrant provision` or >>>>>> use the `--provision` >>>>>> ==> default: flag to force provisioning. Provisioners marked to run >>>>>> always will still run. >>>>>> >>>>>> >>>>>> and the machine does not start. Running vagrant provision doesn't >>>>>> help. I check VlBox log and they're empty(?). >>>>>> >>>>>> I've tried vagrant destroy the up and runs fine - I then try both >>>>>> vagrant halt / up and vagrant reload right after and still have same >>>>>> provisioning problem (two PCs Win10) >>>>>> >>>>>> I tried commenting out 'provisioning' parts of Vagrantfile but no >>>>>> help - prob cuz I have no idea what I'm doing! >>>>>> >>>>>> Off-topic but on one PC when I shell to GIT Bash and type "vagrant >>>>>> xx" it simply returns me to the prompt - as if it sees vagrant (in path) >>>>>> but doesn't run. Likely nothing to do w/issues because another PC GIT >>>>>> Bash >>>>>> works fine but see same problem. >>>>>> >>>>>> Thanks in advance! >>>>>> - JR - >>>>>> >>>>>> VirtualBox 5.1.26 >>>>>> Vagrant 1.9.8 >>>>>> Windows 10 who knows what iteration.... >>>>>> >>>>>> >>>>>> -- >>>>>> This mailing list is governed under the HashiCorp Community >>>>>> Guidelines - https://www.hashicorp.com/community-guidelines.html. >>>>>> Behavior in violation of those guidelines may result in your removal from >>>>>> this mailing list. >>>>>> >>>>>> GitHub Issues: https://github.com/mitchellh/vagrant/issues >>>>>> IRC: #vagrant on Freenode >>>>>> --- >>>>>> 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]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/vagrant-up/ba03c717-3979- >>>>>> 44a7-85a8-020053a32726%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/vagrant-up/ba03c717-3979-44a7-85a8-020053a32726%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Alvaro >>>>> >>>>> -- >>>>> This mailing list is governed under the HashiCorp Community Guidelines >>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in >>>>> violation of those guidelines may result in your removal from this mailing >>>>> list. >>>>> >>>>> GitHub Issues: https://github.com/mitchellh/vagrant/issues >>>>> IRC: #vagrant on Freenode >>>>> --- >>>>> 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/to >>>>> pic/vagrant-up/4enkJL5Ejhk/unsubscribe. >>>>> To unsubscribe from this group and all its topics, send an email to >>>>> [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewfuc2KBY >>>>> -ta6Ui_XsUNgKqq%3DDBSVnML-CWNR8Kfi%2Byrw%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewfuc2KBY-ta6Ui_XsUNgKqq%3DDBSVnML-CWNR8Kfi%2Byrw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> This mailing list is governed under the HashiCorp Community Guidelines >>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in >>>> violation of those guidelines may result in your removal from this mailing >>>> list. >>>> >>>> GitHub Issues: https://github.com/mitchellh/vagrant/issues >>>> IRC: #vagrant on Freenode >>>> --- >>>> 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]. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/vagrant-up/CA%2BFf%3DG2RWbaenp-UHWQupPrq_2%3Dn9vjXbA- >>>> 2m8gy3NsGVYxBeQ%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/vagrant-up/CA%2BFf%3DG2RWbaenp-UHWQupPrq_2%3Dn9vjXbA-2m8gy3NsGVYxBeQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Alvaro >>> >>> >> >> >> -- >> Alvaro >> >> -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > 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]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/vagrant-up/33b51ca3-9fff-42a8-9cb9-96c013cc62c9%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/33b51ca3-9fff-42a8-9cb9-96c013cc62c9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezrqvQuUqP7anViTooAifwzK%3DUbFmbHW5SUWAY52zdZ4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
