Authentication failure while installing centOS image using Vagrant

Just one useful tip for those who got into trouble starting up centOS image on Vagrant.

When installing in this case “nrel/CentOS-6.5-x86_64″ image on Vagrant I have experienced timeout errors while trying to startup my boxes:

web: Warning: Authentication failure. Retrying…

This was because centOS image requires username and password while loading. Two ssh lines inside Vagrantfile helped me to solve the issue:

 Ideally after that you simply want to reload vagrant boxes using command below:

# vagrant reload 

Then check all your boxes are up:

# vboxmanage list runningvms

And that you can connect to the box using ping command.

# ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.425 ms
64 bytes from icmp_seq=1 ttl=64 time=0.305 ms

And you’re all set!!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>