Ensure config.ssh.insert_key = false is on the Vagrant file
Do vagrant destroy and vagrant up
Run this before shutdown the VM / before packing
sed -i -e 's/Defaults\\s*requiretty$/#Defaults\trequiretty/' /etc/sudoers
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ori
sed -i -e '/#UseDNS yes/a UseDNS no' /etc/ssh/sshd_config
for nic in /etc/sysconfig/network-scripts/ifcfg-*; do
sed -i /HWADDR/d $nic 2>&1
sed -i /UUID/d $nic 2>&1
done
[ -f /etc/udev/rules.d/70-persistent-net.rules ] && rm
/etc/udev/rules.d/70-persistent-net.rules
Let’s see how it goes.
What Box are you using in Vagrant?
> On 16/10/2015, at 1:26 PM, Corey Mudd <[email protected]> wrote:
>
> Thank you for the response but unfortunately still same problem. I already
> had config.ssh.insert_key=false in my VagrantFile for original and the
> upgraded one. And I removed /etc/udev/rules.d/70-persistent-net.rules before
> I created a new package but still same Authentication failure. Anything else
> I can try?
>
> Thanks,
> Corey
>
> On Thursday, October 15, 2015 at 2:29:54 AM UTC-6, Alvaro Miranda Aguilera
> wrote:
> Hello,
>
> 2 things to check.
>
> 1. You need to use config.ssh.insert_key = false on the base you are
> doing. Otherwise Vagrant will insert a new ssh key. With this you keep
> the insecure one.
> 2. remove if present /etc/udev/rules.d/70-persistent-net.rules
>
> With that should work.
>
> Alvaro
>
> On Thu, Oct 15, 2015 at 1:36 PM, Corey Mudd <[email protected]
> <javascript:>> wrote:
> > Hi,
> >
> > I am stuck with trying to upgrade VirtualBox guest additions 4.3 to
> > VirtualBox guest additions 5.0. I created a package with VirtualBox 4.3
> > using Ubuntu 12 with GNOME GUI and can create using Vagrant 1.7.4 just
> > fine.
> > When I upgrade VirtualBox 4.3 to VirtualBox 5.0 and use the same package on
> > Vagrant 1.7.4, again, it comes up fine with a warning to install VirtualBox
> > guest additions 5.0. Now, when I install VirtualBox guest additions 5.0,
> > restart vm, then package it up again (vagrant package --output newVM.box),
> > and then:
> >
> > vagrant destroy
> > vagrant box remove goodbox
> > vagrant box add goodbox newVM.box
> > vagrant up
> >
> > I get the following error:
> >
> > Warning: Authentication failure. Retrying...
> >
> >
> > And this will just keep repeating until it times out, never running the
> > provisions. I am at a lost as to why a previous package working with
> > VirtualBox guest additions 4.3 works against VirtualBox 5.0 but won't come
> > up when VirtualBox guest additions match. Please let me know if you would
> > like more information. I have tried this on both Windows 7 and OSX El
> > Capitan and they produce the same exact errors.
> >
> >
> > Thanks,
> >
> > Corey Mudd
> >
> > --
> > This mailing list is governed under the HashiCorp Community Guidelines -
> > https://www.hashicorp.com/community-guidelines.html
> > <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
> > <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] <javascript:>.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/vagrant-up/fe7f766f-af4b-4e21-b154-0fb0a9a48254%40googlegroups.com
> >
> > <https://groups.google.com/d/msgid/vagrant-up/fe7f766f-af4b-4e21-b154-0fb0a9a48254%40googlegroups.com>.
> >
> > For more options, visit https://groups.google.com/d/optout
> > <https://groups.google.com/d/optout>.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html
> <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
> <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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/0a7d4de5-0734-4275-a6f8-22758fa6cf22%40googlegroups.com
>
> <https://groups.google.com/d/msgid/vagrant-up/0a7d4de5-0734-4275-a6f8-22758fa6cf22%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout
> <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/1C4E1D84-504B-4F4F-B7A2-8C040A3BF328%40gmail.com.
For more options, visit https://groups.google.com/d/optout.