Hello,

couple of options here

1. on the first provision, add those lines to /etc/sysctl.conf and run sysctl -p

grep net.ipv6.conf.all.disable_ipv6 /etc/system.conf || (echo
"net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/system.conf)

repeat for

net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

that will apply the values to the system running, and will be aplied
on next reboot

2. on every vagrant up, you can add `,run: "always"` to the shell
provisioner, and that script will run in every vagrant up or vagrant
reload

3. update the base box, export it and use the box box

4. create a new base box fit to what do you require


Any questions, or anything you need, feel free to ask

Alvaro.

On Fri, Jul 10, 2015 at 7:59 AM, Uilian Ries <[email protected]> wrote:
> I would like to disable IPv6 directly in my Vangrat file.
>
> I'm using a script file that executes when the VM (virtual box) and disable
> IPv6 by sysctl
> My virtual machine is using Ubuntu 14.04.
>
> --
> 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/67c3b978-d2b1-4fbc-83e3-31901808f6bf%40googlegroups.com.
> 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/msgid/vagrant-up/CAHqq0ewa%2BxkkNwpvY-M9TEXrekvJBCodXVqDV5c3nkfQ7OosvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to