Hello You can't.
Those need to be part of the base box if you want to use the share folder. the best is to fix the box and create a new base box, or just create a fixed box. in vagrant you can export a box with vagrant package, with packer.io you can create a new Vagrant box. alvaro. On Wed, Nov 1, 2017 at 2:13 PM, Vitaly <[email protected]> wrote: > In my guest machine (Ubuntu 14.04) I need to add certain things into Linux > boot sequence in order to mount Virtualbox "vagrat" shared folder. > Obviously, it doesn't work during VM 1st start, and "vagrant up" fails > with "error: Vagrant was unable to mount VirtualBox shared folders." > "vagrant reload" after that works fine. > How I can run certain shell commands in guest *before* Vargant is trying > to mount share folder for mounting it on the 1st boot? > > TIA, > Vitaly > > -- > 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/1aac91f3-15b0-47e2-833e-b26c114a79d0%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/1aac91f3-15b0-47e2-833e-b26c114a79d0%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/CAHqq0ey%2Bn68F%3DB9dV8Vbsy4NBeFo5EQiF3JiDDNLAmHrHAB5iQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
