mitchellh/vagrant — pull request #918 by jmahowald (2012-05-07 00:44:31+00:00)
Title: Logging changes and tips for setting up multiple ips

It took me a while to figure out how to add multiple ips to a vagrant node. I added in a couple more samples into the Vagrantfile. My bigger problem was things got really slow when I first did it. Eventually, by tweaking the logs to get timestamps and data from net/ssh I was able to zero in on a problem with sudo and /etc/hosts. This may well be limited to just centos or fedora (http://serverfault.com/questions/38114/why-does-sudo-command-take-long-to-execute), but I found that I had to have an explicit host name in place.

The first run is still a bit slow for me (I think the hosts file is updated after several sudo requests, and I could see an argument for doing that first, although I might just update my basebox to have a better base /etc/hosts. That being said, I do think that making the log format configurable, and having a way to pass log levels on to net/ssh could help people debug similar problems.

Keep up the great work!