Vagrant Cygwin Error on rsync folder


I got following error while activating share folder using Cygwin:

Host path: /c/Users/mohamad_i/coreos-vagrant/
Guest path: /home/core/share
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 StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i ‘C:/Users/mohamad_i/.vagrant.d/insecure_private_key’ –exclude .vagrant/ /c/Users/mohamad_i/coreos-vagrant/ core@127.0.0.1:/home/core/share
Error: Warning: Permanently added ‘[127.0.0.1]:2222’ (ED25519) to the list of known hosts.
rsync: change_dir “/c/Users/mohamad_i/coreos-vagrant” failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]

the solution for this error is pretty easy just add code bolow to your  Vagrantfile :

ENV["VAGRANT_DETECTED_OS"] = ENV["VAGRANT_DETECTED_OS"].to_s + " cygwin"

source : 

http://micahasmith.github.io/2015/01/22/coreos-vagrant-windows-file-share/

https://github.com/coreos/coreos-vagrant

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s