title: Chef Knife Bootstrap Vagrant VM - Connection errors
body: <p>My environment: Virtualbox, CentOs VM 6.5 with chef client installed
  Ubuntu 12.04 Vagrant Box</p>
  
  <p>Issue: I am trying to <code>$knife boostrap vagrant.vm -x vagrant -N "target1"</code>, but I am getting to different error messages:</p>
  
  <pre><code>"Connecting to vagrant.vm"
  ERROR: Network Error: getaddrinfo: Name or service not known. Check your knife configuration and network settings. 
  </code></pre>
  
  <p>I tried connecting to the Vagrant VM using the IP 127.0.0.1</p>
  
  <pre><code>Error: Network error: connection refused - connect(2) for 127.0.0.1 port 22. Check your knife configuration and network settings. 
  </code></pre>
  
  <p>I can ssh as vagrant@127.0.0.1 into the vagrant box with no issues.
  The <code>/etc/hostname</code> has the correct IP and FQDN of VM. </p>
  
  <p>Why is the knife boot strap command failing to connect to my Vagrant VM? How do I resolve this issue? </p>