hello try like this
ssh into the vm then sudo su - with that you became root my command to connect to the vm was vagrant ssh -c 'sudo su -' if you run that you log in and became root. so the commands should work but to on safe side you can run the commands like this sudo mv /etc/sysctl.conf /etc/sysctl.conf.ori grep -v net.ipv6.conf /etc/sysctl.conf.ori | sudo tee /etc/sysctl.conf echo "net.ipv6.conf.all.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.default.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf Alvaro On Tue, Jul 25, 2017 at 3:23 PM, Ian Robert Douglas < [email protected]> wrote: > I take it you mean to run the following on SSH on the VM. > > I tried and can run the first line with sudo. > > The next three lines generate “Permisssion denied” even with sudo. > > > On Jul 25, 2017, at 12:30 PM, Alvaro Miranda Aguilera <[email protected]> > wrote: > > Check if this helps on the VM or not > > > mv /etc/sysctl.conf /etc/sysctl.conf.ori > grep -v net.ipv6.conf /etc/sysctl.conf.ori | tee /etc/sysctl.conf > echo "net.ipv6.conf.all.disable_ipv6=1" | tee -a /etc/sysctl.conf > echo "net.ipv6.conf.default.disable_ipv6=1" | tee -a /etc/sysctl.conf > > > -- > 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/1E81FE7E-70C5-4A00-9495-8AD832E19FCB%40gmail.com > <https://groups.google.com/d/msgid/vagrant-up/1E81FE7E-70C5-4A00-9495-8AD832E19FCB%40gmail.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/CAHqq0ewisS83ECuMOd7PE18wau9MWYNrvngRseYgkrJ-Po7bSw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
