Hello

Since Vagrant 1.7, Vagrant will replace the insecure ssh keys, so try this.

On the very first box:
config.ssh.insert_key = false

This will prevent Vagrant replacing the keys.

Then before packaging, check:

eth0 nic on the OS is configured to DHCP
there is no /etc/udev/rules/70-persistent-net.rule or similar file. If
there is delete.

Then poweroff and export the box.

Try with a simple box before doing all your changes, just to test the
process works.

Alvaro.

On Sat, Dec 5, 2015 at 5:10 AM, Ryan Ruscett <[email protected]> wrote:
> Hello,
>
> I looked on this site and saw several responses to issue like this. Except I
> still can't get it. Here is what I did.
>
> 1. Got a box from Hashicorp, everything worked perfectly. No issues. I added
> some software to it and then used package to create a box.
> 2. Now, when I do a vagrant init <my box> and it starts to spin up.
> 3. I get the error
>
> default: SSH auth method: private key
>     default: Warning: Connection timeout. Retrying...
>     default: Warning: Authentication failure. Retrying...
>     default: Warning: Authentication failure. Retrying...
>     default: Warning: Authentication failure. Retrying...
>
> What I can do!
>
> 1. I can still log into the box with vagrant ssh. I just prompts me for a
> password.
>
> Because it's failing at this point it just holds here until I ctrl c it and
> thus, the synced folders and other set up never occurs.
>
> What I have tried to fix it.
>
> 1. When into ssh_config and set prompt for password to no. Didn't work.
> 2. I saw there was no authorized_key so I got the git up one and put it in
> there. Didn't work.
> 3. I configured vagrant in sudo with no password. I am stretching now but
> didn't work lol
> 4. I checked all the permissions on the .ssh and vagrant folders according
> to previous threads.
>
>
> Here is what gets me. I got the box from hashicorp website and it worked
> perfectly. This isn't a box from scratch. So I would of assumed it would
> have had everything I needed in order for it to work. All I did was just
> create a box out of it and tried to use it. I get this error and I have no
> idea what to do next.
>
> Any help would be great. Thanks!
>
>
>
> --
> 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/fe0ca947-ac1e-4c92-b1e3-92fbd08b0a1a%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/CAHqq0ewq4TqvZJx0woBA4u6jrRgwR5d2ZNxpxk4Y1HmPpn7Gzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to