I’m working on the chef tutorial, at https://learn.chef.io/tutorials/manage-a-node/rhel/virtualbox/bootstrap-your-node/
In “3. Confirm the result”, there’s a command
I keep getting these errors:
curl: (7) Failed to connect to 10.1.1.34 port 80: No route to host
I’ve installed the tutorial on a MacBook Pro and on an Ubuntu 16.04 box and had the same problem with both.
I’m almost certain that the problem lies with the CentOS 7.2 bento box.
Does anyone have a solution?
Turns out there’s a minor bug in Vagrant 1.9.1. See this answer on StackOverflow for a solution.
Does the CentOS vm have internet access? Can you ping the VM from your host machine/dev machine? lastly, I have had lots of “FUN” with curl behind a non-transparent proxy. Could be as simple as having to do the following on the curl command as it doesn’t seem to like the HTTP_PROXY environment variable:
curl --noproxy 10.1.1.34, 10.1.1.34
No, like I said in my previous comment, it’s a bug in Vagrant.