title: rsync error on Vagrant up with Centos 7
body: <p>I want to move to a virtualbox environment on my new laptop so wanted to test out vagrant. However I havent been able to get past Vagrant up without one error after another, I have got through a number of errors and now im stuck.</p>
  
  <p>Rsync is always failing to exec ssh (full error below)</p>
  
  <ul>
  <li>Platform Windows 7 pro SP1. </li>
  <li>Cygwin installed with Rsync.  </li>
  <li>Vagrant installed  </li>
  <li>Virtualbox installed</li>
  <li>Putty.exe on my desktop.  </li>
  <li>Git installed.</li>
  </ul>
  
  <p>rsync and putty added to end of sytstem path like</p>
  
  <blockquote>
    <p>..;C:\HashiCorp\Vagrant\bin;C:\Users\paul\Desktop\putty.exe;C:\cygwin64\bin;C:\Program
    Files\Git\cmd</p>
  </blockquote>
  
  <p>Vagrant file consists of (including a windows/rsync error fix)</p>
  
  <pre><code>Vagrant.configure(2) do |config|
    config.vm.box = "centos/7"
    ENV["VAGRANT_DETECTED_OS"] = ENV["VAGRANT_DETECTED_OS"].to_s + " cygwin"
   end
  </code></pre>
  
  <p>I also tried changing line 43 in C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.6.X\plugins\synced_folders\rsync\helper.rb to hostpath = "/cygdrive" + Vagrant::Util::Platform.cygwin_path(hostpath)</p>
  
  <p>instead of putting it in the vagrant file.</p>
  
  <p>Still I cant get rsync to work. Im not even sure why it needs to do this on 'up' anyway. </p>
  
  <p>im running vagrant up from cmd here is the full output.</p>
  
  <pre><code> C:\Users\paul\Projects\gettingStarted-centos7&gt;vagrant up
  Bringing machine 'default' up with 'virtualbox' provider...
  ==&gt; default: Checking if box 'centos/7' is up to date...
  ==&gt; default: Clearing any previously set forwarded ports...
  ==&gt; default: Clearing any previously set network interfaces...
  ==&gt; default: Preparing network interfaces based on configuration...
      default: Adapter 1: nat
  ==&gt; default: Forwarding ports...
      default: 22 =&gt; 2222 (adapter 1)
  ==&gt; default: Booting VM...
  ==&gt; default: Waiting for machine to boot. This may take a few minutes...
      default: SSH address: 127.0.0.1:2222
      default: SSH username: vagrant
      default: SSH auth method: private key
      default: Warning: Connection timeout. Retrying...
  ==&gt; default: Machine booted and ready!
  ==&gt; default: Checking for guest additions in VM...
      default: No guest additions were detected on the base box for this VM! Guest
  
      default: additions are required for forwarded ports, shared folders, host on
  ly
      default: networking, and more. If SSH fails on this machine, please install
      default: the guest additions and repackage the box to continue.
      default:
      default: This is not an error message; everything may continue to work prope
  rly,
      default: in which case you may ignore this message.
  ==&gt; default: Rsyncing folder: /cygdrive/c/Users/paul/Projects/gettingStarted-cen
  tos7/ =&gt; /home/vagrant/sync
  There was an error when attempting to rsync a synced folder.
  Please inspect the error message below for more info.
  
  Host path: /cygdrive/c/Users/paul/Projects/gettingStarted-centos7/
  Guest path: /home/vagrant/sync
  Command: rsync --verbose --archive --delete -z --copy-links --chmod=ugo=rwX --no
  -perms --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2222 -o StrictHos
  tKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i 'C:/Us
  ers/paul/Projects/gettingStarted-centos7/.vagrant/machines/default/virtualbox/pr
  ivate_key' --exclude .vagrant/ /cygdrive/c/Users/paul/Projects/gettingStarted-ce
  ntos7/ vagrant@127.0.0.1:/home/vagrant/sync
  Error: rsync: Failed to exec ssh: No such file or directory (2)
  rsync error: error in IPC code (code 14) at pipe.c(85) [sender=3.1.1]
  rsync: connection unexpectedly closed (0 bytes received so far) [sender]
  rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=
  3.1.1]
  </code></pre>